I have EJB3 project, deployed with jboss-4.0.4.CR2  , his projects .jar file is 
in jboss_home/server/default/deploy catalog.  and I have a client java file 
where I call ejb's remote inteface
           Hashtable properties = new Hashtable();
            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", "localhost:1099");
            Context context = new InitialContext(properties);

             SessionEJBRemote 
obj=(SessionEJBRemote)context.lookup(SessionEJBRemote.class.getSimpleName() + 
"/remote");
           obj.calculate(1,2,3d,5d);

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938083#3938083

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938083


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to