• 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(Login.java:120)
at weblogic.rjvm.t3.T3JVMConnection.connect(T3JVMConnection.java:287)
at weblogic.rjvm.t3.T3JVMConnection.createConnection(T3JVMConnection.java:311)
at weblogic.rjvm.ConnectionManager.createConnection(ConnectionManager.java:1766)
at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1293)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:430)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:312)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:223)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:181)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:222)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDe
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDe
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!