Get Domain directory path in weblogic server 10gR3

Hi all,
Does anyone know how to get the directory path of to a domin in WLS 10gR3 using JMX?
Basically, I am trying to create a timer in WLI manually using Java code but for that to work, I
need to know the domain directory path as below.
BTW, I know it can be created in WLST with ease... but I want to try using Java code
import com.bea.wli.mbconnector.timer.TimerConnGenerator;
public class WLITimerTest {
public static void main(String args[]) {
String domainDir = <path of domain>; // e.g. C:\bea103\user_projects\domains\mydomain
String domainDir = "C:/bea103/user_projects/domains/esis_domain";
try {
TimerConnGenerator.main(new String[] {"-inName", "timerName", "-outfile",
domainDir +"/WLITimerEG_" + "timerName" + ".jar"});
          } catch (Exception e) {
               e.printStackTrace();
Thanks
Sam

Just to answer my own question. It's System.getenv('DOMAIN_HOME') where DOMAIN_HOME is set in setDomainEnv.cmd of your domain.

Similar Messages

  • How to get the absolute path of logicalhost server domain on Windows Sun

    i am reading a file from Xsql Folder, that is located in the logicalhost Sun\AppServer\domains\domain1\applications\j2ee-apps.(IN Sun Application Server)
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    i tried with System.getProperty("com.sun.aas.instanceRoot").
    but i am able to retrive Sun\AppServer\domains\domain1 upto this .i am unable to retrive Sun\AppServer\domains\domain1\applications\j2ee-apps.
    please suggest me how u can get absolute path in sun application server

    Take a look here

  • How to get the absolute path of logicalhost server domain on Windows?

    My logicalhost server domain behaves strangely. I am reading a file from collaboration definiton, that is located in the logicalhost/is/domains/domain1/config folder. I thought, that this folder is used as an application root folder so I can read files like ./file from there. And it worked.
    But then I've installed the domain as a Windows service, restarted the PC. When the domain1 gets started, I get exceptions saying that the file can't be found. Then I restart the domain (in domainmgr.bat) and it works again.
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    And my second question is: Why does this happen?

    The default folder for a Windows Service is the system32 folder contrary to the instance root folder when starting it as a normal process.
    That's the why, haven't tried the how, but you should be able to get the value by calling System.getProperty("com.sun.aas.instanceRoot").
    Hope this helps
    Paul

  • Get the directory information of Weblogic installation

    We have a scenario , wherein we have placed an xml in a specific directory in weblogic. For eg : $WLS_HOME/DefaultDomain/config/fmwconfig/mbeans/xyz.xml
    Would like to know
    a) whether we can get the value of $WLS_HOME
    b) whether we can get the directory path for a domain (domain directory)
    through WLST.
    Thanks
    Joseph George

    The ServerRuntime MBean has a getCurrentDirectory() method. You can call this from WLST.
    serverRuntime()
    print cmo.getCurrentDirectory()

  • Get concurrent user amount from WebLogic Server 6.1

    Does someone know how to get concurrent user amount from WebLogic Server 6.1
    by writing AP.
    thank for your help!

    If each user in your system corresponds to an active session,
    you can get a count of all the active session MBeans and that
    will be your user count. I have used code like this:
    import javax.management.*;
    import weblogic.management.*;
    import weblogic.management.runtime.*;
    try {
    //-- Get the domain's Admin MBean Home so we can ask it questions
    weblogic.management.MBeanHome mbh =
    weblogic.management.Helper.getAdminMBeanHome("system", "<password>",
    "t3://localhost:7001");
    //-- Get JUST the session runtime mbeans (one per active session)
    Set sessionMBeans = mbh.getMBeansByType( "ServletSessionRuntime" ) ;
    System.out.println( "Number ServletSessionRuntime MBeans: " +
    sessionMBeans.size() );
    } catch( Exception e ) {
    System.out.println( "Exception: " + e);
    e.printStackTrace();
    Hope this helps!
    --matt
    "Esse" <[email protected]> wrote in message
    news:[email protected]..
    Does someone know how to get concurrent user amount from WebLogic Server6.1
    by writing AP.
    thank for your help!

  • Domain directory path different than unc path??

    GroupWise 8 new secondary on Linux
    things "looked right, but couldn't connect
    Checked "Display Object" in C-1 on the domain object and I see that the Domain directory path is wrong - it is not what the UNC path is.
    Where do I change it?? or do I need to copy the files from the "real" domain directory to the wrong one and change the unc path?
    This is a new empty secondary domain.
    Also the "Display Object" listing shows Unsafe = 3
    anything I need to worry about there?

    Originally Posted by dzanre
    kjhurni wrote:
    > Only because if the GWIA is down, it'll alert nobody (haha) because well,
    > the GWIA is down.
    Oh - but you don't want to use your GWIA for alerts. Monitor has its own
    SMTP mailer, so unless you HAVE to go through a relay host, monitor can
    alert you regardless of whether the system is down. I send my alerts to the
    smtp address of my phone.
    Danita
    Novell Knowledge Partner
    Moving GroupWise to Linux?
    Moving GroupWise
    Even better! Yes, we can send to the relay host and let it go wherever.
    I was just thinking that let's say a regional POA/MTA is having problems, that the delivery address for the notification should be an " internal" GW account.
    Obviously though, if the GWIA is having an issue we'd not know about it because it would try to deliver to the internal GW address and that has to go through the GWIA.
    Although with diff. groups I will see if I can put the GWIA/MTA into a special group that gets notified to like the blackberry or something (like a text message).

  • Oracle WebLogic Server 10gR3 Installation Query

    I have Windows 7 (64-bit OS) & i'd like to install Oracle WebLogic Server 10gR3 (i know it's not the newest).
    Would you please provide me with a link for downloading the suitable Weblogic Server package & net installer?

    Hi
    Yes, you should download Weblogic Server 10.3.3 Generic Installer which is like a .JAR file (sometimes .zip but rename as .jar file). In the below link, for weblogic server 10.3.3 row, on right side, click on + icon (See All Files). There in the last column you will see 64 bit installer (wls1033_generic.jar).
    http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html
    Just refer online docs for 64 bit installation. Make sure that first you download 64 bit jdk (Sun or JRockit). Set this in PATH. When you run java -version, it should refer this 64 bit jdk. Then run command like java -d64 -jar wls1033_generic.jar (if -d64 do not work, try -D64). Basically generic installer for 64 bit will not have any JDK built in. You have to download it first and then use it for installing weblogic.
    Thanks
    Ravi Jegga

  • Unable to get a connection to the WebLogic server

     

    After reinstalling WLS and SP it still didn't work, however, after a 3rd
    reinstall in
    the DEFAULT directory of c:\weblogic, it finally worked! It would NOT work
    from c:\tools\weblogic. Who knows, maybe i didn't update a magic variable
    somewhere.
    -b
    "Bob Banks" <[email protected]> wrote in message
    news:397e0db2$[email protected]..
    Pablo, how did you fix your problem? Same thing happening here on Win2000,
    WLS5.1 SP4.
    Thx,
    -Bob
    "Pablo Corinkha" <[email protected]> wrote in message
    news:[email protected]..
    Trying to use the statelessSession EJB example. When attempting to run
    the client, I get the following message:
    Beginning statelessSession.Client...
    We were unable to get a connection to the WebLogic server at
    t3://localhost:7001
    Please make sure that the server is running.
    The WebLogic server is definitely running, though. I am able to access
    it using port 7001 from a browser. What could be wrong?

  • StatelessSession Example: We were unable to get a connection to the WebLogic server at t3://localhost:7001

    I have seen other related posts on this site but really no answers, the users seem to be left hanging.
    Anyway, I am trying to run the statelessSession example, with the WebLogic server running and listening
    on port 7001 on the current machine (i.e. localhost).
    Here is what I am seeing:
    c:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
    Beginning statelessSession.Client...
    We were unable to get a connection to the WebLogic server at t3://localhost:7001
    Please make sure that the server is running.
    System Configuration:
    Win2000, WebLogic 5.1, WL Sp2, Java 1.2.2, weblogic home==> c:\weblogic
    I have attached the weblogic.log.
    Regards,
    John

    Hello John,
    When I first install "weblogic", I am successfully able to run the examples, but after some time which I completely forget how I make them run, I install it again and encounter the same problem as you.
    After spending nearly a whole day on restarting computer, viewing ports etc. :) :(, I remember that I make weblogic run from the command line. First, in a console run setenv and startWebLogic tools which are located under weblogic directory and in an another console run setenv again(for possible errors, I want to be sure that it is correct again) and run your client as explained in the tutorials html pages.
    As seen, in computer science, simple things, not hard things, always cause you to lose time :)))
    Best regards
    Banu
    "John Pda" <[email protected]> wrote:
    >
    I have seen other related posts on this site but really no answers, the users seem to be left hanging.
    Anyway, I am trying to run the statelessSession example, with the WebLogic server running and listening
    on port 7001 on the current machine (i.e. localhost).
    Here is what I am seeing:
    c:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
    Beginning statelessSession.Client...
    We were unable to get a connection to the WebLogic server at t3://localhost:7001
    Please make sure that the server is running.
    System Configuration:
    Win2000, WebLogic 5.1, WL Sp2, Java 1.2.2, weblogic home==> c:\weblogic
    I have attached the weblogic.log.
    Regards,
    John

  • Start multiple domains simultaneously on 1 Weblogic server installation?

    Is it okay to start and run multiple domains simultaneously. Better yet, when having multiple domains on 1 WLS server, should each domain have a different port number in order to be run simultaneously?
    Here's my scenario - I installed Oracle Business Intellgence, which by default installs and configures WLS server for certain Business Intelligence applications (BI Publisher). This instance was running fine and good and still is.
    Then I had another application, Oracle Data Integrator, which has a Console piece that requires a domain on WLS. So instead of modifying the existing domain for Oracle Business Intelligence, I created a new domain via the Configuration Wizard and selected those components for Oracle Data Integrator.
    therefore current domains:
    ...\domains\bifoundation_domain --> installed automatically as part of Oracle Business Intelligence
    ...\domains\odi11g --> I created this domain after I
    Now I have 2 domains under 1 WLS Server (windows 7 64bit), but if I startWeblogic.cmd for the bifoundation_domain, and I startWeblogic.cmd for the odi11g...then only the components for the bifoundation_domain become available via the WLS Console.
    Questions:
    - Can I run both domains simultaneously?
    - Should I have modified the bifoundation_domain to include Oracle Data Integrator component; therefore only having 1 domain but having everything run under that domain?
    - Does the Port for each domain matter? both bifounddation_domain and odi11g domain use ports 7001
    Are there any other considerations? Thanks much.

    Hi,
    It is perfectly OK to run multiple domains on a single Weblogic server installation. Only constraint would be you have enough capacity available on your server to start multiple instances.
    Things to note is, if your domain1 is running on listen address : port { localhost : 7001 } then your other domain should be configured on a different port say {localhost : 8001 }. If you want both domain to run on same port then go for virtual IP's to be plumbed on your physical network interface and configure as,
    domain1 - { ip1 : 7001 }
    domain2 - { ip2 : 7001 }
    this way you will can access both domain admin console on same port.
    Remember, Weblogic resources cannot be shared between domain, however a single nodemanager will be enough to monitor both the domains.
    * rank it if answer is helpful :) *
    Thanks,
    Ranjan

  • How can i get all the users from weblogic server?

    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

    BTW, i use weblogic platform 8.1
    "Daniel" <[email protected]> дÈëÓʼþ
    news:[email protected]..
    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

  • Installation of AIA FP 2.2.1 on Weblogic Server 10gR3

    Is it possible to install AIA FP 2.2.1 on Weblogic Server 10gR3?
    As we would be working with OSB 10gR3 which is on Weblogic Server 10gR3
    but SOA Suite 10.1.3.3 for third party (Weblogic) works on Weblogic Server 9.2
    So how do we install SOA Suite 10.1.3.3 on Weblogic Server 10gR3 ?
    Please help as soon as possible.
    Thanks
    Joyjit

    to install SOA Suite 10.1.3.3 on Weblogic Server 10gR3 it's actually impossible,
    you have to wait the next release 10.1.3.5
    or you can use SOA suite 10.1.3.4 on (OC4J or Wls 9.2) with OSB 10Gr3.
    there is new a white paper which explain how to use AIA 2.3 with OSB 10gR3. Look at http://www.oracle.com/applications/aia-foundation-pack-on-service-bus-white-paper.pdf
    regards

  • How to get folder(directory path only not file path) from local file system

    Hi Firends,
    How to get folder(directory path only not file path) from local file system , whenevr i will click on browse button.
    Please give reply for this one , if anybody knows.
    Thanks,
    Anderson.

    Hi Anderson,
    if you're using flash.filesystem.FileReference - then it is run in black box - except of filename, size and creation data (and few other properties available after some operation succeeded). This is part of security features in Flash runtime (described in header section):
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html
    This for example implies that user can download a content to local machine - but that content cannot be loaded back into Flash runtime. For this you would need either Air runtime flash.filesystem.File:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml
    (so you would created Air runtime based application: desktop or mobile but not web, even as standalone project) or you would need one of 3rd party tools that add file access/file information features to standard Flash runtime applications converted to standalone native applications.
    hth,
    kind regards,
    Peter

  • How can I mapping directory by using Weblogic Server?

    Hi,
    We used to use iPlant as the web server. How can mapping directory using Weblogic
    server?
    $PATH=$wl_home/config/epdm/applications/DefaultWebApp/WEB-INF/classes
    such as to map the following:
    From To
    /rok/servlet $PATH/servlet-dev/WEB-INF/classes
    /rok/imagest $PATH/servlet-dev/images
    /rok/html $PATH/servlet-dev/htm
    /servlet $PATH/servlet-dev/servlet
    Thanks!
    Hanqing

    Use JMX. See http://dima.dhs.org.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Nicole" <[email protected]> wrote in message
    news:3c4d6daa$[email protected]..
    >
    Hi all,
    in my EJBs I want to know, on which server instance I´m running. I needthis for
    logging info. How can I get the servers name?
    When I load the JNDI tree and select java:comp, an error occurs and a lotof information
    is printed. One is weblogic.Server and that is what I´m searching for.
    I use WLS 6.1 SP1
    Any ideas? Thanks,
    Nicole

  • Domain directory path for Monitor Agent on Linux?

    If I'm installing Monitor (agent) on an OES2 Linux server, I am prompted for the path to a domain directory
    But this server is not going to have any domains on it.
    the docs are poor at best on this section (other than to follow the prompts)
    I am assuming (since there's a "file browser" button) that if there's no domain on this server, that I cannot use a UNC path and must use a mount point to a server that has a domain?
    And if the other server is on NSS, I will need ncpmount?

    Originally Posted by dzanre
    kjhurni wrote:
    > Only because if the GWIA is down, it'll alert nobody (haha) because well,
    > the GWIA is down.
    Oh - but you don't want to use your GWIA for alerts. Monitor has its own
    SMTP mailer, so unless you HAVE to go through a relay host, monitor can
    alert you regardless of whether the system is down. I send my alerts to the
    smtp address of my phone.
    Danita
    Novell Knowledge Partner
    Moving GroupWise to Linux?
    Moving GroupWise
    Even better! Yes, we can send to the relay host and let it go wherever.
    I was just thinking that let's say a regional POA/MTA is having problems, that the delivery address for the notification should be an " internal" GW account.
    Obviously though, if the GWIA is having an issue we'd not know about it because it would try to deliver to the internal GW address and that has to go through the GWIA.
    Although with diff. groups I will see if I can put the GWIA/MTA into a special group that gets notified to like the blackberry or something (like a text message).

Maybe you are looking for

  • Solution : How to find out if User Entered Something in a String ??

    Hello Everyone, I have a textbox, if user leaves it empty I want to check for that... if I do something like this... IF (textbox = '') THEN -- doesn't work IF (textbox = NULL) THEN -- doesn't work.... What is the way to find this out... Thanks, Harsi

  • Why do I see "Your browser is not supported" on many sites with firefox 15?

    Some sites, like trello.com and many others tell that I seem to use old browser, or that my browser is not supported, and ask me to download Firefox 4 or older. Is it just irresponsible web-developers, who put this sign for any browser except those i

  • Unknown File Format Error while Uploading file through SFP in Note Implemen

    Hello All, I am implementing SAP Note 1528165 - Form 16: Layout changes for financial year 2010-11 which has few PDF forms to be uploaded. While doing the manual steps given in the attachment; I am getting following error. Error occurred when uploadi

  • How do i edit a V21O file in premiere cs3?

    hello. i really need some help! been searching on the net but to no avail. I have been sent a couple of dvds from a company with V210 files on them. they are pretty big vido files, around 6gb i need to edit the files in premiere cs3. i have tried ope

  • Can't rotate CC Drizzle simulation in After Effects

    Hi, I have this problem. I want to rotate a  CC Drizzle simulation to be like if it was hitting the floor in my composition. What I do: 1. Create an Adjustment Layer. 2. Apply Effecs > Simulation > CC Drizzle. 3. Once that the layer is in my composit