hi there.(first: my english is not the best.. :)) I have try these with two jboss servers jboss4.0.2 and jboss4.0.3SP1, after some little errors i get all working, i will put here some tips where i was stack in my tests,
my source: the ejb-jar.xml file significative part: <!-- Session Beans --> [CDATA[Description for DelkantSession]] <display-name>Name for DelkantSession</display-name> <ejb-name>DelkantSession</ejb-name> py.wpg.DelkantSessionHome <!--this interfaces are require--> py.wpg.DelkantSession <local-home>py.wpg.DelkantSessionLocalHome</local-home> py.wpg.DelkantSessionLocal <ejb-class>py.wpg.DelkantSessionBean</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> the DelkantSessionBean.class : /** * @ejb.bean name="DelkantSession" * display-name="Name for DelkantSession" * description="Description for DelkantSession" * jndi-name="ejb/delkant" * type="Stateless" * view-type="both" * transaction-type = "Container" */ public class DelkantSessionBean implements SessionBean { /** * @ejb.interface-method view-type = "both" * @ejb.transaction type = "Required" * */ public String getSaludo(){ return "hola mundo / hello world / a string"; } //all the methods from the SessionBean Implementation. } the DelkantTestClient.class (Standalone-client): public class DelkantTestClient { public static void main(String[] args) { try{ System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); System.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); System.setProperty("java.naming.provider.url", "localhost:1099"); //Use them to get the context Context context = new InitialContext(System.getProperties()); DelkantSessionHome home = (DelkantSessionHome) context.lookup("ejb/delkant"); String data= home.create().getSaludo(); System.out.println("lookup(ejb/delkant): " + data); }catch (Exception e){ System.out.println("Exception "+e); e.printStackTrace(); } } } and that is all from the sources part, them we need to put two jars libraries in the DelkantTestClient classpath from the $JBOSS_HOME/client the jbossall-client.jar and the logkit.jar. we also need the delkantClient.jar, here i put all the interfaces that i need to do a cast when i make the lookup. that is. CUESTION: i need a ear2ear comunication, i probe all but i dont get the way to comunicate a ejb Session from one application.ear to a second application2.ear how do i get a remote interface from another application?? can i do something like new InitialContext( application.ear2 ); i dont understand how this work.. thanks.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906842#3906842 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906842 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user