This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI Lookup using T3 Protocol  RSS feed

Tushar Ojha
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

There are two managed servers(on port 9002 and 9003 respectively) and one proxy server(on port 9001) configured in single domain(named EJB-Domain) on BEA Weblogic Server 9.2. The EJB Module is deployed on both the managed servers.

I am trying to lookup EJB from a WAR module deployed on another domain (named WAR-Domain) running in a different machine using JNDI lookup by the EJB-Domain proxy server port no, which is giving the javax.naming.NameNotFoundException,

I guess the error is due to the fact that the proxy server do not contains the jndi names of ejbs in it's registry as the target is not set to proxy server

Is there a way to make some server configuration so that the lookup will be made through proxy server port to the managed server JNDI registry.

Code snippet is as below for EJB lookup from the WAR Module running in different domain and T3 protocol has been used.
String host=""; // EJB-Domain IP address
String port="9001"; // proxy server Port

Object object =jndiMap.get(jndiName);
if(object==null) {
try {

Context context=getInitialContext("t3://" + host + ":" + port);
object = context.lookup(jndiName);

}catch(Exception ex){
throw ex;

Thanks in Advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!