Re: JNDI question: client talking to EJBs on multiple app servers

2002-04-18 Thread David Moles
Brilliant -- thanks. What I couldn't find was any documentation on what goes in the environment Hashtable. :) What does the dedicated.connection=true property do? If I were to do this: public FooRemote getRemote(String jndiURL) { Hashtable env = new Hashtable(); env.put(Context.PR

JNDI question: client talking to EJBs on multiple app servers

2002-04-17 Thread David Moles
I've got the same beans deployed on two different app servers (each backed by a different database). I want my client to talk to both. Say the two app servers are running on machines named Fred and Wilma; I know I can choose which one I talk to by setting java.naming.provider.url=ormi://fred/a

ClassCastExceptions in EJB client: What am I missing?

2002-04-11 Thread David Moles
So I have a session bean, Home interface, Remote interface, Bean class, the works. When I invoke it from a web application within Orion, it works fine. When I try to invoke it from a standalone client, I can look up the home interface but I can't narrow it. I get: java.lang.ClassCastException