This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

StagedTargets,Targets and cluster

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
Till now I did not have cluster in my project. I had only one weblogic server running in my domain and it is server1.
Now I want to make a cluster of 2 servers say server1 and server2 where server2 will be running one special ejb component say spejb.jar. All other ejbs will be deployed on server1.
As per my knowledge, the stagedTargets indicate the servers having latest version of the application and in this case I want to mention server1 because i will be keeping all the latest versions in server1. Does the following piece of config.xml work correctly in this scenario regarding ejb component spejb.jar ?

<Application Deployed="true" Name="ejb/SPEJB"
Path="./config/domain/applications/ejb" StagedTargets="server1">
<EJBComponent Name="ejb/SPEJB" Targets="server1" URI="spejb.jar"/>
</Application>
I guess, targets should be server2 and that is the only change i will have to do ?
If I mention target="server1", I guess there is no point in having server2.
Since I want to run spejb.jar only on server2, I guess I do not have to mention clustername as the targets.

I would highly appreciate if anyone can guide me in this matter.
thanks
 
What are your superhero powers? Go ahead and try them on this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!