Thank you so much for pointing that out.
One more problem remains:
How do i get my stub?
Currently I'm using the following code: (World being the ManagementInterface of
the Bean I want to use)
if (System.getSecurityManager() == null) {
| System.setSecurityManager(new
RMISecurityManager());
| }
| Hashtable env = new Hashtable();
| String factory =
"org.jnp.interfaces.NamingContextFactory";
| env.put(Context.INITIAL_CONTEXT_FACTORY, factory);
| String url1 = "jnp://localhost:1099";
| env.put(Context.PROVIDER_URL, url1);
| Context ctx = new InitialContext(env);
| MBeanServerConnection mconn =
(MBeanServerConnection)ctx.lookup("jmx/invoker/RMIAdaptor");
|
|
| world = (World) MBeanProxyExt.create(
| World.class,
| "trail:service=world");
which does not compile do to a MalformedObjectNameException.
I would actually like to use the create methode that takes a third argument(an
MBeanServer). Do you happen to know how I can get the MBeanServer from the
MBeanServerConnection(which is actually a sub interface of the latter)
How do you get acces to your Beans?
Again, thank you so much.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952751#3952751
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952751
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user