Proposal for global JNDI support in future Virgo releases [message #1703990] |
Thu, 06 August 2015 08:40 |
Eclipse User |
|
|
|
Hello,
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.
GianMaria.
|
|
|
Powered by
FUDForum. Page generated in 0.04503 seconds