???????????glassfish???????????????????Solaris?zone?????????
??????????????Glassfish?Cluster
Server1?10.0.0.1?;Server2?10.0.0.2?
1.???Server1?Server2???/etc/hosts
#vi /etc/hosts
10.0.0.1 server1-hostname
10.0.0.2 server2-hostname
2.??????????glassfish
(1)??glassfish  http://glassfish.dev.java.net/
(2)??glassfish
#java -Xmx256m -jar filename.jar
#cd glassfish
#ant -f setup-cluster.xml
3.?Server1???glassfish domain1
#cd /glassfish/bin
#./asadmin
Use "exit" to exit and "help" for online help.
asadmin> start-domain

(?????????????http://10.0.0.1:4848 ????????)
asadmin> create-node-agent gf1
asadmin> start-node-agent gf1
Please enter the master password [Enter to accept the default]:>
Redirecting output to /glassfish/nodeagents/gf1/agent/logs/server.log
Redirecting application output to 
/glassfish/nodeagents/gf1/agent/logs/server.log
Command start-node-agent executed successfully.
4.?Server2?
#cd /glassfish/bin
#./asadmin
Use "exit" to exit and "help" for online help.
asadmin> start-node-agent  --host 10.0.0.1 --port 4848 gf2
asadmin> start-node-agent gf2
5.??????????????node agents????2?node?gf1?gf2.
6.?????????Clusters?????????new?????????????????????OK????????cluster????cluster?????????????Clsuter???????????????

Glassfish?cluster????????????????Session??????????????????????????????????????????????
-- 
This message posted from opensolaris.org

Reply via email to