[jboss-user] [EJB 3.0] - Re: Corba

wolfc do-not-reply at jboss.com
Mon Apr 2 05:03:25 EDT 2007


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



More information about the jboss-user mailing list