Hello,
I've written a simple MBean and deployed it.
A method of the MBean tries to load a XML file which is also packed into the JAR file.
Everything works fine if I start the Application stand alone. But if I deploy the
application in JBoss (that works - no problem) and calling the managed operation which
should load the XML-File, well... crack... The MBean fails to find the XML file.
What's the trick? A classpath problem?
I'm trying to get an URL of the XML file by:
URL url = ClassLoader.getSystemResource("resources/simple.xml");
Hope anybody could help me ..
Best regards,.
Andreas Heidt
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841530#3841530
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841530
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user