• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 39
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rajasekhar Pentakota
Ranch Hand
Posts: 39
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont want do install the application in server3. I just need it in Server1 and Server2
 
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rajasekhar Pentakota
Ranch Hand
Posts: 39
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Your mind is under my control .... your will is now mine .... read this tiny ad
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic