Skip to main content

Add-ons of Glassfish

2 replies [Last post]
Anonymous

Hello List,

I am interested of using GlassFish for non-HTTP based protocols.

After some research, I have found that the proper way of implementing a non-HTTP based protocol that would require me to open sockets on the host system is to create a Custom container. This makes perfect sense since the Container is the one providing the Servlet with the messages of the doGet and doPost in the HttpServlet implementation. I found the following document to assist me with this process ( http://docs.oracle.com/cd/E18930_01/html/821-2415/ghpjl.html#scrolltoc ).

I would like to know more from an overview how the Container, Deployer and ApplicationContainer fit together. I have come across glassfish-play on github, sailfin (pre v3 implementation), a jRuby Container ... and I am not seeing the light of day... (very little comments and I do not have a big picture overview hence I can not see where the pieces fit together).

Could someone please just tell me how this fits together :) ... Context seems to elude me at this moment.

Kind Regards,
Etienne Pretorius

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Etienne Pretorius

Hello List,

>
> I would like to know more from an overview how the Container, Deployer and ApplicationContainer fit together. I have come across glassfish-play on github, sailfin (pre v3 implementation), a jRuby Container ... and I am not seeing the light of day... (very little comments and I do not have a big picture overview hence I can not see where the pieces fit together).
>

Found a better document describing the Container components better for me.

https://wikis.oracle.com/display/GlassFish/ContainerSPI

Kind Regards,
Etienne Pretorius

codeprince
Offline
Joined: 2007-05-10
Points: 0

Hi

For v3.1.2, apart from the ContainerSPI wiki, you can see and implement a customized container using the following,

http://docs.oracle.com/cd/E26576_01/doc.312/e24927/adding-container-capa...

Needing to notice that in current v4, there are some changes from HK2 API(including package name's change, using jsr330 ...).

You can try the sample.

If I have more time, I will write a note about glassfish osgi container's implementation.

Thanks
--Tang Yong