wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Need documentation on weblogic server properties. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Need documentation on weblogic server properties." Watch "Need documentation on weblogic server properties." New topic
Author

Need documentation on weblogic server properties.

Prasanna Lakshmi Tallapaka
Greenhorn

Joined: Jun 28, 2010
Posts: 24
Hi,

Could any one of you please be so kind to help me knowing the documentation for the weblogic server properties like weblogic.Name, weblogic.Rootdirectory etc. where I can find the significance for the same. Many thanks to you.

Warm Regards,
Prasanna Lakshmi Tallapaka
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
You do not mention the version you are using and the context in which you encountered the properties. However, with a little googling I found some information on the oracle.com site :

weblogic.rootDirectory info - A Server's Root Directory

weblogic.Name - The WebLogic server that is part of the domain.
Prasanna Lakshmi Tallapaka
Greenhorn

Joined: Jun 28, 2010
Posts: 24
Hi Carol Enderlin,

Many thanks for your effort and willingness to help with the limited info. I work with weblogic 9.2 and enoucntered

in the application's log4j.properties file.

Now the scenario is to migrate another application frmo tomcat to weblogic 11g, planning to implement the Logging mechanism.

Hence went back to the application that is already using this and got stuck at {weblogic.Name} parameter as mentioned in the code above.

Could you please help me now as how do i confidure this if it is configurable and where. And interested to know what are the other such parameters. One of it I could find in the link below. Many thanks for that. Need to know as how i can go about it.

Hope this helps!

Many thanks for your help in advance on this.

Warm Regards,
Prasanna Lakshmi Tallapaka
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Oh, you are asking about log4j. That is a little different question.

weblogic.Name is set as a server property. I am looking at weblogic 9.2 domains

in a UNIX startup script, startWeblogic.sh:


in a windows startup script, startWebLogic.cmd

log4j can use system properties with the ${weblogic.Name} syntax seen in your log4j.properties file.

Now, you want to configure this? Not sure what your requirement is, but I would not change the value of weblogic.Name in your startup script. You can add other system properties.
Prasanna Lakshmi Tallapaka
Greenhorn

Joined: Jun 28, 2010
Posts: 24
Hi Carol Enderlin,

As mentioned already, my application runs on two clusters, two servers on each in a Domain. The crux here is that my log file name must reflect the name of the server. Eg : MyApplication_server1.log or MyApplication_server2.log. The name of the managed server could be substituted with ${weblogic.Name} in the log file name and My intension is not to change the server name but to configure the name in such a way that I can reach to the appropriate log file at a point of time. I expect it to reflect the server name, which processes the request at a point of time.

So, investigated a little at depth and found a config.xml for a weblogic domain. That contained a tag like



Something like this.

could you please validate if the

<server><name>server1</name>...</server> is used as a value for ${weblogic.Name} in my log4j.properties file.

Hope I am clear.

Many many thanks for your willingness to help!!

Warm Regards,
Prasanna Lakshmi Tallapaka
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Did you try it? Is it working? What is your issue?
Prasanna Lakshmi Tallapaka
Greenhorn

Joined: Jun 28, 2010
Posts: 24
Hi,

This is tried already but by some other person some years ago, in an application that is developed some time in the past and the developers are not in touch. Wanted to implement this feature in my application after knowing most of the in and out of this concept as I was not able to grab it from the existing applicaiton. This being a very very vast application.

This is my issue.

Otherwise, this concept is working fine.

As mentioned earlier, I needed to know how it is implemented and what were the configurations mandatory for such an implementation, in case, any of you had got a chance to have already done it earlier, beating round the bush and going on assumptions instead.

[could not reach to much of the oracle documentations ]

Many thanks for your interest and willingness to think over my requests and your helping attitude!

Many thanks Again.

Warm Regards,
Prasanna Lakshmi Tallapaka
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
When a WebLogic Server domain is created the server or servers are given names. Those names are put into config.xml, setDomainEnv.cmd (Windows), and probably some other places.

I start my server with startWebLogic.cmd. As I already mentioned, that script sets a System Property weblogic.Name when the server is started (simplified startup command) :

The value for that System Property appears to be set in setDomainEnv.cmd :

System properties may be used in log4j.properties using ${} syntax. I do not know whether the value in config.xml might be used in setting the weblogic.Name System Property under some condition. If you need more information than this, I guess you will need to do some research and/or testing.
Prasanna Lakshmi Tallapaka
Greenhorn

Joined: Jun 28, 2010
Posts: 24
Ok. Thanks a lot for your effort, time and willingness to help!

Warm Regards,
Prasanna Lakshmi Tallapaka
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need documentation on weblogic server properties.
 
Similar Threads
Starting webLogic server
Deploy the bean
weblogic
How can I access config.xml properties?
change property with weblogic