Hi Charles,
I'm curious about the different experiments performed with Endpoints
Frameworks v2. Could you tell us more about that?
Thanks!
On Friday, September 22, 2017 at 8:32:01 AM UTC-7, Charles Capps wrote:
>
> Hi Nico,
>
> It's a straightforward process if you use the Jersey Servlet container,
> since GAE works well with any servlet-based technology. In the services we
> have already migrated to Jersey, we only need these 2 maven dependencies
> from Jersey (currently using version 2.25.1):
>
> <dependency>
>> <groupId>org.glassfish.jersey.containers</groupId>
>> <artifactId>jersey-container-servlet-core</artifactId>
>> <version>${jersey.version}</version>
>> </dependency>
>> <dependency>
>> <groupId>org.glassfish.jersey.media</groupId>
>> <artifactId>jersey-media-json-jackson</artifactId>
>> <version>${jersey.version}</version>
>> </dependency>
>
>
> Then, in your web.xml, you can define a servlet like:
>
>> <servlet>
>> <servlet-name>MyServiceApplication</servlet-name>
>>
>> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
>> <init-param>
>> <param-name>javax.ws.rs.Application</param-name>
>> <param-value>com.mycompany.jersey.MyServiceApplication</param-value>
>> </init-param>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>
>
> where the MyServiceApplication class extends the JAX-RS Application base
> class, for which you can find documentation at
> https://jersey.github.io/documentation/latest/index.html
>
> Good luck migrating!
>
> On Thursday, September 21, 2017 at 11:52:47 PM UTC-7, Nico Verwer wrote:
>>
>> Is there a guide on how to use Jersey on App Engine?
>> I am still on Cloud Endpoints v1, and I am reluctant to migrate to v2
>> because it might be deprecated before I finish the migration. Jersey is
>> probably more stable and future-proof. And, as you indicate, it is faster
>> than GCE v2.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/97636cf5-c923-4c88-9b51-3facb5e55fae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.