[jboss-user] [EJB 3.0 Users] - Re: EJB client cannot Load Remote EJB

pushpak1981 do-not-reply at jboss.com
Sat Oct 10 02:36:14 EDT 2009


For Doing an Lookup we are using the following code:

Properties p = new Properties();
		p.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
		p.put("java.naming.provider.url","jnp://localhost:1099/");
		p.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");

		InitialContext ctx = new InitialContext(p);
		IAbc ref = (IAbc)ctx.lookup("TransactionBean/remote");        

ref.addTransaction(persistenceObject);

We are doing an persistence into Database using JPA.





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

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



More information about the jboss-user mailing list