|
|
Re: How to access resource via JNDI in RCPTT [message #1750182 is a reply to message #1750106] |
Fri, 16 December 2016 22:54 |
Nick Gr Messages: 2 Registered: December 2016 |
Junior Member |
|
|
Hi Artem,
I resolved the problem by adding org.eclipse.jetty.jndi into Required-Bundle attribute of my bundle, requiring JNDI resource. However, that partially solved the problem because it complains that can't find the rest of the name e.g env/jndi/myDs. The main cause for this, is missing JNDI resource definition which is usually created in jetty.xml and/or jetty-env.xml.
But, I don't how to point Jetty server to look at the external Jetty home folder. I couldn't find any system property that could do the job.
On the other side, I found org.eclipse.jetty.osgi.boot bundle which reads "jetty.home" system property, but don't know if (and how) can be used instead org.eclipse.equinox.http.jetty.
So, to wrap-up the question: how to point RCPTT RAP plugin to external Jetty home so JNDI resources can work properly for my app?
Cheers,
|
|
|
Powered by
FUDForum. Page generated in 0.03180 seconds