Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

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"/>
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.
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic