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


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to