Search within EJB and other Jakarta /Java EE Technologies
Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
EJB and other Jakarta /Java EE Technologies
Load .mdb file from EJB
De La Hai
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
I have a *.mdb file deployed within my ear. Which is located on Glassfish server like this:
The problem is that from EJBs perspective you can only use ClassLoader.getSystemResource(
) or equivalents of ClassLoader.methods.
However this leads me to deploy the .mdb database within a Jar. in my
I would like to have it stored in EarContent of my project and access it from there. Is there any possibility to access files that are deployed along the ear from ejb context ?
I tried to get the context path of the ejb session , by using
but this doesn't really help much, as it only points to a path on the server and not on my project.
Can someone help me out, or point out whats wrong with the idea ?
PS: I know that it is against the restrictions of EJB, to access files in the filesystem. But it's more convenient to have the mdb file deployed within the ear for me.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Boost this thread!
Making things work...
Deploy MS Access DB on Server
deleting a file in the same context from servlet!
EJB in WAR Accessible from Components in Other Modules?
How can i get a resource using relative path ?