I have a three tier application that I'm trying to get ported to linux with open-source products. I am using Tomcat for my JSPs, JOnAS for my EJB server, and PostgreSQL for the database.
The problem that I am having is getting Tomcat to talk to JOnAS. I am using the following to get the initial context:
----------------
Properties properties = new Properties();
properties.put("java.naming.provider.url", "rmi://localhost:1099");
properties.put("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory");
properties.put("java.naming.factory.url.pkgs", "org.objectweb.jonas.naming");
setCtx(new InitialContext(properties));
----------------
I am getting a context just fine. What I don't understand is that I have 58 EJBs deployed in the server, bound to JNDI (verifiable through JonasAdmin), and I am unable to lookup any of them. The context has no names bound to it.
Does anybody have any suggestions?
Thanks...
___________________________________________________________
Walt Skidmore
Java Developer
888-580-1010 x139
"There's only one thing that I know how to do well, and I've often been told that you only can do what you know how to do well, and that's be you... Be what you're like... Be like yourself... And so I'm having a wonderful time but I'd rather be whistling in the dark..."
___________________________________________________________
