Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / July 2005

Tip: Looking for answers? Try searching our database.

WebLogic EJB Cluster

Thread view: 
kejoseph@hotmail.com - 07 Jun 2005 04:02 GMT
I have two WebLogic 8.1 SP4 clusters setup - both behind firewalls and
a load balancer. I am trying to get servers in one cluster talk to the
EJB in the other cluster. I am having a hard time trying to figure out
which name to use to get the EJB to talk to the cluster. I tried using
rmi and the admin url but that did not work. When I use rmi using the
managed server+port it works, but then I do not get the benefit of a
cluster (ie load balancer and/or failover).

How do I solve this ?

Kevin.
Doug Pardee - 08 Jun 2005 18:46 GMT
Have you tried the instructions in the manual?
http://e-docs.bea.com/wls/docs81/jndi/jndi.html#475689

If you have, and are having trouble with that, you probably should ask
in the WebLogic clustering newsgroup:
weblogic.developer.interest.clustering
Volker Raum - 07 Jul 2005 06:43 GMT
> I have two WebLogic 8.1 SP4 clusters setup - both behind firewalls and
> a load balancer. I am trying to get servers in one cluster talk to the
[quoted text clipped - 7 lines]
>
> Kevin.

If i get you right you have two separate domains trying to talk to each
other. If so your problem is not clustering. You will probably have to
specify the correct host for communication in the phase of getting a
JNDI Context.

To lookup an EJB from the other cluster you might do the following...

InitialContext cts = new InitialContext() ;

Thats the problem. BEA assumes you mean the Context of the cluster this
piece of code runs in. If you want the other cluster you need to
specifiy the cluster by giving JNDI Parameters when creating the context.

You might take a look here
http://e-docs.bea.com/wls/docs81/javadocs/weblogic/jndi/WLInitialContextFactory.html

where you will find:
   Hashtable env = new Hashtable(5);
   env.put(Context.INITIAL_CONTEXT_FACTORY,
           "weblogic.jndi.WLInitialContextFactory");
   env.put(Context.PROVIDER_URL,
           "t3://weblogicServer:7001");
   Context ctx = new InitialContext(env);

hope this solves your problem.

regards
Volker


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.