Maybe I could ask a different question.

Can I assign a resource so that I can do a jndi lookup?

Can I configure JBoss to load an arbitrary jar file and set it to a jndi
name such as "jndi:/user/resource1.jar" "jndi:/usr/resource2.jar"? Then, a
context lookup would return a JarFile for each of these resource jars. Is
this possible with Branch_3_0?

-Mark

On Mon, 15 Apr 2002, Mark Gulbrandsen wrote:

>
>
> I have an ejb jar file that is deployed in server/default/deploy. Call it
> myejbs.jar.
>
> I also have a jar file that has many resources called resources.jar.
> resources.jar is placed inside of myejbs.jar. I can access resource.jar
> through getClass().getResource("resource.jar"). This gives me a URL, which
> I can get a JarFile from via a few other calls. However, the JarFile that
> I get is myejbs.jar. So then I have to call into the java.util.jar apis to
> finally end up with a JarEntry.
>
> What I really want to do is access resource.jar as a JarFile, not a
> JarEntry. So how do I configure jboss 3.0 to allow me to access
> resource.jar as a JarFile? Also, I'd rather not put resource.jar in
> myejbs.jar, because these resource could change more often than the ejbs,
> but I don't want to have to redeploy my ejbs every time a resource
> changes. I tried putting resource.jar in $JBOSS/server/default/deploy/,
> but I still couldn't access it. Where can I put resource.jar and what do I
> need to configure so my ejbs can access it through the ClassLoader (via
> getResource)?
>
> Thanks,
>
> Mark
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to