eranda nanayakkara

Greenhorn
+ Follow
since Apr 07, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by eranda nanayakkara

Properties pro = new Properties();
pro.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");//"org.jnp.interfaces.NamingContextFactory"); //,"java.naming.factory.initial"
pro.put(javax.naming.Context.PROVIDER_URL,"iiop://localhost:2809");
InitialContext initialContext = new InitialContext(pro);
Object obj=initialContext.lookup("SMS");
SmsHome sendsms = (SmsHome)PortableRemoteObject.narrow(obj,SmsHome.class);

Sms dailogsms = sendsms.create();


error


javax.naming.NamingException: Error during resolve. Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No
at com.ibm.ws.Transaction.JTS.CurrentImpl.suspend(CurrentImpl.java:394)
at com.ibm.ws.naming.jndicos.CNContextImpl.suspendTransaction(CNContextImpl.java:4070)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3521)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1565)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)2

at javax.naming.InitialContext.lookup(InitialContext.java:359)
at DBconnection.DbConnection.setEJBConnection(DbConnection.java:63)
at sms.sendSms.check(sendSms.java:39)
at sms.sendSms.main(sendSms.java:33)