Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to set-up a Glassfish 3.1.1 Cluster for testing purposes.

Currently, I've got 2 hosts with Glassfish 3.1.1 installed. I've set-up a DAS domain on host1, and followed this guide to create the cluster: http://javadude.wordpress.com/2011/04/25/glassfish-3-1-clustering-tutorial/

This all worked quite well, and I've got 2 instances running on the 2 hosts which I can start/stop etc from the DAS.

However I want to set-up an init script for the individual instances on their relevant host to ensure that the instance starts correctly on a reboot.

I've found the command:

asadmin start-instance --node host1_node1 host1_inst1
asadmin start-instance --node host2_node1 host2_inst1

However this command keeps asking me for a admin username and admin password. I've tried a asadmin --host host1 --port 4898 login, which saves the details correctly. However I'm still being prompted for a username/password on running the start-instance command.

Any ideas???

Cheers Gavin

share|improve this question

1 Answer 1

You can use

asadmin start-local-instance
asadmin stop-local-instance

on the cluster nodes.

The DAS still needs to be started with asadmin start-domain.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.