dev@glassfish.java.net

JSR 88 java API deploying on a cluster in glassfish

From: Kalle Widlert <kalle.widlert_at_ericsson.com>
Date: Fri, 15 Feb 2008 15:19:56 +0100

Hi,
I am trying to deploy a web application (war file) on a cluster using
the JSR88 java API.
Everything works fine when not using a cluster.
When I deploy it on a cluster I can not reach the web page and have to
add the command
"asadmin create-application-ref testApp"
to get it to work.
So the question is how to do the "asadmin create-application-ref
testApp" in the java API?

This is how It is done with asadmin:
asadmin deploy --target=cluster1 testApp.war
asadmin create-application-ref testApp

Regards
Kalle