Hi all
I am using Weblogic11, EJB3.0
I am working in Cluster.
I would like to retrieve inside the Java code the current server Name(instance/id). since I want to do some operation on one server one and a different operation on another
thanks,
ray.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you look at the command line parameters you will see -Dweblogic.Name=[ServerName]. You can get this from the Java environment parameters. Here’s how you can access it: