|Proposal for global JNDI support in future Virgo releases [message #1703990]
||Thu, 06 August 2015 12:40
| GianMaria Romanato
Registered: July 2009
when I first started using Virgo more than 2 years ago, I had trouble finding a convenient approach for establishing database connections using EclipseLink.
To cut a long story short, I eventually ended up implementing a fragment for the catalina bundle in order to register a custom InitialContextFactoryBuilder in the JNDI SPI that would be just a proxy over Tomcat JNDI support, so that I could use plain old InitialContext().lookup() in Virgo to lookup resources declared in tomcat-server.xml
I understand that this is not 100% OSGi aware, but the other two OSGi App Servers I know of, Apache Karaf and WebSphere Liberty, both provide an optional feature that enables the same behaviour, and IMHO this largely reduces the learning curve for new users.
So, I would like to ask the project team to evaluate the possibility to include a similar feature OOTB in Virgo 3.7.x.
If you are interested, I can share the code and I am also willing to help out in the implementation.
Developing for Virgo using PDE: http://bit.ly/1w0tTit
Global JNDI in Virgo: http://bit.ly/1to42mn
Hyperic to monitor Virgo: http://bit.ly/W1Fst9
Profile Virgo with JProfiler http://bit.ly/1FBLGCw
Powered by FUDForum
. Page generated in 0.02286 seconds