Re: ejb client

2008-12-28 Thread axiez
I added jndi.properties. Modified code is given below: Properties p = new Properties(); p.load(new FileInputStream("jndi.properties")); InitialContext ctx = new InitialContext(p); ShoppingCart cart = (ShoppingCart) ctx.lookup("ShoppingCartBean/remote"); I compiled the java files and am planning to

Re: [geronimo] Re: Out of memory during second publish - reproduced

2008-12-28 Thread Steve H.
Hi Tim, Thanks for responding so promptly. I have followed your advice although I set MaxPermSize to 512m for eclipse and Geronimo. These settings can be seen in the ps output I posted. The artifact I am developing is an experimental EAR. It includes 3 jsp's but it includes Hibernate POJO's, EJ

Re: ejb client

2008-12-28 Thread Shawn Jiang
With some search, it seems that you do need to provide the ejb container info by 1, providing a jndi.properties in your client classpath with following content: java.naming.factory.initial=org.openejb.client.RemoteInitialContextFactory java.naming.provider.url=ejb_container_ip:4201 java.naming.s

ejb client

2008-12-28 Thread axiez
I want to run sample code to understand ejb 3.0 basics. I am new to ejb. I have the following java files: ShoppingCartBean.java, ShoppingCart.java and Client.java. The Client.java file has the following code: import javax.naming.InitialContext; public class Client { public static void main(Str