Title: Q:Problems with WebLogic Clusters






Hi,
  Using WebLogic clusters I had the following problem while allocating EJB
home:
I used the following code:

static String oneServerUrl  = "t3://194.90.45.81:7001";
static String clusterUrl = "t3://194.90.45.84,194.90.45.81:7001";
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.TengahInitialContextFactory");
//p.put(Context.PROVIDER_URL, oneServerUrl );
p.put(Context.PROVIDER_URL, clusterUrl);
Context ctx = new InitialContext(p);
StatelessSumHome home = (StatelessSumHome)
ctx.lookup("Test.StatelessSumHome");


The code works fine for         oneServerUrl ' , but if I use the
'clusterUrl'  I receive the following exception:
        "java.lang.ClassNotFoundException:
Test.StatelessSumBeanHomeImpl_ServiceStub"

 It should be noted that the missing stub was one of the automatic generated
classes. I expected to
receive this class through the net.
The "Test.StatelessSumBeanHomeImpl_ServiceStub" appears within the jar file
located by the server.

Any ideas ?
------------------------------------------
  Yair Enden
  3 Sapir St.
  46852  Herzliya

  Tel:
    09- 960 4935


------------------------------------------
  Yair Enden
  3 Sapir St.
  46852  Herzliya

  Tel:
    09- 960 4935





Reply via email to