I'm using the http invoker and all my ejb2.1 lookup goes over https. now ejb3 beans deploy fine (according to the JMX console) but the lookup fails with the usual message. For e.g. when i look up AddEntity
Here's part of the the JMX view with 2.1 and 3.0 beans
jboss.j2ee ear=application.ear,jar=application.jar,name=OpenService,service=EJB3 ear=application.ear,jar=application.jar,name=CalculatorService,service=EJB3 jndiName=AddEntity,plugin=cache,service=EJB jndiName=AddEntity,plugin=pool,service=EJB
Properties props = new Properties(); props.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); props.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); props.put("java.naming.provider.url", "localhost"); InitialContext ctx = new InitialContext(props); // THIS WORKS, returns Home interface Object object = ctx.lookup("AddEntity"); // THIS FAILS, with a not found/bound exception CalculatorService remote = (CalculatorService)ctx.lookup("CalculatorService/remote");
In the JMX Console, check out the JNDIView MBean...list your JNDI Tree and it'll show you all the objects (and their addresses) currently bound...
S,
ALR