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.
Bill

The 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]

Similar Messages

  • When copying one of my old cassettes to a CD how do I get the data - album name, artist, etc. to show up when the CD is inserted into a player?

    When copying one of my old cassettes to a CD how do I get the data - album name, artist, etc. to show up when the CD is inserted into a player?

    To what format file are you saving from Audacity?  Although technically AIFF format can save data tags within the file itself I have not found this to always work with all applications.  Likely the information you enter into Audacity is just being saved in the file name.  When you add this file to iTunes, if iTunes cannot find tags it recognizes it will simply add the track with the file name as the track name.  You need to add the tracks to iTunes, then enter the information using File > Get Info for a track or series of tracks,
    Some of the above information may vary slightly depending upon the file format being used.
    It helps when asking questions here to provide as much information at the onset as possible.  We didn't know until this stage that all these menus were in fact part of Audacity and not iTunes.

  • How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased from the ibook store.

    How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased books from the ibook store. The problem is, once I create a document in Pages and turn it into an ePub to be opened in iBooks, I delete the document in Pages, because I don't need two copies taking up space on my iPad. Before Maverick, iTunes would backup everything in my iBook app on my iPad. If something ever happened to my iPad, all of my created ePubs would be lost and I would be screwed. I suppose I could keep everything on Pages and go to iCloud and download my documents to my Mac, but that is a lot of steps. I may have to do that if there is no other way, but I am hoping someone will have the answer for me. Pretty disappointed in iBooks app for Mac at this point.

    iBooks only syncs purchased books. Others must be synced in iTunes.

  • I have an Ipod touch and when I connect it to my computer using a usb cord it isn't recognized, how can i get the songs that I purchased off of this iPod without syncing?

    I have an Ipod touch and when I connect it to my computer using a usb cord it isn't recognized, how can i get the songs that I purchased off of this iPod without syncing?

    For Windows see http://support.apple.com/kb/TS1538
    For Mac OS X see http://support.apple.com/kb/TS1591

  • How to I get the iPad to recognize a number beginning with 0 without it cutting off the 0

    How do I get the iPad to recognize a number beginning with 0 without dropping the 0.  And how do I get the iPad to recognize a 4 (birth year) or 5 (zip code) digit number with adding a comma delineating it to thousands?

    Hi,
    Because the iPad requires more power than from a normal USB port can supply therefore you can not charge an iPad using ONE USB port on a laptop/PC.  Please try this free utility, many HP users say it works:
       http://event.asus.com/mb/2010/ai_charger/
    Regards, 
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How do I get the full user name acceptable for administration approval?

    I migrated my account from my older macbook pro with the same OSX.
    I initially setup the account with my full username and account name the same as on the old machine - but soon discovered that the Migration Assistant wouldn't allow migration this way (the most obvious scenario).
    So I was instructed by Apple Support to create a new different Administrator Account, then remove the old account and perform the Migration. This seemed to work
    After completing the migration I can now log in with my former full Account Name and password (this account has "allow user to administer Computer set") however I now cannot use the Full Account name to authorize changes - it seems not to recognize the password - however I can authorize changes with the short account name and password.
    How can I configure the system so it will recognize the full account name for authorizations?

    Since you failed to do the migration on first boot, the full system name only applies to the original account you set up. All other accounts use the short username. Although you thought you did it the most obvious way, you didn't. The simplest way to get the new machine to act like the old one is to erase the new one, reinstall the software as described in the user manual, and on first boot DON'T create any user account, but use the setup assistant to migrate everything from the old MB. That will solve all of your issues. Afterwards, reinstall any other software that's on the discs that shipped with the machine, run Software Update to get everything up to date, repair permissions, and restart.

  • I have bought Mac Os X Mauntain Lion Operating System for my mac book pro.I reinstalled my system.Now I cannot download it.It says"This product is not avaible for Turkish App Store".How can I get the Operating System?

    I have bought Mac Os X Mauntain Lion Operating System for my mac book pro some time ago.I then reinstalled my system.The original operating System on my Mac is 10.7 Lion. Now I cannot download Mac Os X Mauntain Lion Operating System.It says"This product is not avaible for Turkish App Store".How can I get this Operating System?

    http://www.apple.com/tr/support/

  • To get the logical system names of all the child systems in a CUA envirnmnt

    Hi Gurus ,
    Is there any table where we can find the logical system names of all the child sytems in a CUA environment .
    This is for a requirement that i need to develop an automated process where we can reset the password of all the child system in a CUA environemt when requested by the user at once .
    I found some tables such as V_TBDLS , but they do not contain the exact information what i need .
    Thanks in advance ,
    Harshit Rungta

    Hi,
    You are in the right track. BD54 will show you the logical system name for all the existed systems in CUA.
    Else you can also go to your CUA system and execute t-code SALE --> Basic Setting --->Logical Systems  ---> Assign logical system to client -
    > Display details
    here you can see logical system names for all the clients assigned to CUA.
    Thanks,
    Deb

  • I have alot of music on my iphone 4 that i cant get on to my itunes account on the computer, when i sync the phone it doesn't transfer the music on to my computer. how can i get the music off my phone and into my itunes without it deleteing all my music?

    i put all my music on my iphone and then when i got my new computer and downloaded itunes, it wont let me transfer the music thats on to my phone.
    How do i get the music thats on my iphone on to my computer without it deleting everything?
    (please dont tell me to sync my phone or back it up as i already have and it hasnt tranfered my music).

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How do I get the WebLogic server to use the XMLRegistry?

    I'm using WebLogic 7.0.2, and I want to use the Apache TransformerFactory and DocumentBuilderFactory
    instead of the default weblogic.* classes. I've found the documentation, where
    I define an XML Registry as follows (snippet from my config.xml)...
    <Server ListenAddress="####" ListenPort="####" Name="myserver"
    NativeIOEnabled="true" ServerVersion="7.0.2.0"
    StdoutEnabled="true" StdoutSeverityLevel="8"
    StuckThreadMaxTime="14400"
    XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="CT XML Registry">
    <COM Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="myserver"/>
    <JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="myserver"/>
    <JTARecoveryService Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <Log FileName="myserver/myserver.log" Name="myserver"/>
    <SSL Enabled="true" HostnameVerificationIgnored="true"
    ListenPort="###" Name="myserver"
    ServerCertificateFileName="democert.pem"
    ServerPrivateKeyAlias="demokey" ServerPrivateKeyPassPhrase="{3DES}gAuVwsR68oAlLdIfO1PAtw=="/>
    <ServerDebug Name="myserver"/>
    <ServerStart Name="myserver"/>
    <WebServer DefaultWebApp="DefaultWebApp"
    LogFileName="myserver/access.log" LoggingEnabled="true" Name="myserver"/>
    </Server>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    Name="CT XML Registry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
    TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
    WhenToCache="cache-on-reference"/>
    I've played aorund with xercesImpl being in and out of classpaths, etc. But no
    matter what I do, calls to TransformerFactory.newInstance creates an instance
    of weblogic.xml.jaxp.RegistrySAXTransformerFactory and DocumentBuilderFactory.newInstance()
    creates an instance of weblogic.xml.jaxp.RegistryDocumentBuilderFactory.
    I don't want to use these classes, and supposedly I can control which classes
    I will use, but it's not working for me. Has anyone been able to get this working?
    Is there anything else that I'm missing?
    Thanks,
    Ed

    I was unable to use the XMLRegistry touse the Xerces2 libraries with WebLogic 7.
    I did find in WebLogic 7 doco that the latest release of Xerces that it would
    internally support was 1.4.4 (http://e-docs.bea.com/wls/docs70/xml/xml_admin.html#1066271).
    If I wanted to use this version of Xerces, I would need to use WebLogic 8. This
    is not an option for me at this stage.
    So, I used this approach. When starting the WebLogic server, you can assign ClassPath
    entries to an environment variable called PRE_CLASSPATH. This will prepend the
    class path used by the App Container's JVM with the values in the variable. I
    added the xercesImpl and xalan jars to this entry.
    Because the WebLogic class loaders will always defer to the parent class loader,
    it will check this class path first. So now I can directly instantiate the apach
    implementation classes (typecasting them back to their API interface definitions)
    and use them within the container.
    "Ed Hillmann" <[email protected]> wrote:
    >
    I'm using WebLogic 7.0.2, and I want to use the Apache TransformerFactory
    and DocumentBuilderFactory
    instead of the default weblogic.* classes. I've found the documentation,
    where
    I define an XML Registry as follows (snippet from my config.xml)...
    <Server ListenAddress="####" ListenPort="####" Name="myserver"
    NativeIOEnabled="true" ServerVersion="7.0.2.0"
    StdoutEnabled="true" StdoutSeverityLevel="8"
    StuckThreadMaxTime="14400"
    XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="CT XML Registry">
    <COM Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="myserver"/>
    <JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="myserver"/>
    <JTARecoveryService Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <Log FileName="myserver/myserver.log" Name="myserver"/>
    <SSL Enabled="true" HostnameVerificationIgnored="true"
    ListenPort="###" Name="myserver"
    ServerCertificateFileName="democert.pem"
    ServerPrivateKeyAlias="demokey" ServerPrivateKeyPassPhrase="{3DES}gAuVwsR68oAlLdIfO1PAtw=="/>
    <ServerDebug Name="myserver"/>
    <ServerStart Name="myserver"/>
    <WebServer DefaultWebApp="DefaultWebApp"
    LogFileName="myserver/access.log" LoggingEnabled="true" Name="myserver"/>
    </Server>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    Name="CT XML Registry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
    TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
    WhenToCache="cache-on-reference"/>
    I've played aorund with xercesImpl being in and out of classpaths, etc.
    But no
    matter what I do, calls to TransformerFactory.newInstance creates an
    instance
    of weblogic.xml.jaxp.RegistrySAXTransformerFactory and DocumentBuilderFactory.newInstance()
    creates an instance of weblogic.xml.jaxp.RegistryDocumentBuilderFactory.
    I don't want to use these classes, and supposedly I can control which
    classes
    I will use, but it's not working for me. Has anyone been able to get
    this working?
    Is there anything else that I'm missing?
    Thanks,
    Ed

  • How do I get the Tab Group names to appear above the Tabs?

    At one point the names of all my Tab Groups appeared above the Tabs. That is, on every page there's a horizontal list of open Tabs. Above that there used to be a similar looking horizontal list of all Tab Groups. Now that horizontal list of Tab Groups is gone.
    This was useful for rearranging and re-categorizing Tabs into different Groups because I could see the whole page for any given Tab, and could move the Tab to a different Tab Group simply by clicking on the Tab and dragging to to any Group in the Tab Groups section above the Tabs section. This was usually easier than rearranging Tabs on the Tab Groups page (accessed by clicking the "Group your tabs" icon at the upper right of the display).
    I don't know how this feature got there or why it went away, but I liked it.
    How can I get this back?

    Tab groups were the primary reason I used Firefox (since the beginning).
    Now that they are gone, so am I !!!!!
    -- However ... good news! ... they are not gone, just a tiny bit more difficult to manage.
    You right click on the tab and select Move To Group. You then create new tab groups within the Tab Group interface. Once you've done that, the familiar Tab Group boxes icon appears in the upper right hand corner of each Group in full display.
    Having done it a few times, I can't even remember now what the original method was precisely. But all the functions are still there -- that's the important thing! And I'm still here on Firefox (at least until the next bone-headed crisis....)

  • How do I get the weblogic port # programmatically?

    I'm writing a class that uses JND to lookup a data source. I don't want to harcode the port number for the provider URL. The code will run in many different environments where the port numbers are different. A configuration file is not pratical. Since the provider URL is always the URL of the weblogic host I'd like to programmatically retrieve the port number that weblogic is listening and use that. Any ideas?

    Hi,
    Yes you can get the port number from your applications web.xml file. Define a new env-entry like one similiar below
    <env-entry>
    <env-entry-name>T3SERVER</env-entry-name>
    <env-entry-value>t3://<<Servername>>:7501</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    and in your source code you can access the above property by obtaining initial context and doing a look up for the property name. A sample code would look like
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    strServerUrl = (String) envCtx.lookup("T3SERVER");
    Hope this helps
    -Jagan
    -Jagan

  • How can I get the View Tab name on the Crystal Report Viewer at runtime?

    When a report is displayed in the Windows Forms Crystal Report Viewer and the user drills into the report, the drill down view is displayed in a seperate view and is identified via a View tab at the top of the report.  I can determine the index of the view tab that is currently selected, but I need to access the text that is on the View tab.  The only properties that I've found that pertain to the "view" on the Crystal Report viewer are the ActiveViewIndex and the ViewCount.  Unfortunately, neither of these items help me because they are not specific to a certain section of the report.  Has anyone had any luck accessing the View Tab properties ?  Thanks.

    The tabs at the top of the page are nested within some of the viewers controls. Through trial and error you just have to find the right one. In this case the main part of the report is in the first control. This happens to be a TabControl. From there you can loop through the TabPages on the TabControl to grab the names of the tabs.
    Here is a quick example of what I did to get the tab text. All this code was in a button click event.
    Control oControl = crystalReportViewer1.Controls[0];
    TabControl oTabControl = (TabControl)oControl.Controls[0];
    foreach (TabPage oTabPage in oTabControl.TabPages)
         MessageBox.Show(oTabPage.Text);

  • How to get the modified bean name in WLS?

    Hi,
    We have a product that persists the beans in an object database.
    I am looking for a way a way for a client to know the name of
    the bean, dynamically(rather than providing it manually), so that
    it can do a query for the bean( in the database).
    Seems, like this name keeps changing from one version to another.
    The dynamic bean names generated in WLS6.1 is not the same as
    those for WLS7.0. And WLS5.1 didn't have this behavior.
    Thanks,
    Gurdev

    Hi,
    Using the Context interface (listBindings()) you can get all bindings under a
    context. One can enumerate through the returned enumeration and go down the tree
    if required.
    S
    "Gurdev Parmar" <[email protected]> wrote:
    >
    Hi,
    We have a product that persists the beans in an object database.
    I am looking for a way a way for a client to know the name of
    the bean, dynamically(rather than providing it manually), so that
    it can do a query for the bean( in the database).
    Seems, like this name keeps changing from one version to another.
    The dynamic bean names generated in WLS6.1 is not the same as
    those for WLS7.0. And WLS5.1 didn't have this behavior.
    Thanks,
    Gurdev

  • How can I downgrade an operating system our bluetooth worked ok on the 4.2.1 system but now we are on the latest system it does not work properly so how can we get the old system back

    how can I downgrade my operating system as my bluetooth work ok with my holde commodore on the 4.2.1 system but now it is upgraded to the latest system it does not operate properley

    thankyou but it looks like we won't be buying another iphone

Maybe you are looking for

  • How can I get old Backups from iCloud?

    I used to have two devices with the same iCloud account. One of the devices broke, and it was reseted to the original, so I lost all my notes. Then the notes on the iCloud backup disappeared too. How can I get them back? I used to have really importa

  • Vendor In Pricing

    Hi, I am using a vendor as a Broker at header level of sales order. This vendor i want to be used in pricing table so that proper brokerage can be paid too him. right now i am using standard condition table 363 (plant, vendor material). but system is

  • Problem due to Ironport Data Security feature

    We are using S160 (version 6.0.1-006) in forward mode and as soon as we enable Ironport Data Security feature the WSA stops responding after some time for few minutes and then starts processing http requests. This happens after every 5-10 mins. and u

  • Hide or delete row based on it's value?

    If I have a column called "Name" and I want to delete or hide all the rows which include the name "smith" or alternatively all the rows with "Miss" how do I do this? I know I can manually search to find the name "smith" but I have 60,000+ rows in my

  • Replacement Box Delivery Chaos.....

    I'm really just venting frustration here, but here goes. My vision box was broken by the recent firmware upgrade, and they offered to replace it. Whilst booking the engineer visit (not delivery, as they want to verify it's actually broken!), they sai