From: Simon76Says <nu...@jb...> - 2005-05-14 17:04:07
|
hi @ all i have created an IIOP EJB and are currently trying to call it. Client Code: Context ic; | Object objref; | Properties props = new Properties(); | props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory"); | props.put(Context.PROVIDER_URL,"corbaloc::localhost:3528/JBoss/Naming/root"); | ic = new InitialContext(props); | | objref = ic.lookup("IiopTest"); | IiopTestHome homeInter; | homeInter=(IiopTestHome)PortableRemoteObject.narrow(objref,IiopTestHome.class); | IiopTest realObject = homeInter.create(); the lookup works perfectly, but the PortableRemoteObject.narrow() function returns a null value. how is that possibel? what am i doing wrong? thx for helping me with that item! simon View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877762#3877762 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877762 |