experchange > java

R. Schneider (11-29-18, 11:46 AM)
Hello all,

I would like to run multiple projects on my server, but not only one.
Could anybody tell me if and how this can be archieved with glassfish ?

Regards,
Ralf

This runs:
Arne Vajh°j (11-30-18, 12:01 AM)
On 11/29/2018 4:46 AM, R. Schneider wrote:
> I would like to run multiple projects on my server, but not only one.
> Could anybody tell me if and how this can be archieved with glassfish ?


One war file or ear file per project?

Arne
R. Schneider (11-30-18, 03:12 PM)
Am Thu, 29 Nov 2018 17:01:41 -0500 schrieb Arne Vajh°j:

> On 11/29/2018 4:46 AM, R. Schneider wrote:
>> I would like to run multiple projects on my server, but not only one.
>> Could anybody tell me if and how this can be archieved with glassfish ?

> One war file or ear file per project?
> Arne


Yes. For every project one. Will this work to deploy them in parallel ?

Ralf
Arne Vajh°j (12-01-18, 03:05 AM)
On 11/30/2018 8:12 AM, R. Schneider wrote:
> Am Thu, 29 Nov 2018 17:01:41 -0500 schrieb Arne Vajh°j:
>> On 11/29/2018 4:46 AM, R. Schneider wrote:
>>> I would like to run multiple projects on my server, but not only one.
>>> Could anybody tell me if and how this can be archieved with glassfish ?

>> One war file or ear file per project?

> Yes. For every project one. Will this work to deploy them in parallel ?


You can deploy multiple ear/war to the same Glassfish
instance independently of each other.

(it is possible to shoot oneself in the foot, but ...)

Arne
R. Schneider (12-02-18, 11:51 AM)
Am Fri, 30 Nov 2018 20:05:06 -0500 schrieb Arne Vajh°j:

> On 11/30/2018 8:12 AM, R. Schneider wrote:
> You can deploy multiple ear/war to the same Glassfish instance
> independently of each other.
> (it is possible to shoot oneself in the foot, but ...)
> Arne


Where is the problem ? This is the aim of my question ?

Ralf
James (12-02-18, 12:50 PM)
On 29/11/2018 09:46, R. Schneider wrote:

> I would like to run multiple projects on my server, but not only one.
> Could anybody tell me if and how this can be archieved with glassfish ?


Yes it can, "asadmin" is the command to use. The following sub commands
will get you started (replace "..." with your parameters):

** creation:
asadmin create-virtual-server ...
asadmin create-jdbc-connection-pool ...
asadmin create-jdbc-resource ...

** removal:
asadmin delete-jdbc-resource ...
asadmin delete-jdbc-connection-pool ...
asadmin delete-virtual-server ...

** list / test:
asadmin list-virtual-servers
asadmin list-jdbc-resources
asadmin ping-connection-pool ...

** deployment:
asadmin deploy ...
asadmin redeploy ...
asadmin undeploy ...

See:



James
Arne Vajh°j (12-03-18, 02:32 AM)
On 12/2/2018 4:51 AM, R. Schneider wrote:
> Am Fri, 30 Nov 2018 20:05:06 -0500 schrieb Arne Vajh°j:
> Where is the problem ? This is the aim of my question ?


Are you asking how you can shoot yourself in the foot
(aka create Java EE applications that is not easily independently
deployed and restarted)?

Arne
R. Schneider (12-03-18, 12:54 PM)
Am Sun, 02 Dec 2018 19:32:04 -0500 schrieb Arne Vajh°j:

> On 12/2/2018 4:51 AM, R. Schneider wrote:
> Are you asking how you can shoot yourself in the foot (aka create Java
> EE applications that is not easily independently deployed and
> restarted)?
> Arne


This was the question from the beginning.
Will it be possible to deploy only one project with

sudo /usr/local/glassfish-4.1.1/bin/asadmin deploy
--force Projekte/Profil/dist/Profil.war

or deploy a second one, too ?

Ralf
Similar Threads