Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Invoking an EJB that's on Weblogic 6 from an MDB in weblogic 8.1 - urgent need answer  RSS feed

Pratibha Srinivasan
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an MDB that is running on weblogic 8.1. Within this MDB I want to lookup an EJB that is running on weblogic 6 server. An execption occurs during the initialcontext creation.
The following code creates the InitialContext:
Hashtable h = new Hashtable();
h.put(Context.PROVIDER_URL,providerURL); // the weblogic 6 server
Context initialContext=new InitialContext(h);
The exception trace is:
javax.naming.CommunicationException. Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed: 'Incompatible version:Incompatible versions - this server:6.0.0b2 client:]
at weblogic.socket.Login.checkLoginSuccess(
at weblogic.rjvm.t3.T3JVMConnection.connect(
at weblogic.rjvm.t3.T3JVMConnection.createConnection(
at weblogic.rjvm.ConnectionManager.createConnection(
at weblogic.rjvm.ConnectionManager.findOrCreateConnection(
at weblogic.rjvm.ConnectionManager.bootstrap(
at weblogic.rjvm.ConnectionManager.bootstrap(
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(
at weblogic.rjvm.RJVMManager.findOrCreate(
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(
at weblogic.rjvm.RJVMFinder.findOrCreate(
at weblogic.rjvm.ServerURL.findOrCreateRJVM(
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDe
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDe
at weblogic.jndi.WLInitialContextFactory.getInitialContext(
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.init(
at javax.naming.InitialContext.<init>(
What I wanted to know is whether such a lookup is not suppported and if it is what has to be done differently to create the context.
Thanks & Regards
Ade Barkah
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK you cannot directly connect an 8.1 client to a 6.0 server. You need at least version 6.1 for it to work. If upgrading a newer version isn't possible then you'll need to either write a bridge, or convert/wrap the 6.0 bean with a neutral protocol (perhaps as a web service.)
-Ade Barkah
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!