Did you see my response and try?

Thanks,
Raymond
--------------------------------------------------
From: "Raymond Feng" <[EMAIL PROTECTED]>
Sent: Tuesday, November 04, 2008 10:52 AM
To: <[email protected]>
Subject: Re: binding.ejb  and JBoss

Hi,

At this moment, we support the lookup of the EJB proxy either using CORBA CosNaming or JNDI.

You can directly configure the 'uri' to be a "corbaname"-based URI or a JNDI name. If you provide a system property "java.naming.factory.initial", then JNDI will be used, otherwise, we try CosNaming. In your case, can you try to set two system properties?

-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.provider.url=jnp://localhost:1099

There is page for binding.ejb: http://tuscany.apache.org/sca-java-bindingejb.html

Thanks,
Raymond

From: Ruault Gaetan
Sent: Tuesday, November 04, 2008 2:42 AM
To: [email protected]
Subject: binding.ejb and JBoss


Hello,
I try to call an EJB3 on distant Jboss by SCA I have this configuration EJB :

<session>
<ejb-name>AuthBean</ejb-name>
<home>fr.smacl.pocf.services.stub.AuthLocal</home>
<remote>fr.smacl.pocf.services.stub.AuthRemote</remote>
<ejb-class>fr.smacl.pocf.services.ejb.bean.AuthBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>

and this for the composite file :

<sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"; xmlns:instance="http://www.w3.org/2004/08/wsdl-instance"; xmlns="http://www.osoa.org/xmlns/sca/1.0"; xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; name="AuthComponent" targetNamespace="AuthComponent">
 <sca:component name="AuthComponent">
<sca:implementation.java class="fr.smacl.pocf.services.composite.impl.AuthServiceImpl"/>
   <sca:service name="AuthService">
<sca:interface.java interface="fr.smacl.pocf.services.stub.AuthService"/>
   </sca:service>
   <sca:reference name="authService"/>
 </sca:component>
 <sca:service name="AuthService" promote="AuthComponent/AuthService"/>
 <sca:reference name="authService" promote="AuthComponent/authService">
   <sca:binding.ejb uri="AuthBean/remote" ejb-version="EJB3"/>
 </sca:reference>
</sca:composite>

How can i define that my ejb3 is on distant server(my sca client and my jbos is on different server) and use this context factory

org.jnp.interfaces.NamingContextFactory

and this provider

jnp://localhost:1099

thanks
Gaetan







Gaëtan RUAULT
Ingenieur d'étude et développement
Sopra group.
28, rue Léo Lagrange 79000 Niort
Phone : +33 (0)5 49 77 38 20
[EMAIL PROTECTED] - www.sopragroup.com
Ce message peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite en l'absence d'autorisation explicite de l'émetteur. Dans l'hypothèse où vous auriez reçu par erreur ce message, merci de le renvoyer à l'émetteur et de détruire toute copie.

P Pensez à l'environnement avant d'imprimer.

Reply via email to