Hi,
I have some questions related to the the support of EJBs in tuscany :
- I tried the catalog-ejb tutorial with the ejb deployed in geronimo
: <binding.ejb
uri="corbaname:iiop:[EMAIL PROTECTED]:1050#VegetablesCatalogEJB"/>, I would
like to acces the same ejb deployed in jboss, is it possible ?
I failed in the "conception of the uri for the binfing.ejb :
I tried from a pojo client class, I can easily access to the eb
deployed in geronimo with the following code, the lookup is done on the
uri specified in the binding.ejb :
InitialContext context = new InitialContext();
Object o = context.lookup("corbaname:iiop:[EMAIL PROTECTED]:1050#VegetablesCatalogEJB");
CatalogEJBHome home = (CatalogEJBHome)PortableRemoteObject.narrow(o, CatalogEJBHome.class);
My issue in the writing of en equivalent uri to access the ejb in
jboss comes from the fact that I have to specified properties for the
Initial Context in jboss :
Properties properties = new Properties();
properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
properties.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
properties.put("java.naming.provider.url", "jnp://127.0.0.1:1099");
properties.put("jnp.disableDiscovery", "true");
InitialContext jndiContext = new InitialContext(properties);
// Get a reference to the VegetablesCatalogEJB Bean
Object o = jndiContext.lookup("VegetablesCatalogEJB");
// Get a reference to the Bean's Home interface
CatalogEJBHome home = (CatalogEJBHome)PortableRemoteObject.narrow(o,
CatalogEJBHome.class);
So I didn't see how I can access to my ejb through the binding.ejb
and a "simple" uri.
- Which version of EJB does it support ? (EJB2, EJB3)
- According to the recent SCA JEE Integration Spec [1], only the
support of EJB3 (JavaEE5) is required, but is it possible that Tuscany
(or Tuscany integrated with Geronimo) will also support EJB2 ? Are there
documents on the directions taken by Tuscany concerning new
implementations : implementation.jee, implementation.web...
<http://www.osoa.org/download/attachments/35/SCA_JAVAEE_Integration_V100.pdf>Regards,
Maxime Porhel
Obeo
[1]
http://www.osoa.org/download/attachments/35/SCA_JAVAEE_Integration_V100.pdf