Foros de discusión

Modbile SDK and new Liferay 7 JAX-RS support

thumbnail
Denis Signoretto, modificado hace 8 años.

Modbile SDK and new Liferay 7 JAX-RS support

Expert Mensajes: 375 Fecha de incorporación: 21/04/09 Mensajes recientes
Hi,

I've seen that Liferay 7 will introduce a new way to define and develop services by JAX-RS.
I'd like to know if Mobile SDK will introduce support for services defined in this way in Liferay 7
and if with Liferay 7 JSONWS services can be developed as OSGI modules.

Thanks,
Denis.
thumbnail
Bruno Farache, modificado hace 8 años.

RE: Modbile SDK and new Liferay 7 JAX-RS support

Liferay Master Mensajes: 603 Fecha de incorporación: 14/05/07 Mensajes recientes
Hi Dennis!

Since these new services are truly restful I don't think a Mobile SDK is needed for them. You could use something like Retrofit, for example.

Regarding the question about OSGi and JSONWS, I'm not sure, probably yes since Liferay remote services are OSGi services.
thumbnail
Juan Gonzalez, modificado hace 8 años.

RE: Modbile SDK and new Liferay 7 JAX-RS support

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Hi Dennis,

here you have the DevCon presentation made by Carlos Sierra (the main developer of this great JAX standarization as Liferay OSGI services):

https://www.youtube.com/watch?v=y6rrP6zbfLk
Here you can download the slides (choose October 8) and select Carlos Sierra's presentation:

https://www.liferay.com/web/events2015/devcon/recap#agendaWrapper

Hope it helps...If you need more info, I can search for it.
thumbnail
Jose M. Navarro, modificado hace 8 años.

RE: Modbile SDK and new Liferay 7 JAX-RS support

Regular Member Mensajes: 138 Fecha de incorporación: 24/01/14 Mensajes recientes
Hey Denis,

Let me give you more insight since I'm involved in this JAX-RS project (kudos to Carlos Sierra, he did the whole design and implementation).

The main idea is to be able to expose REST-like endpoints from the portal, in order to allow clients (mobile apps, JS clients, IoT devices) to easily consume the portal content.
But this isn't only a way to do "more fancy" HTTP calls: it's the first step for us to be able to add useful features for all HTTP endpoints (aka remote services): endpoint versioning, quotas management, different caching or security strategies, different serializers (did I say protobuf?), etc.

As a nice side effect, if the HTTP API is more polite, then the MobileSDK is not necessary anymore, as Bruno said.

Regards!
thumbnail
Denis Signoretto, modificado hace 8 años.

RE: Modbile SDK and new Liferay 7 JAX-RS support

Expert Mensajes: 375 Fecha de incorporación: 21/04/09 Mensajes recientes
Jose M. Navarro:
Hey Denis,
As a nice side effect, if the HTTP API is more polite, then the MobileSDK is not necessary anymore, as Bruno said.
Regards!


Hi Guys,

thank you all for the info and clarifications. I'll stay tuned on this thread to understand what is moving on Liferay 7 and related enhancements on Mobile front.
About Mobile SDK alternatives for full REST services, do you have something to suggest for iOS ?

Thanks!!!
Denis.
thumbnail
Jose M. Navarro, modificado hace 8 años.

RE: Modbile SDK and new Liferay 7 JAX-RS support

Regular Member Mensajes: 138 Fecha de incorporación: 24/01/14 Mensajes recientes
Denis Signoretto:

About Mobile SDK alternatives for full REST services, do you have something to suggest for iOS ?
Denis.


I don't know any direct translation for iOS.
Probably the closest thing is a mixture of Alamofire/AFNetworking together with Mantle.

Also have a look at Restless, but I didn't used before.

It's too bad we don't have Retrofit for iOS (:
thumbnail
Jose M. Navarro, modificado hace 8 años.

RE: Modbile SDK and new Liferay 7 JAX-RS support

Regular Member Mensajes: 138 Fecha de incorporación: 24/01/14 Mensajes recientes
I've just remembed Moya. It also follows similar ideas