Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy multiple copies of same application on Glassfish server?

I have a war and an ejb deployed on my Glassfish V3. I need to deploy another copies of these for testing purpose, how I do I go about this?

I am sorry, if this question looks too general, but am not sure what words to use here as I have never done this before.

I just need some directions to get started.

Update:

What I was actually trying to see was if it was possible to deploy two copies of the same application with the same name and same application-context but access them from two different ports as follows -

localhost:8080/MyApp and localhost:8181/MyApp

like image 769
Bhesh Gurung Avatar asked Oct 20 '11 15:10

Bhesh Gurung


People also ask

What is GlassFish server target?

target> Ant resolves properties from top to bottom in Ant build files. If you define the GlassFish Server Ant tasks at the project level, make sure that any properties used within the task definitions have been resolved before the task definitions.

Why do we use GlassFish server?

GlassFish is a Java application server project created by Sun Microsystems that allows many developers to generate enterprise technologies that are convenient and scalable, as well as additional services that can be installed based on preference.


2 Answers

Multiple domains was what I actually needed.

like image 151
Bhesh Gurung Avatar answered Sep 23 '22 13:09

Bhesh Gurung


Give the three copies different application context names

[edit]

I just installed Glassfish 3, and deployed two copies of Jenkins through the glassfish admin console, each with a different war name. I gave each one a different context and different application name and now have two copies running.

enter image description here

like image 40
blank Avatar answered Sep 20 '22 13:09

blank