• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need documentation on weblogic server properties.

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you try it? Is it working? What is your issue?
 
Prasanna Lakshmi Tallapaka
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok. Thanks a lot for your effort, time and willingness to help!

Warm Regards,
Prasanna Lakshmi Tallapaka
 
reply
    Bookmark Topic Watch Topic
  • New Topic