|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
Clustering ConceptsHello,
I am a newbie to GF and I am not very clear on certain clustering related concepts. - I want to setup a cluster spanning server instances that are running on 2 machines. This is what I have done so far. 1. Installed GFv2UR2 on both these machines. Use the setup-cluster.xml script to start a domain (with clustering enabled) on each of these machines. The domain is named "domain1". 2. Started node-agents on each of these machines (example: NA-MAC1, NA-MAC2) 3. Start 2 instances per machine managed by those node agents. - Now, this is where my understanding goes out of the window. How do I start a single cluster that spans all these instances (2instances x 2machines)? - I want to deploy few EJBs on the cluster and I want to lookup these EJBs over JNDI from a stand alone Java client. Is there a way by which I could use the connection parameters of the "cluster" for the JNDI lookup and the EJB instances get created on one of the 4 instances? Any help would be appreciated... Thanks, Shreyas [Message sent by forum member 'sshinde2' (sshinde2)] http://forums.java.net/jive/thread.jspa?messageID=286522 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
||
|
|
Re: Clustering ConceptsPlease see the following blog entry, it has all relevent links for clustering concepts http://blogs.sun.com/quality/entry/glassfish_for_enterprise Also, please see inlines Thanks, Gopal glassfish@... wrote: From the DAS machine, you can do asadmin start-cluster, the instances on all the machines will be started. This is centralized administration, please see the above blog and documents from the blog for detailsHello, I am a newbie to GF and I am not very clear on certain clustering related concepts. - I want to setup a cluster spanning server instances that are running on 2 machines. This is what I have done so far. 1. Installed GFv2UR2 on both these machines. Use the setup-cluster.xml script to start a domain (with clustering enabled) on each of these machines. The domain is named "domain1". 2. Started node-agents on each of these machines (example: NA-MAC1, NA-MAC2) 3. Start 2 instances per machine managed by those node agents. - Now, this is where my understanding goes out of the window. How do I start a single cluster that spans all these instances (2instances x 2machines)? I hope the following blog helps you- I want to deploy few EJBs on the cluster and I want to lookup these EJBs over JNDI from a stand alone Java client. Is there a way by which I could use the connection parameters of the "cluster" for the JNDI lookup and the EJB instances get created on one of the 4 instances? http://blogs.sun.com/quality/entry/ejb_availability_in_glassfish Any help would be appreciated... Thanks, Shreyas [Message sent by forum member 'sshinde2' (sshinde2)] http://forums.java.net/jive/thread.jspa?messageID=286522 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --
|
||
|
|
Re: Clustering ConceptsThanks a lot Gopal! Its clear now.
Does the OS of the machines on which the server instances are running matter in a cluster? For example: Can I have 2 instances running on Solaris 10, 2 instances of RHEL 5 and 2 on Windows within a single cluster? The Admin console for the DAS seems to be sluggish when more than 2 Node Agents are connecting to the DAS. Have you come across this kind of behavior before? Thanks, Shreyas [Message sent by forum member 'sshinde2' (sshinde2)] http://forums.java.net/jive/thread.jspa?messageID=286863 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
||
|
|
RE: Clustering ConceptsNo problem in mixing at matching nodes ;) I have our test cluster
working with 3 Linux node and 1 Windows node. Haven't seen the Admin console being sluggish .... if it is check the load on your DAS box ;) Manfred -----Original Message----- From: glassfish@... [mailto:glassfish@...] Sent: Tuesday, July 15, 2008 3:37 PM To: users@... Subject: Re: Clustering Concepts Thanks a lot Gopal! Its clear now. Does the OS of the machines on which the server instances are running matter in a cluster? For example: Can I have 2 instances running on Solaris 10, 2 instances of RHEL 5 and 2 on Windows within a single cluster? The Admin console for the DAS seems to be sluggish when more than 2 Node Agents are connecting to the DAS. Have you come across this kind of behavior before? Thanks, Shreyas [Message sent by forum member 'sshinde2' (sshinde2)] http://forums.java.net/jive/thread.jspa?messageID=286863 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
||
|
|
Re: Clustering ConceptsAs I am chugging along my GF clustering adventures....
I have an EJB module deployed on a cluster of server instances. I used the admin console to deploy the EJB module (as jar file). I also have a stand alone java client that needs to consumes these EJBs. I've created the appropriate ACC configuration files (sun-acc.xml), got the client stubs for the deployed EJB module. Now, when I try to run my stand alone client in the ACC I get the following error Run: appclient.bat -client client_stubs.jar -mainclass Test Error: com.sun.enterprise.appclient.UserError: The archive client_stubs.jar seems to be valid but an app client or an enterprise app was expected -- Why is the ACC throwing this error? -- Can I only use the stubs from an enterprise app in this case? Will the stubs from the EJB module work? Thanks, Shreyas [Message sent by forum member 'sshinde2' (sshinde2)] http://forums.java.net/jive/thread.jspa?messageID=288848 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
||
|
|
Re: Clustering ConceptsIs the JAR you are specifying one that you created? Or is it what GlassFish returns with the
asadmin deploy ... --retrieve command or the asadmin get-client-stubs command? I'm assuming it's one you create yourself which should be fine. The error suggests - perhaps not as clearly as it might - that the file you specified seems to be a valid JAR but that the ACC does not recognize it as either an app client JAR file or the retrieved JAR from one of the two commands shown above (which for internal reasons happens to be in EAR format). The ACC uses some utility classes to work with the client JAR file, and these utilities try to determine what type of archive has been provided. They use the presence of a descriptor in the archive or, in the case of an app client, also the existence of a Main-Class setting in the JAR's manifest. It seems that the JAR file you are using does not have an application-client.xml or sun-application-client.xml file in its META-INF directory nor does it set Main-Class in the manifest. You might argue that by specifying -mainclass on the appclient command you are telling the ACC what it needs to know, but the archive-type detection logic runs before the mainclass argument is processed, so in your case it does not recognize the archive type and complains. Can you arrange to set the Main-Class entry in the JAR's manifest and see if that helps? - Tim [Message sent by forum member 'tjquinn' (tjquinn)] http://forums.java.net/jive/thread.jspa?messageID=288853 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
||
|
|
Re: Clustering ConceptsThanks for replying Tim.
I've used the asadmin get-client-stubs command to get the client side jar file. On opening this jar file, I see that it does not contain application-client.xml and sun-application-client.xml. It does have an "appDescr" file. Am I missing something here? -- The "-mainclass" argument for the appclient program, should it specify the main class of your stand alone program or does it have some other semantics? If not, what does it need to point to? -- I'll try this with an EAR form of the client stub and check if that works.. Thanks, Shreyas [Message sent by forum member 'sshinde2' (sshinde2)] http://forums.java.net/jive/thread.jspa?messageID=288876 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
||
|
|
Re: Clustering ConceptsJust so I'm clear...
Did you deploy an EJB module and that's the app you specified on the get-client-stubs command? Use the -mainclass argument to specify the main class of your client or stand-alone program. - Tim [Message sent by forum member 'tjquinn' (tjquinn)] http://forums.java.net/jive/thread.jspa?messageID=288880 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
||
|
|
Re: Clustering ConceptsDid you deploy an EJB module and that's the app you specified on the get-client-stubs command?
>> Yes. Use the -mainclass argument to specify the main class of your client or stand-alone program. >> I was assuming that would be the use case. Also, where should be the class files for my stand alone program and where should the dependent jars for the same program located? [Message sent by forum member 'sshinde2' (sshinde2)] http://forums.java.net/jive/thread.jspa?messageID=289107 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
||
|
|
Re: Clustering ConceptsHello Tim,
I got my stand alone program running. But I observe that appclient.bat needs the client jar to be in EAR format. It does not work with client stubs for EJB modules or App Client Modules. Is it really the case? Also, you need to enable load balancing for the EJB application on the GF cluster. There are some missing pieces that I need to figure out.... Thanks, Shreyas [Message sent by forum member 'sshinde2' (sshinde2)] http://forums.java.net/jive/thread.jspa?messageID=289139 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |