Update to deploying webservices on Glassfish 3.1 cluster
This blog is a minor update to the previous entry of www.java.net/blog/bhaktimehta/archive/2010/07/23/deploying-webservices-glassfish-31-cluster
Glassfish 3.1 is in active development and there are some changes since the last time I posted this blog.
Most of the steps remain same and I am using the same setup on 2 machines.
1. Install Glassfish 3.1 b23 from http://dlc.sun.com.edgesuite.net/glassfish/3.1/promoted/latest-glassfish.zip
2. DAS is my mac and other instance is on adc2180404
3. asadmin start-domain
Waiting for the server to start ..........
Successfully started the domain : domain1
domain Location: /Users/bhakti/b23/glassfishv3/glassfish/domains/domain1
Log File: /Users/bhakti/b23/glassfishv3/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Debugging is enabled. The debugging port is: 9009
Command start-domain executed successfully.
4.asadmin create-cluster mycluster
Command create-cluster executed successfully.
5.asadmin create-node-config --nodehost adc2180404.us.oracle.com adcconf
Command create-node-config executed successfully.
6.Additional step (You need to specify the installdir param )
asadmin update-node-config --installdir
Command update-node-config executed successfully.
7.asadmin create-instance --cluster mycluster --node adcconf mycluster_i1
The instance mycluster_i1 was registered with the DAS. You must run the following comand on the instance host to complete the instance creation:
asadmin --host bhakti-mehtas-macbook-pro.local --port 4848 create-local-instance --node adcconf mycluster_i1
Command create-instance executed successfully.
8.asadmin --host dhcp-santaclara22-1fl-west-10-132-178-100.usdhcp.oraclecorp.com --port 4848 create-local-instance --node adcconf mycluster_i1
Rendezvoused with DAS on dhcp-santaclara22-1fl-west-10-132-178-100.usdhcp.oraclecorp.com:4848.
Command create-local-instance executed successfully.
9.asadmin start-local-instance mycluster_i1
Waiting for the server to start ............
Successfully started the instance: mycluster_i1
instance Location: /scratch/bhamehta/b23/glassfishv3/glassfish/nodes/adcconf/mycluster_i1
Log File: /scratch/bhamehta/b23/glassfishv3/glassfish/nodes/adcconf/mycluster_i1/logs/server.log
Admin Port: 24849
Command start-local-instance executed successfully.
./asadmin deploy --target mycluster /Users/bhakti/ejbwsinwar/dist/ejbwsinwar.war
I tried deploying the war which we developed as part of this blog
http://weblogs.java.net/blog/bhaktimehta/archive/2010/06/24/ejb-webservi... and could access the wsdl from the instance.