View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820029#3820029
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820029 Hi I want to get a connection to a mbean from one jboss node to another. I have a mbean with some service which i want to access from the other service. The MBean is bound like this: InitialContext rootCtx = new InitialContext(); NonSerializableFactory.rebind(rootCtx, "customMBean", this); and on the other jboss i try to look ip up with this: InitialContext ctx = new InitialContext(); ctx.lookup("customMBean"); I also tried ctx.lookupLink and the InitialContext with this props: prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); prop.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces"); prop.put(Context.PROVIDER_URL, "jnp://172.16.0.3:1100,jnp://172.16.0.7:1100"); It seams as i actually access the InitialContext on the other jboss, but it just returns null. If I write some other name in the lookup I get a NameNotBound exception. Can anyone tell me what I am doing wrong, ore if I can access my mbeans in some other way? Thanks in advantage Kasper ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
