Geoff Jacobsen wrote:
> TravelAgentBean.java:
> ...
> public String [] listCabins(int shipID, int bedCount) {
> try {
> javax.naming.Context jndiContext = new InitialContext();
> Object obj = jndiContext.lookup("java:comp/env/ejb/Cabin");
>
> CabinHome home = (CabinHome)
> javax.rmi.PortableRemoteObject.narrow(obj, CabinHome.class);
Hmm. I'm not an expert by any means, but I've noticed in my work that
the java:comp references don't work in jBoss unless you specifically
declare them in your beans. I'm not sure why that is, frankly.
You might try getting rid of the java:comp/env/ejb/ in your .lookup and
see if that works.
Good Luck,
Tim White
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]