Retrieve system properties, eg. weblogic.system.home
Hi!
I am trying to retrieve the value of the system property weblogic.system.home. Note
that it is not defined in the weblogic.properties file in WL5.1 with SP8, but specified
in a start WL batch script.
The code snippet
.. System.getProperty("weblogic.system.home") ...
returns null.
Any ideas on what I'm doing wrong?
Regards,
Jan
T3ServicesDef t3 = T3Services.getT3Services();
home = t3.config().getProperty("weblogic.system.home");
Mike
It is weblogic.system.home - do not confuse.
Fri May 11 11:40:26 PDT 2001:<I> <Config> Property name: 'weblogic.system.home',
current value: '/home/weblogic/weblogic51_lab'
"Giri Alwar" <[email protected]> wrote:
The property is called "weblogic.home" not "weblogic.system.home".
Giri
"Jan Nygaard Nielsen" <[email protected]> wrote in message
news:3b028e0b$[email protected]..
Hi!
I am trying to retrieve the value of the system propertyweblogic.system.home. Note
that it is not defined in the weblogic.properties file in WL5.1 with SP8,but specified
in a start WL batch script.
The code snippet
.. System.getProperty("weblogic.system.home") ...
returns null.
Any ideas on what I'm doing wrong?
Regards,
Jan
Similar Messages
-
See Java System properties using WebLogic Server console
hi
If I deploy "systempropertiesweb.war" [1] on WebLogic Server I can see all or individual Java System properties,
e.g. http://localhost:7101/systempropertiesweb/systemproperties?property=java.version results in "java.version = 1.6.0_24"
Is it possible to see the same Java System properties using WebLogic Server Administration Console? If so, how?
( via http://localhost:7101/console )
- [1] at SystemPropertiesApp/SystemPropertiesWeb/deploy/systempropertiesweb.war
in http://www.consideringred.com/files/oracle/2013/SystemPropertiesApp-v0.01.zip
many thanks
Jan VerveckenThanks for your reply Timo.
Timo Hahn wrote:
I don't think that there is an option to see this in the admin console. ...Thanks for the confirmation.
... There my be a mbean but I did not find it.Well, if I start JConsole (e.g. at C:\oracle\jdevstudio111240-mw\jdk160_24\bin\jconsole.exe ) and connect to e.g. Local Process "weblogic.Server", on the MBeans tab I can navigate to java.lang:type=Runtime which has an SystemProperties attribute.
But, I don't know how to get to this same MBean using the WebLogic Server Administration Console (if possible).
regards
Jan Vervecken -
How to put system properties into weblogic6.1
How do I p[ut in System.properties into Weblogic 6.1 server, like we could in
weblogic5.1
Thanks
Raj
The article below contains information about how to create 1.44 MB Mac boot floppies under Mac OS X. Without having tested this procedure at all, I cannot say whether recent system versions would work or not.
http://lowendmac.com/brierley/08pb/classic-mac-boot-floppy.html
Otherwise, the easiest way would probably be to locate another older (pre-1998) Mac with a built-in floppy drive for 1.44 MB (and possibly with a direct Internet connection). JustSomeGuy provided you with links to two 6.0.8 (1.44 MB) downloads. A utility called StuffIt Expander can be used to decode downloaded MacBinary (.bin) files on the Mac in question. After decoding and decompression, one can create sector-copied floppies from the resulting disk images via (the Make A Copy button in) Disk Copy 4.2.
http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English -North_American/Macintosh/Utilities/Disk_Copy/
If it is absolutely impossible to locate another older Mac, one could even use a Windows PC with a floppy drive (an appropriate version of Aladdin/StuffIt Expander for Windows, and a disk-image utility like WinImage, would be needed in order to make sector-copied 1.44 MB floppies).
Jan -
How do you determine weblogic.system.executeThreadCount
we r doing load testing a web based application with the following setup.
Two 1 Gb Ram servers, one hosting Database(oracle 8i) server and the other hosting
Weblogic5.1 + Apache server.
The system is stable upto 90 concurrent users. with response times well below 5 secs.
with apprximately 20 deplyed stateless session beans
weblogic.system.executeThreadCount=45
connectionPool/maxconnections = 45.
max heap allocated 512 MB
weblogic.system.servletThreadCount=0
but once the concurrent users cross 90, the system takes longer response times,and
at arond 130 concurrent users the load testing tool gets timeouts.
I am a bit confused on how to select the best value for executeThreadCount ?
Is it better to set servletThreadCount also ? if so, are the
parameters
1) weblogic.system.executeThreadCount
2) weblogic.system.servletThreadCOunt
3) max. no concurrent users to be supported and
4) RAM available
related in any way ? I know these parameters depend on the application as well, but
are there any max/min values for these parameters.best put, how do you work out weblogic.system.executeThreadCount
value.
u can pls. help.
raghuThe Core Duos can do 10.5.x or cheaper 10.6.x, they cannot do Lion/10.7.x
To see if you need to upgrade anything first...
At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
Hardware Overview:
Model Name: iMac
Model Identifier: iMac7,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.4 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 4 MB
Memory: 6 GB
Bus Speed: 800 MHz
Boot ROM Version: IM71.007A.B03
SMC Version (system): 1.21f4
Leopard requirements/10.5.x...
* Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor
minimum system requirements
* 512MB of memory (I say 1.5GB for PPC at least, 2-3GB minimum for IntelMacs)
* DVD drive for installation
* 9GB of available disk space (I say 30GB at least)
Snow Leopard/10.6.x Requirements...
General requirements
* Mac computer with an Intel processor
* 1GB of memory (I say 2GB at least)
* 5GB of available disk space (I say 30GB at least)
* DVD drive for installation
* Some features require a compatible Internet service provider; fees may apply.
* Some features require Apple’s MobileMe service; fees and terms apply.
Which apps work with Mac OS X 10.6?...
http://snowleopard.wikidot.com/
It looks like they might still have it...
http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
If it's a core Duo & not a Core2Duo, then it'll only run in 32 bit mode. -
URGENT: Passing system properties to individual thread processes
Hi:
I'm trying to invoke multiple java Servers from a Controller class to enable starting all the servers in a single JVM. The code is shown below:
public class Controller {
/** Creates new Controller */
public Controller() {
* @param args the command line arguments
public static void main(String args[]) {
(new Thread(new Runnable() {
public void run() {
ChatServerRMI.Server.main(null);
})).start();
(new Thread(new Runnable() {
public void run() {
LoginService.LoginServerBaseImpl.main(null);
})).start();
However I want to pass system properties/arguments to each main() call. Can someone please explain me how this can be done.....ur help will be appreciated with D$s!
Thanks in advance.If by "system properties" you mean the system properties accessible by System.getProperty("user.dir") and the like, you don't have to do anything to make those available to the threads. They are global and any piece of code can access them.
If you want to pass arguments to the various "main" methods as if they had been typed at the command line, you just make an array of strings with those arguments and use it as the parameter. For example:ChatServerRMI.Server.main(new String[] {"-port" "2023"});And if you don't want to pass any parameters, do it like this:String[] nothing = new String[0];
LoginService.LoginServerBaseImpl.main(nothing); -
Hi,
I would like to point weblogic to a directory NOT under c:\bea\... for it's configuration.
I used to do this on WLS 5.1 by setting:
weblogic.home=/weblogic and weblogic.system.home=/projects/wlsconfig
This way my config was NOT coupled to the weblogic install.
I want to do the same thing, and have the config directory located in /projects/domainconfig
for example.
weblogic.system.home etc doesn't seem to do anything. The
only variable that does anything is bea.home, but I need weblogic to find it's
libs etc in /bea, but ONLY the config should be elsewhere.
Any help would be great.
Thanks,
DionFrom SP1 and beyond, you can use
-Dweblogic.RootDirectory=<dirname>
* The property for specifying configuration location:
* The directory name of the domain from which to load the specified
* configuration. The default is ".".
* -Dweblogic.RootDirectory=<dirname>
* The directory must exist.
Dion Almaer wrote:
Hi,
I would like to point weblogic to a directory NOT under c:\bea\... for it's configuration.
I used to do this on WLS 5.1 by setting:
weblogic.home=/weblogic and weblogic.system.home=/projects/wlsconfig
This way my config was NOT coupled to the weblogic install.
I want to do the same thing, and have the config directory located in /projects/domainconfig
for example.
weblogic.system.home etc doesn't seem to do anything. The
only variable that does anything is bea.home, but I need weblogic to find it's
libs etc in /bea, but ONLY the config should be elsewhere.
Any help would be great.
Thanks,
Dion[att1.html] -
JMX question: how to retrieve system properties, DataSource attributes ?
Hi,
I need to retrieve some parameters from my JEE application (*.ear) my collegues will deploy soon on Netweaver 7.2
I found documentation about how to connect to the server with JMX, that works fine:
http://help.sap.com/saphelp_nw04/helpdata/en/64/617cfb94845d468b0498b4b2c53d74/content.htm
But how can I come to the system properties for example? Which ObjectName do I have to use and what methods should be called? Are there some more examples for common operations based on the default (monitoring) MBeans?
Thanx a lot,
Bobhttp://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/
That blog post includes functions to get "today" for:
DB2 current date
Oracle sysdate
Informix TODAY
MySQL CURDATE()
SQL Server getdate()
Sybase getdate()
Teradata DATE or CURRENT_DATE
It is also the first in a series of posts that show you how to create other creative time objects for use in your universe. Hope this helps. -
Use of weblogic.system.home property
Hi,
I am working on Windows 2000, with weblogic 6.0.
I am trying to launch the default weblogic server with the
script startWebLogic.cmd, but I modified the original script
to set the current directory as the script directory.
So I commented the cd ..\.. command and set the weblogic.system.home on the java
weblogic.Server, as it is
written in the adminguide page 2-6
But it seems that weblogic can no longer find the config.xml file.
In fact the exception I got is the following "weblogic.management.configuration.ConfigurationException:
XmlRepository directory .\config does not exist" and the startup.log file contains
the following warning : "####<Feb 10, 2001 12:12:51 PM EST> <Warning> <Management>
<nicolas> <myserver> <main> <> <> <000000> <Unrecognized property: system.home>"
So I am just wondering if the system.home property is still supported or if it is
a documentation mistake (or misunderstanding)
Else is there any way to start a weblogic server with the home dir different than
the installation root.
Thanks
But"-Dweblogic.RootDirectory=c:\bea\wlserver6.0sp1" . . . Thank you Vijay at BEA
"David Brown" <[email protected]> wrote:
>
Does any have any more information regarding using the new 'ServerMBean.RootDirectory'
property ? I really need to find a way to tell weblogic 6.0sp1 where
to find
it's XmlRepository. (./config)
In our instalaltion, "./config" is under c:\bea\wlserver6.0sp1\, but
we are launching
the JVM from a directory outside of c:\bea\wlserver6.0sp1, so I need
to tell the
VM where to look for ./config
Thanks,
David
"Sanjeev Chopra" <[email protected]> wrote:
Nicolas GANDRIAU <[email protected]> wrote in message
news:3a859168$[email protected]..
Hi,
I am working on Windows 2000, with weblogic 6.0.
I am trying to launch the default weblogic server with the
script startWebLogic.cmd, but I modified the original script
to set the current directory as the script directory.
So I commented the cd ..\.. command and set the weblogic.system.homeon
the java
weblogic.Server, as it is
written in the adminguide page 2-6
But it seems that weblogic can no longer find the config.xml file.
In fact the exception I got is the following"weblogic.management.configuration.ConfigurationException:
XmlRepository directory .\config does not exist" and the startup.logfile
contains
the following warning : "####<Feb 10, 2001 12:12:51 PM EST> <Warning><Management>
<nicolas> <myserver> <main> <> <> <000000> <Unrecognized property:system.home>"
So I am just wondering if the system.home property is still supportedor
if it is
a documentation mistake (or misunderstanding)This is a bug in 6.0 (system.home does not work).
This will be fixed for upcoming ServicePack 1, which defines a new
property - ServerMBean.RootDirectory
Else is there any way to start a weblogic server with the home dirdifferent than
the installation root.
Thanks
But -
Weblogic.system.home
I need help getting WL6.0 to do what Ihave been doing in 5.1. I have a piece of servlet code that uses:T3ServicesDef services = T3Services.getT3Services();services.config().getProperty("weblogic.system.home")to get the weblogics root directory. This no longer seems to work in 6.0 (getProperty is gone). What object do I need to reference to get the root directory of the installation w/ 6.0??
I need help getting WL6.0 to do what Ihave been doing in 5.1. I have a piece of servlet code that uses:T3ServicesDef services = T3Services.getT3Services();services.config().getProperty("weblogic.system.home")to get the weblogics root directory. This no longer seems to work in 6.0 (getProperty is gone). What object do I need to reference to get the root directory of the installation w/ 6.0??
-
Weblogic.system.home property
Hi,
I used to launch weblogic 5.1 from a directory other that the wl
installation directory by passing -Dweblogic.system.home=myDirectory when
launching the server. This doesn't work with 6.0. I get the following
exception (note that if I start wl from its installation directory,
everything is fine) :
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
Unable to start WebLogic Server !!
Improperly formatted license file: D:\license.bea
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
Is "weblogic.system.home" still valid ? If not, what is the new way of doing
this?
Thanks, Alexandre.I don't know if this was a problem in beta-1.
Could you try beta-2 (download from bea.com) and re-post if you still
see the problem?.
I just tried with the latest source line and i can run the server by
specifying a different
weblogic home directory.
Kumar
Alexandre Vauthey wrote:
>
Hi,
I used to launch weblogic 5.1 from a directory other that the wl
installation directory by passing -Dweblogic.system.home=myDirectory when
launching the server. This doesn't work with 6.0. I get the following
exception (note that if I start wl from its installation directory,
everything is fine) :
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
Unable to start WebLogic Server !!
Improperly formatted license file: D:\license.bea
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
Is "weblogic.system.home" still valid ? If not, what is the new way of doing
this?
Thanks, Alexandre. -
Via APIs. how can I get weblogic specific system properties
I am looking to find out the API for enumerating over weblogic's system
properties. I would like to be able to find out things like the service
pack #, the class path it's using, etc. I've tried the
System.getProperties() but that only gets me java properties.
Thanks.try getServletContext().getResourceAsStream("/index.html") where the filename should be givven relative to the web app root
try{
InputStream is = new BufferedInputStream(getServletContext().getResourceAsStream("/index.html"));
defaultProps.load(new FileInputStream("Intranet_Properties.props"));
finally {
if( is != null ){
is.close();
} -
How do I get the Weblogic system name in WLS 6.1 sp2 without creating T3Client
Hi Folks,
In Weblogic Server 5.1, I get the weblogic.system.name using the following code:
T3ServicesDef t3services = T3Services.getT3Services();
String systemName t3services.config().getProperty("weblogic.system.name");
What is the counterpart for Weblogic Server 6.1?
Thanks in advance for your help.
BillThe class doesn't seem to be documented in the normal documentation, but
you can get an overview of the methods by executing
javap weblogic.management.Admin
with weblogic.jar in your classpath.
Hope that helps,
Nils
Bill Lam wrote:
>
Jim,
Can you tell me where I can find documentation for
weblogic.management.Admin?
Thank you.
Bill
"Bill Lam" <[email protected]> wrote:
Jim,
Thanks. I appreciate your help.
Bill
Jim Brown <[email protected]> wrote:
Bill:
The weblogic.server.name property in WLS 5.1 has been replaced by the
property weblogic.Name in WLS 6.X. Although it is possible to retrieve
this value by calling System.getProperty(), I would encourage you to
use
the new JMX services which have replaced our proprietary management
interfaces (T3ServicesDef, et. al.). For example, you could write aJMX
client to read the various properties of ServerMBean. To get started,
here is the link to our WebLogic JMX documentation:
Programming WebLogic JMX Services
<http://e-docs.bea.com/wls/docs61/jmx/index.html>
Please post any follow-up questions about JMX to the
weblogic.developer.interest.management.general_and_jmx newsgroup.
Besides writing a JMX client, you can also take advantage of the
following short-cut for retrieving the server name. The remaining code
for this example can be found in your WebLogic Server samples directory
under: ./wlserver6.1/samples/examples/cluster/rmi/HelloClusterImpl.java
private String getLocation(){
String toReturn = null;
try{
toReturn = weblogic.management.Admin.getServerName();
}catch(Exception e){
System.out.println("HelloClusterImpl failed getLocation");
e.printStackTrace();
if(toReturn==null){
return "";
}else{
return toReturn;
Regards,
Jim Brown
Bill Lam wrote:
Hi Folks,
In Weblogic Server 5.1, I get the weblogic.system.name using the followingcode:
T3ServicesDef t3services = T3Services.getT3Services();
String systemName t3services.config().getProperty("weblogic.system.name");
What is the counterpart for Weblogic Server 6.1?
Thanks in advance for your help.
Bill--
Jim Brown
Developer Relations Engineer
BEA Support
============================
[email protected] -
How do I set System properties within WL6.0?
I am setting WL6.0 up to have a startup class, but this class needs to
read system properties which have not yet been set. How do I set these
up within weblogic? I was able to get the startup class set up, but it
needs these system properties to continue.
gmoCorrect on all points. The one advantage of doing this in java is that you can more easily do more
complex things like accessing configuration information from a remote data store (like a database).
Dimitri Rakitine wrote:
These are not needed if you simply replace java ...lots of options... weblogic.Server with
java ...lots of options... startmyWLS in the script which starts WebLogic, but, on the other
hand, this solution is no different from simply adding -DmyProperty=myValue to the startup script
(I think that the ultimate goal is the ability to deploy(and redeploy!) components,
without any mods to the particular vendor's startup scripts of anything of that nature).
Kumar Allamraju <[email protected]> wrote:
Thanks to robert for a quick workaround..
I tried to start the WLS with the following piece of code and actually i need to set
some additional properties
for successful server startup.
Here it is
import java.util.Properties;
public class startmyWLS
public static void main(String[] args)
Properties props = System.getProperties();
props.put("myProperty", "myValue");
props.put("bea.home", "E:\\bea");
props.put("weblogic.Domain", "mydomain");
props.put("weblogic.Name", "myserver");
props.put("java.security.policy",
"E:\\bea\\wlserver6.0\\lib\\weblogic.policy");
System.setProperties(props);
weblogic.Server.main(args);
Make sure you run this from E:\bea\wlserver6.0., as it tries to read config.xml
config\[your-domain-name] from this
directory.
Kumar
Robert Patrick wrote:
import java.util.Properties;
public class StartMyWebLogicServer
public static void main(String[] args)
Properties props = System.getProperties();
props.put("myProperty", "myValue")
System.setProperties(props);
weblogic.Server.main(args);
gmo wrote:
That won't work since it has to be 'outside' of the code. It's a service, and
services are started when weblogic is started up, not when I call a bean.
And it has to be dynamic, since the properties will vary on evry installation.
Robert Patrick wrote:
You can also use System.setProperty() or a combination of
System.getProperties() followed by a System.setProperties()...
gmo wrote:
They are not normal system properties. I'm using some open source code, and
it requires settings to be system properties, but they are specific to the
application, which means that they are not already in the system
properties. I know how to get them, and after some more research, you can
set them on the command line when starting up weblogic. However, is this
the best way to set system properties?
Robert Patrick wrote:
What "system properties" are you trying to find?
gmo wrote:
I am setting WL6.0 up to have a startup class, but this class needs to
read system properties which have not yet been set. How do I set these
up within weblogic? I was able to get the startup class set up, but it
needs these system properties to continue.
gmo
Dimitri -
How to dynamically refresh system properties when changed
Hi All,
Through weblogic startup class I'm loading the properties from a properties file
into system properties, Now my requirement is to refresh those system properties
when ever I make changes to the properties.
Is there any way to achieve this functionality through MBeans.Hello Lucky,
I believe you cannot refresh properties file dynamically using MBeans. What
you can do is write an MBean which necessrily mirror your property file and
register with MBeanServer. You can set values on the MBean dynamically but
in order to persist your changes you need to write your own persistance
mechanism.
Cheers
Ali
"Lucky" <[email protected]> wrote in message
news:3f84d68f$[email protected]..
>
Hi All,
Through weblogic startup class I'm loading the properties from aproperties file
into system properties, Now my requirement is to refresh those systemproperties
when ever I make changes to the properties.
Is there any way to achieve this functionality through MBeans. -
Setting System properties and classpath at boot
Hi all,
I'm pretty new to weblogic and I'd need to set some system properties and classpath definitions for my servers at boot. Can I set them via the Administration console or just adding them to the startWeblogic/startManagedWeblogic using the standard -cp and -D flags ?
I've found in the Console, there's the Server Boot properties. However adding them there didn't work. Correct me if I'm wrong, this option can be used ONLY when starting the servers from the Node Manager ?
Thanks
FrankHi Frank,
You are right!!!!
But you can set them with in setDomainEnv file under java_option.
Please set under
Unix
JAVA_OPTION = "${JAVA_OPTION} -DXXXXX"
In Windows
set JAVA_OPTION = %JAVA_OPTION% -DXXXXX
Hope this will help you.
Regards,
Kal
Maybe you are looking for
-
N76 SMS center configuration corruption/deadlock
Recently got N76 for my girl friend, for some reason SMSC was not discovered by the phone, she did enter incorrect one. Later, I have created new (additional) SMS center via "Messaging > Options > Settings >Text message", everything was ok, I was abl
-
Permanent vertical blue line on screen
The line appears on the left had side of my Thinkpad Yoga, which was purchased about two months ago. I saw some similar posts here. So this is likely LCD panel issue and have to send back for repair?
-
On boot (and subsequently), I get spammed by the following message: [ 344.724568] [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid, remainder is 128 [ 344.724570] Raw EDID: [ 344.724571] ff ff ff ff ff ff ff ff ff ff ff ff ff f
-
Re-installed Tiger hAving problems
I upgraded from Panther 6 weeks ago. No problems. All of a sudden in the past two weeks things started to go wrong. 1)Pinwheel of death froze _omputer, for_ing manual shutdown. 2) I-ons stopped working, everything stopped working, click on anything a
-
Downloading cloud and it says error code 202, what is that, and how do i fix it?
I have purchased an account for photoshop and i have downloaded it on 1 computer so far, and i tried downloading it again on another computer, on the same account, I am currently on the computer having the error (202) and the original computer i down