I am trying to connect to a EJB runs on WebSphere 7.0 server using iiop corba connection.
here is my code
Hashtable prop = new Hashtable();
prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
prop.put(Context.PROVIDER_URL,"iiop://192.168.0.27:2810");
ic = new InitialContext(prop);
…
…
Then lookup some objects and do some work. After run the agent produced the output as expected but finally gives an error
"Error cleaning up agent threads "
Then I print the current thread details by using following code.
ThreadGroup tg =Thread.currentThread().getThreadGroup();
int tcount = tg.activeCount();
Thread arr = new Thread[tcount];
int num = tg.enumerate(arr,true);
for (int i = 0; i<num; i++) {
System.out.println(arr[i].getName()+", "+ arr[i].hashCode()+", "+ arr[i].getThreadGroup().getName());
}
Then it’s displaying 4 remain threads.
LT=0:P=682254:O=0:port=1142, 714549911, UTG: J
avaAgent
RT=1:P=682254:O=0:WSTCPTransportConnection[add
r=192.168.0.27,port=9101,local=1141], 207817827, UTG: JavaAgent
RT=0:P=682254:O=0:WSTCPTransportConnection[add
r=192.168.0.27,port=2810,local=1125], 753216741, UTG: JavaAgent
AgentThread: JavaAgent, 26608022, UTG: JavaAge
nt
Please advice on this. Thanks