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 <http://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.
