ari-ban / issue-test

0 stars 0 forks source link

Embed Grizzly (glassfish) Servlet Container with Spring Boot Java #1948

Closed arinban closed 7 years ago

arinban commented 7 years ago

Spring boot by default uses Tomcat as an Internal Embedded Servlet Container . It has also got support for Jetty and UnderTow.

I have build a Restful Application using spring boot . But now i need to deploy it on Grizzly (Glassfish) Servlet Container .

How do i embed my application to run on grizzly as spring dosen't have support for the same.

https://github.com/spring-projects/spring-boot/issues/5015.

Please help as i researched a lot on thistopic but i coudnt get any link that shows how to embed a new Servlet Container for our spring boot app that spring dosent have support for.

Question Raised on stack https://stackoverflow.com/questions/44565549/embed-grizzly-glassfish-servlet-container-with-spring-boot-java

arinban commented 6 years ago
arinban commented 7 years ago

@rlubke Commented Are you trying to deploy on Glassfish or Grizzly standalone. Don't conflate the two. Glassfish has it's own Servlet container and uses Grizzly for networking and low-level HTTP.

arinban commented 7 years ago

@rahulrsingh09 Commented @rlubke i want to deploy it to glassfish. what is the difference between the two can you please elloborate it will be great if you helped

arinban commented 7 years ago

@rlubke Commented You'll want to use GlassFish embedded.

Please see the documentation: https://javaee.github.io/glassfish/doc/4.0/embedded-server-guide.pdf.

I'm not familiar with the embedded API. You best best is to review the documentation and ask specific questions here: https://javaee.groups.io/g/glassfish.

As to the difference, GlassFish embedded is a compatible Servlet container. Grizzly only offers a subset of the Servlet features and this isn't considered a compliant implementation.