The bean must comply to EJB 2.1 API, so the Remote interface is mandatory. In 
JBoss the home interface is optional.

To lookup the bean I use the following properties:
      Properties props = new Properties();
  |       props.put("java.naming.factory.initial", 
"com.sun.jndi.cosnaming.CNCtxFactory");
  |       props.put("java.naming.provider.url", 
"corbaloc::localhost:3528/NameService");
  |       props.put("java.naming.factory.object", 
"org.jboss.tm.iiop.client.IIOPClientUserTransactionObjectFactory");
  |       props.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming.client:org.jnp.interfaces");

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033614#4033614

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033614
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to