aspose file tools*
The moose likes Websphere and the fly likes How to install same application in multiple servers in websphere netdeployment App Server Environmen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "How to install same application in multiple servers in websphere netdeployment App Server Environmen" Watch "How to install same application in multiple servers in websphere netdeployment App Server Environmen" New topic
Author

How to install same application in multiple servers in websphere netdeployment App Server Environmen

Rajasekhar Pentakota
Ranch Hand

Joined: Aug 28, 2007
Posts: 37

Hi

I have a NetWork Deployment Websphere 6.1 Application Server. I have created 3 servers under 1 cellA-->nodeA.

I have installed one application in ServerA,ServerB. When I try to run the application from ServerA its working but its not form ServerB.

Can any one please help me how to install same application in multiple servers in websphere netdeployment App Server Environment.



Thanks
Rajasekhar
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You do this by creating a "Cluster" and then deploying the application to the cluster, rather than to an individual server. When you deploy to a cluster, WebSphere automatically deploys the application to all servers in the cluster.

See The WebSphere InfoCenter for more information on how to create and administer clusters.


Merrill
Consultant, Sima Solutions
Rajasekhar Pentakota
Ranch Hand

Joined: Aug 28, 2007
Posts: 37

I dont want do install the application in server3. I just need it in Server1 and Server2
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 247

You want same application in two different servers right.(With out clustering)


Possible combinations:

VirtualHost1+Server1+ContextRoot+WebServer1
VirtualHost2+Server2+ContextRoot+WebServer2

Note: 2-different listen ports needs for Webserver1+2
or

VirtualHost1+Server1+ContextRoot+WebServer1
VirtualHost2+Server2+ContextRoot+WebServer1


Note: Here webserver1 needs to listen in three different ports to avoid conflicts.



Thanks,
-Ricky

Regards, Ricky
Oracle Weblogic 10g Certified Expert
TechPaste.Com
Rajasekhar Pentakota
Ranch Hand

Joined: Aug 28, 2007
Posts: 37

Hi Ricky

Can you explain how to create virtual hosts as you specified.

I have tried creating like

Environment-->virtusal host -> default_host-> here added my server2 port.

My applicaiton is working in two servers but I just wanna make some changes to the config file differently for each same application instances. hope you understand.


another question is

Can I install the same application with two different context names ofcourse in two servers. As my application is an ear file I couldn't specify the context root name. I want to edit the properties in a file in the web inf folder for the application with two different contexts.

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Rajasekhar Pentakota wrote:I dont want do install the application in server3. I just need it in Server1 and Server2

How many servers you want the application to run on has nothing to do with whether it should be clustered. When you define a cluster, you define which servers will be part of the cluster to serve the application and which ones won't. To decide whether you should use clustering or not, the important question is: Am I using multiple servers so that my application has greater fail-over capabilities or to increase its capacity to serve a larger number of concurrent users? If the answer to this question is yes, you should use clustering. If it's no, you shouldn't.
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 247

Rajasekhar Pentakota wrote:Hi Ricky

Can you explain how to create virtual hosts as you specified.

I have tried creating like

Environment-->virtusal host -> default_host-> here added my server2 port.

My applicaiton is working in two servers but I just wanna make some changes to the config file differently for each same application instances. hope you understand.


another question is

Can I install the same application with two different context names ofcourse in two servers. As my application is an ear file I couldn't specify the context root name. I want to edit the properties in a file in the web inf folder for the application with two different contexts.



Yes thats right. Thats the way to create Vhosts but add more ports like SOAP connector port number of the server to which the VHost is asigned.

About the contextroot I have not tried doing it because its always risky putting different contextroot for same application in same instance.
Its better to alter all other combinations and run app as changing context root's manually in EAR files not suggested one.
Though if you are doing it for test only then you can change the contextroot in application.xml file and test it but remember its not recomended procedure.

Thanks,
-Ricky
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to install same application in multiple servers in websphere netdeployment App Server Environmen
 
Similar Threads
ORM Cache Clearing General Question
Servlet Context
wsadmin:Deployment of application on two servers
Scope of an HttpSession
Passing data from servlet/jsp