[JBoss-user] [Management, JMX/JBoss] - Re: MBean and how to add to Classpath

2005-01-24 Thread [EMAIL PROTECTED]
This is not the right way to do it. JBoss has a very elaborate classloading 
system (see http://www.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases, 
you can't just modify the global JVM classpath!

If your resource is inside your service archive (e.g. at the root of it 
myresource.xml) then simply asks the classloader who loaded your MBean class 
in the first place, e.g.:

  | InputStream resource =
  |new 
InputStreamReader(this.getClass().getResourceAsStream(myresource.xml));
  | 

And BTW, if this is a service archive, it should be named .sar not .jar

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3863358#3863358

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3863358


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: MBean and how to add to Classpath

2005-01-23 Thread berlinbrown
Anyway, right now, I have to add that particular jar file so that I can use a 
particular resource in it.

System.setProperty(java.class.path,
System.getProperty(java.class.path) + :);


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3863328#3863328

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3863328


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user