Environment Variables of Application Server

Hi,
I would like to know whether we have any option to get the environment variables of Application server. Just like how we can get the environment variables of Presentation server using the Method ENVIRONMENT_GET_VARIABLE of class CL_GUI_FRONTEND_SERVICES.
Thanks
Sarves S V K

Resolved by self.
Answer:
I found the function module SXPG_CALL_SYSTEM which will help me in my case.
Provide 'ENV' in the command and we will get all the Environment variables of Application Server.
Thanks.

Similar Messages

  • Passing environment variables to managed server during nmStart

    I'm trying to script automated start with WLST using node managers but noticed that we're having some applications depending on some environment variables being set during startup.
    How can I pass these from the node manager? Is it possible?
    I'm trying to keep the number of nodemanagers to a minimum, otherwise I just could have just used a second one with these variables defined.
    Edit: Could I just use os.environ perhaps for this?
    Edit2: Say I wan't to use the admin console to restart said managed servers, is it possible to set these variables when starting from the adminconsole through the node manager?
    Edited by: user13100625 on Aug 23, 2011 11:23 AM
    Edited by: user13100625 on Aug 23, 2011 12:04 PM

    os.environ did not work because the nodemanager forks a new process inherited on it self... seems like I need a second nodemanager...

  • Setting environment variable Forms 10.1.2.0.2 (10g)

    Hi,
    We are migrating forms from 6i to 10g(10.1.2.0.2). We want to run reports in batch form Forms 10g and setting these environment variable.
    Please let me know correct path for these variables in Application Server.
    FORMS_PATH=
    FORMS_OUTPUT=
    FORMS_MAPPING=
    FORMS_REPFORMAT=
    REPORTS_NO_DUMMY_PRINTER=
    DOC=
    DEMO60=
    GRAPHICS60_PATH=
    UI_ICON=
    REPORTS_PATH=
    ## setting for Project Builder
    ORACLE_AUTOREG=
    Thanks in advance
    Sandhya

    Thanks for response. I have set forms_path and reports_path already. I need information about rest of the variables.
    Could you please tell me document or link where I can find detail about these variables. Actually these variables were used in forms reports 6i
    and we are trying to keep what client has in 6i in 10g.
    Thanks
    Sandy

  • Library paths and environment variables

    Hello,
    I am using 10g AS 9.0.4 on a Unix system.
    I am trying to convert an old JSP web application to work with 10g. It is not an EAR/WAR file so I am manually trying to set it up under the "default-web-app" folder. It uses a number of java class files which currently reside in $J2EE_HOME/default-web-app/WEB-INF/classes/mystuff.
    These class files require access to a number of libraries. I foolishly believed that they would be accessible if I were to place them in the $J2EE_HOME/default-web-app/WEB-INF/lib folder, but that did not work.
    I read that OC4J uses a "catch all" lib directory at $J2EE_HOME/applib. I copied the library files there and they still did not work.
    Frustrated, I tried to print out the environment variables for the server - only to find that this function is not supported.
    I managed to print out the library path by creating a Java class files which returns the following as a string:
    System.getProperty("java.library.path");
    This (when called from a JSP) prints a number of different library paths, none of which match those found listed in the $J2EE_HOME/config/application.xml file. I placed the library files in one of the paths listed by the "java.library.path" and it worked!
    3 questions:
    1. How do you print the server's environment variables using a JSP? This strikes me as a very useful function for sorting out library and path issues. Do a search on Google for "print environment variables OC4J" or something similar and there are no useful pages suggesting how this can be done.
    2. Why are the default library paths different on the server than to those specified in application.xml?
    3. How do I change the LD_LIBRARY_PATH (or any environment variable for that matter)? I have tried adding the following line to $ORACLE_HOME/Apache/Jserv/etc/jserv.properties without success:
    wrapper.env=LD_LIBRARY_PATH=/my/custom/library/path
    Any help you can offer would be most appreciated.

    >
    Thanks very much for a such a comprehensive response
    - it has helped answer a lot of questions, especially
    being able to print out the system properties. That
    will be really useful!
    No worries at all Rob.
    The main hurdle is that the libraries are indeed
    native (*.so) libraries. I hadn't considered that
    until you pointed it out in your message. Can I
    assume, then, that $J2EE_HOME/applib and
    $J2EE_HOME/default-web-app/WEB-INF/lib are only
    designed to handle Java's .JAR librares? That would
    explain why placing the native libraries in there
    didn't work, but is there a way of getting such
    native libraries recognised and bundled up in a
    WAR/EAR file?
    Yep, that's it.
    Our proprietary applib and the servlet specs web-inf/lib are only dealing with Java archives.
    The J2EE specs don't cover how to deal with native libs like this.
    Now I've NEVER EVER tried it, but it's worth a shot of at least trying -- for simplified packaging purposes, what you may be able to do is to distribute the .so's within the web-inf/lib -- and then just set that directory (where's its realized on the server after the app is deployed) to be referenced witihn the LD_LIBRARY_PATH. I'd expect our deployment manager will just ignore files it doesn't know about, so arguably you should be able to at least distribute them with the standard archive.
    You'll need to specifically set the LD_LIBRARY_PATH as a separate task outside of the deployment operation though.
    >
    This is where things get a bit weird, and is partly
    my fault during the installation of 10g AS.
    We already had an existing installation of Oracle 10g
    Database (10.1.0) at $ORACLE_HOME under the user
    "oracle". I logged in as the user "oracle" to install
    the Application Server into a different location (In
    this case, "$ORACLE_HOME/../ias10g_9.0.4" - let's
    call this $IAS_HOME). So there is no separate user
    account for Oracle Database and Application Server
    (and hence no separate $LD_LIBRARY_PATH).
    If I log into UNIX as the user "oracle" and echo the
    LD_LIBRARY_PATH, I get the following directories:
    $ORACLE_HOME/lib
    /usr/openv/netbackup/bin
    /usr/dt/lib
    /usr/lib
    I use this user to do "opmnctl stopall" and "opmnctl
    startall". If I then print out the library path from
    a JSP using
    "System.getProperty("java.library.path");", I get the
    following paths:
    $IAS_HOME/jdk/jre/lib/sparc/server
    $IAS_HOME/jdk/jre/lib/sparc
    $IAS_HOME/jdk/jre/../lib/sparc
    $IAS_HOME/opmn/lib
    $IAS_HOME/lib
    $IAS_HOME/usr/lib
    Which is totally different to those listed by
    $LD_LIBRARY_PATH at the command line, which means
    they must be coming from somewhere else.
    It gets worse - my application is trying to call a
    native library that is only present in the
    $ORACLE_HOME/lib32 directory (libclntsh.so.10.1), so
    unless I can include this path in the
    "java.library.path" on the Applicaiton Server, then
    my program will not work.
    So, how do I change the "java.library.path" when the
    values aren't coming from $LD_LIBRARY_PATH in the
    first place?
    The utility $IAS_HOME/opmn/bin/opmnctl is actually a shell script.
    It has this section which sets the LD_LIBRARY_PATH:
    if [ -z "$LD_LIBRARY_PATH" ]
    then
    LD_LIBRARY_PATH=$ORACLE_HOME/opmn/lib:$ORACLE_HOME/lib ; export LD_LIBRARY_PATH
    else LD_LIBRARY_PATH=$ORACLE_HOME/opmn/lib:$ORACLE_HOME/lib:${LD_LIBRARY_PATH} ; export LD_LIBRARY_PATH
    fi
    So if you have an existing LD_LIBRARY_PATH env var set, it should just be putting its paths onto the front of it.
    What you could try as a quick test is to edit the opmnctl script (after taking a backup of course) and either appending the path you need to it, or just add some debug statements to output the LD_LIBRARY_PATH value it ends up setting so you can try and work out what's causing it.
    I expect these other entries:
    $IAS_HOME/jdk/jre/lib/sparc/server
    $IAS_HOME/jdk/jre/lib/sparc
    $IAS_HOME/jdk/jre/../lib/sparc
    are coming from the JRE when it is launched, in probably a similar manner to our opmn entries.
    I really appreciate your help, and I bet if anyone
    can answer these questions, you can! ;-)
    You're very welcome.
    cheers
    -steve-

  • Setting environment variables oracle forms 10g(10.1.2.0.2)

    Hi,
    We are migrating forms from 6i to 10g(10.1.2.0.2). We want to run reports in batch form Forms 10g and setting these environment variable(same as they are set in 6i).Please let me know correct path for these variables in Application Server.
    FORMS_OUTPUT=
    FORMS_MAPPING=
    FORMS_REPFORMAT=
    REPORTS_NO_DUMMY_PRINTER=
    DOC=
    DEMO60=
    GRAPHICS60_PATH=
    UI_ICON=
    ## setting for Project Builder
    ORACLE_AUTOREG=
    Thanks in advance
    Sandhya

    ... and beside of what Jan said, look at the following whitepaper:
    http://www.oracle.com/technology/products/forms/pdf/webicons.pdf
    Note that all directory names and file names that have a "90" in it are now without or have a frm prefix instead.
    Frank

  • Is it possible to reference environment variables in the .properties files?

    Here’s what I’d like to do…
    In the application.properties files, I tell OPA where the docgen server is via this setting:
    # Location of the Document Generation Server
    plugin.docgen.server.url=http://bipDev/document-generation-server/
    Note that this is the setting from my Dev environment.
    Because I have separate DocGen servers for each environment, I have to maintain separate copies of this file for each environment. For example, my Prod file contains this setting:
    # Location of the Document Generation Server
    plugin.docgen.server.url=http://bipPrd/document-generation-server/
    Notice that it’s a very slight changes. I’d like to use something like this instead:
    # Location of the Document Generation Server
    plugin.docgen.server.url=http://%BIP_SERVER%/document-generation-server/
    Obviously, I’d create an environment variable on each server to accommodate the setting. For example, on my Prod machine, I’d create this environment variable:
    BIP_SERVER = bipPrd

    Unfortunately environment variables cannot be used in the OPA .properties files. The only way to do this is to maintain separate properties for your different environments.

  • Environment Variable on WinServer 2008

    Hi 
    I am setting up an Environment Variable in Windows Server 2008 - TEMP that has a value of c:\test.
    If I see the value of this variable from DOS prompt or from within my Application I see
    c:\test\1
    It seems that Windows is appending \1 to it.  
    This setting works fine from Windows 2003 server. 
    thanks..

    Hi,
    I think this is a default behavior. On my Windows Server 2008 R2, I checked user variable path under
    Advanced tab of System Properties dialogue, there is no folder “1” in the variable path, but, when I followed the path in File Explorer, I found the folder “1”. Besides, I created a new user variable and the result
    is the same as yours.
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • Oracle Application Server 10g Cloning

    Hi All,
    Could anyone please advice on How we can create a cloned copy of 10g AS(including infra DB) for DR purpose.Any document or guideline will be highly appreciated.
    Regards,

    Hi,
    </p>
    Please correct me if I am wrong, but I think cloning is fine to copy or clone a middle-tier instance. But for a copy of infrastructure DB one needs to use the chapter next to the referred one.
    </p>
    11 Staging a Test Environment from a Production Environment</p>
    Oracle® Application Server Administrator's Guide <br>
    10g Release 2 (10.1.2) <br>
    B13995-06 <br>
    </p>
    The term cloning is commonly used for copying the systems but in Oracle AS, it is for copying the middle-tier instances only. That difference is often misleading.
    </p>
    hope that helps. <br>
    syed

  • Conversion Agent Environment Variables.

    Hi Experts,
    We are using on Conversion Agent for converting EDI file data into XML.
    Using Parser for this.
    The problem is related to Enviornment Variables to be loaded on XI Server.
    What will be the environment variables for this purpose and what will be the value for the same.
    I have loaded three Environement Variable on XI Server for Conversion Agent,
    1. CLASSPATH  -  C:\Program Files\SAP\ConversionAgent\api\lib\CM_JavaAPI.jar
    2. IFCONTENTMASTER_HOME - C:\Program Files\SAP\ConversionAgent\
    3. Path - C:\Program Files\SAP\ConversionAgent\bin
    Are these entries correct ? Please help.
    When I am using
    To use the remote support interface:
    1. In Microsoft Internet Explorer, version 6.0 or higher, browse to
    http://HOST:PORT/CMViewer
    Selecting Event : View Initialization Events, it is giving me an
    error : Event file not found!
    Selecting Event : View Execution Events, it is not showing any Date in
    Date field and not showing any service in Service Field and Next
    Pushbutton is also disable.
    What is the problem ? Please help.
    Regards,
    Study SAP.

    Yes it shows up after restart of BIDS .
    But during design time this is a bug I hope Microsoft fixes this bug in the future releases
    Mudassar
    It's not really a bug. Visual Studio loads the environment variables when starting up.
    In future releases you use projects and parameters instead of environment variables, so the issue goes away ;)
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • Why did I fail to configure ODBC cartridge of Oracle Application Server 3.0.1 Advance

    Firstly, sorry that I don't know if this question is suit for this forum.
    Now I want to query oracle8 database through ODBC cartridge of OWAS. My software environment is: Oracle Application Server 3.0.1 Advanced Version, Oracle8 Enterprise Edition 8.0.4. They are installed in a winNT server.
    First I installed oracle8 ODBC on this server and configure it successfully(that means I can query Oracle8 through ODBC). Then I configured ODBC cartridge in application server administration. In this process, I don't configure ODBCCartridge specific parameters because I don't known which parameter need to be configured. Last I restart WRB, LISTENER(Admin). I input the URL in Navigator 4.o as the following: Http://tpdcserver.tpdc:8888/odbc/tableprint?database=oracle8&dsn=oracle_data&username=system&password=manager&sql=select+fromALL_USERS
    It displayed no correct page but error information: OWB-02002 Driver Failed.
    I don't know why. Please tell me. Thank you very much!
    null

    I have the same problem!
    How can i resolve?
    Thanks
    Nuno

  • ERROR - No Response from application server

    Hi all,
    i'm hitting this error in my application server, i search and read some posts in this forum regarding the same subject, but, the only answer i got is "shutdown app server and start again"
    It's very important that i understand and correct what is origin of this error , so i decided to create a new post.
    My environment.
    Oracle Application Server 9.0.4 (10g) under windows 2003.
    Several users, from serveral applications reported then got "No Response from application server".
    Here's what i got from logs:
    WebCache (event.log)
    [28/Sep/2007:15:37:07 +0100] [warning 14014] [ecid: 4522403843773,0] Receive request from origin server times out.
    [28/Sep/2007:15:37:07 +0100] [error 11364] [ecid: 4642662928061,0] Network error response is returned.
    [28/Sep/2007:15:37:07 +0100] [error 11364] [ecid: 4522403843773,0] Network error response is returned.
    [28/Sep/2007:15:37:12 +0100] [detail] [ecid: 4333425287762,0] [client: 10.41.6.31] [host: bb-9ias] [url: /cotacoes/acor_cotConsPed.jsp]
    [28/Sep/2007:15:37:12 +0100] [warning 14014] [ecid: 4333425287762,0] Receive request from origin server times out.
    [28/Sep/2007:15:37:12 +0100] [error 11364] [ecid: 4333425287762,0] Network error response is returned.
    [28/Sep/2007:15:37:14 +0100] [detail] [ecid: 4711382411904,0] [client: 10.40.51.10] [host: bb-9ias] [url: /wf_prod/acor_agendaNovasColoc.jsp?jboEvent=Sort&'pFlgDadosPesq=&'pFlgComPesq=&'pFlgEspPesq=&'pFlgGerPesq=&'pFlgTempoPesq=&'pRamoPesq=&'pDataPesq=&'pEscPesq=&'U
      iNome=&'pMediadorNome=&'pEstPesq=&'jboEventVo=AgendaProcVO&'amId=Bc4jModule&'pParamSort=MED_NOME&'pSort=asc]
    [28/Sep/2007:15:37:14 +0100] [warning 14014] [ecid: 4711382411904,0] Receive request from origin server times out.
    [28/Sep/2007:15:37:14 +0100] [error 11364] [ecid: 4711382411904,0] Network error response is returned.
    [28/Sep/2007:15:37:27 +0100] [detail] [ecid: 4402144779094,0] [client: 10.44.1.48] [host: bb-9ias] [url: /wf_prod/acor_editaProc.jsp?proc=61063&'dt=1190990239312&'pFlgDadosPesq=&'pFlgComPesq=&'pFlgEspPesq=&'pFlgGerPesq=&'pFlgTempoPesq=&'pRamoPesq=&'pDataPesq=&'pEscP
      sq=&'UtiNome=&'pMediadorNome=&'pEstPesq=Emissão%20de%20Titulares&'pSort=desc&'pParamSort=PRO_DAT_INICIO&'linha=2]
    [28/Sep/2007:15:37:27 +0100] [warning 14014] [ecid: 4402144779094,0] Receive request from origin server times out.
    [28/Sep/2007:15:37:27 +0100] [detail] [ecid: 4608303209302,0] [client: 10.40.62.8] [host: bb-9ias] [url: /cotacoes/acor_cotRamos.jsp?pTime=1190989207512&'pKey=31094&'jboEvent=Mostra%20Ramo%20L&'ecra=consCot&'PrId=37412&'PedCompanhia=CSA&'PedTipo=C&'SitCodigo=2&'Sit
      escr=Em%20Execução&'PedNumero=&'PedMediador=&'EscDireccao=&'EscZona=&'EscEscritorio=&'PedNome=&'PedDataI=&'PedDataF=&'pRamCodigo=&'pSitCodigo=&'Code=&'pParamSort=null&'pSort=null&'value=null&'RamCodigo=9&'RamDescr=Multi-Riscos%20Comercio%20(MP%20Negócio)]
    [28/Sep/2007:15:37:27 +0100] [warning 14014] [ecid: 4608303209302,0] Receive request from origin server times out.
    [28/Sep/2007:15:37:27 +0100] [error 11364] [ecid: 4608303209302,0] Network error response is returned.
    [28/Sep/2007:15:37:27 +0100] [error 11364] [ecid: 4402144779094,0] Network error response is returned.
    [28/Sep/2007:15:37:45 +0100] [detail] [ecid: 4007007807211,0] [client: 10.40.15.7] [host: bb-9ias] [url: /ConsultaSinistros/DadosSubSin.jsp?nid_claim=351017&'vn_claim=9001151241&'tstamp=1190990264562]
    Apache (error.log)
    [Fri Sep 28 15:37:45 2007] [error] [client 10.42.48.237] [ecid: 4007007807211,1] MOD_OC4J_0080: After calling Apache's ap_bwrite(), got
    an return value: -1 and the client could have aborted in the middle of receiving the chunk data.
    [Fri Sep 28 15:37:45 2007] [error] [client 10.42.48.237] [ecid: 4007007807211,1] MOD_OC4J_0058: Failed to handle response chunk data passed
    in from oc4j via ajp13.
    [Fri Sep 28 15:37:45 2007] [error] [client 10.42.48.237] [ecid: 4007007807211,1] MOD_OC4J_0035: After handling ajp13 response message,
    got an invalid value: -2.
    [Fri Sep 28 15:37:45 2007] [error] [client 10.42.48.237] [ecid: 4007007807211,1] MOD_OC4J_0121: Failed to service request with network
    worker: oc4j_consultasinistros_15 and it is not recoverable.
    [Fri Sep 28 15:37:45 2007] [error] [client 10.42.48.237] [ecid: 4007007807211,1] MOD_OC4J_0013: Failed to call destination: oc4j_consultasinistros's
    service() to service the request.
    [Fri Sep 28 15:37:55 2007] [error] [client 10.42.48.237] [ecid: 9418666609387,1] MOD_OC4J_0080: After calling Apache's ap_bwrite(), got
    an return value: -1 and the client could have aborted in the middle of receiving the chunk data.
    [Fri Sep 28 15:37:55 2007] [error] [client 10.42.48.237] [ecid: 9418666609387,1] MOD_OC4J_0058: Failed to handle response chunk data passed
    in from oc4j via ajp13.
    [Fri Sep 28 15:37:55 2007] [error] [client 10.42.48.237] [ecid: 9418666609387,1] MOD_OC4J_0035: After handling ajp13 response message,
    got an invalid value: -2.
    [Fri Sep 28 15:37:55 2007] [error] [client 10.42.48.237] [ecid: 9418666609387,1] MOD_OC4J_0121: Failed to service request with network
    worker: OC4J_FerrProdutividade_13 and it is not recoverable.
    [Fri Sep 28 15:37:55 2007] [error] [client 10.42.48.237] [ecid: 9418666609387,1] MOD_OC4J_0013: Failed to call destination: OC4J_FerrProdutividade's
    service() to service the request.
    [Fri Sep 28 15:38:34 2007] [error] [client 10.42.48.237] [ecid: 9298407565065,1] MOD_OC4J_0080: After calling Apache's ap_bwrite(), got
    an return value: -1 and the client could have aborted in the middle of receiving the chunk data.
    [Fri Sep 28 15:38:34 2007] [error] [client 10.42.48.237] [ecid: 9298407565065,1] MOD_OC4J_0058: Failed to handle response chunk data passed
    in from oc4j via ajp13.
    [Fri Sep 28 15:38:34 2007] [error] [client 10.42.48.237] [ecid: 9298407565065,1] MOD_OC4J_0035: After handling ajp13 response message,
    got an invalid value: -2.
    [Fri Sep 28 15:38:34 2007] [error] [client 10.42.48.237] [ecid: 9298407565065,1] MOD_OC4J_0121: Failed to service request with network
    worker: OC4J_FerrProdutividade_13 and it is not recoverable.
    [Fri Sep 28 15:38:34 2007] [error] [client 10.42.48.237] [ecid: 9298407565065,1] MOD_OC4J_0013: Failed to call destination: OC4J_FerrProdutividade's
    service() to service the request.
    [Fri Sep 28 15:38:37 2007] [error] [client 10.42.48.237] [ecid: 8954810184060,1] MOD_OC4J_0080: After calling Apache's ap_bwrite(), got
    an return value: -1 and the client could have aborted in the middle of receiving the chunk data.
    [Fri Sep 28 15:38:37 2007] [error] [client 10.42.48.237] [ecid: 8954810184060,1] MOD_OC4J_0058: Failed to handle response chunk data passed
    in from oc4j via ajp13.
    some thoughts ...This error is not happening consistently, it triggers near the end of month ,naturally the amount of requests in the end of month is higher .. am i hitting som e limit ?
    Best Regards
    Rui Madaleno

    Network error response is returned.
    hi all,
    i'm hitting this error in my application server, i search and read some posts in this forum regarding the same subject, but, the only answer i got is "shutdown app server and start again"
    My environment.
    Oracle Application Server 9.0.4 (10g) under solaris 9.
    Several users, from serveral applications reported then got "No Response from application server".
    Here's what i got from logs: LOGS event_log WEBCACHE
    [08/Oct/2008:11:59:37 -0430] [detail] [ecid: 101795743162,0] [client: 172.19.1.120] [host: shcontingencia:7778] [url: /forms90/l90servlet;jsessionid=ac13041fce663ec96491934459ca516f5215b31fb0c.qQvxpQTOokTBnkTxok4UaNaKaxD3lN4RawSLcgSO-xaL-xbzmQnAnwSLak8RnhfzbNqKc2SHc30Ka2bvmRbzp3zD-BbCmQXIr6zInQjImQzv8N8Sc38MbNmLa2b48OX3b4DteyztfAXMplaxn6jAmljGr5XDqQLvpAe_]
    [08/Oct/2008:11:59:37 -0430] [warning 14003] [ecid: 101795743162,0] Error while receiving response from the origin server
    [08/Oct/2008:11:59:37 -0430] [error 11364] [ecid: 101795743162,0] Network error response is returned.
    [08/Oct/2008:12:50:55 -0430] [detail] [ecid: 88913989443,0] [client: 172.19.1.39] [host: shcontingencia:7778] [url: /forms90/l90servlet;jsessionid=ac13041fce67b31f32050664119ba348b92e845aaa4.qQvxpQTOokTBnkTxok4UaNaKaxD3lN4RawSLcgSO-xaL-xbzmQnAnwSLak8RnhfzbNqKc2SHc30Ka2bvmRbzp3zD-BbCmQXIr6zInQjImQzv8N8Sc38MbNmLa2b48OX3b4DteyztfAXMplaxn6jAmljGr5XDqQLvpAe_]

  • How to disable Jar cache on Application Server

    Hello,
    I am now developing a Webdynpro Project in the following enviroment:
    Windows 2003 Server 64Bit SP2
    JDK 5.0 Update 12
    Windows x64 Platform
    info at sun Installation Notes , Supported System Configurations
    C:\Program Files\Java\jdk1.5.0_12
    NetWeaver Composition Environment 7.1 (Application Server Java)
    Since I need always change my code wiin a jar file and upload it as a library.
    The default behavior of Application Server is to support java cache locally in JVM. That brings me many problems  (Like can't find new implemented class by dynamical class loader,  ref. http://www.szegedi.org/articles/remotejars.html )
    It there any way to disable JAVA cache on the Application Server?
    Besides, someone told spawning a new JVM for loading the jar may also work. Does our AS support spawning JVM explicitly?
    Message was edited by:
            Zenghuan Shan

    I also want to know if it is possible to disable the cache on server. In my situation, we are deploying the par file (portlet archive) to development server. Could anybody please help?

  • WebForms - Accessing Environment Variable on a Windows Client

    Hi. We access a Windows Environment Variable using Client-Server Forms 6i. We do this as follows:
    Tool_Env.GetVar('ALLUSERSPROFILE', myPath);
    message(myPath);This returns the value 'c:\documents and settings\all users' on Windows XP.
    This returns the value 'c:\programdata' on Windows 7.
    We'd like to keep similar logic in this form once it's migrated to Web Forms. Is there a way to access this 'allusersprofile' environment variable (or any environment variable to determine whether the user is XP or Win7) from a web form running our UNIX server? Maybe somehow using WebUtil or something?
    Any suggestions would be greatly appreciated. Thanks.

    WebUtil enable your form then do this:
    message (CLIENT_WIN_API_ENVIRONMENT.Get_Environment_string('allusersprofile'));To get the Windows version, do this:
    message(CLIENT_WIN_API_ENVIRONMENT.Get_Windows_Version);.
    Edited by: Michael Ferrante on May 23, 2012 5:06 PM

  • RCP, Environment Variables, OS X, Info.plist and LSEnvironment

    I've got a somewhat challenging problem here.
    I've got an RCP application that relies upon some shared dynamic libraries which might not be in standard locations (as this is OS X and they are user installed).
    One of the things we need to configure is DYLD_LIBRARY_PATH in order for the shared libraries be discovered. The problem here is OS X doesn't have a simple way to set environment variables that applications launched from the Finder can "see".
    One of the thing that I've found, but not had any success with, is to dynamically modify the RCP's Info.plist to have an additional key LSEnvironment whose value is a dictionary to set environment variables only visible to that application - okay this seems ideal for me. But it's not working.
    I also found that I could use launchctl setenv to set a user global Environment variable, however it's not persistent across launches, and each time I set, I must restart the app. I really need this persistent.
    Does anyone have any solution for setting Environment variables that are visible from the RCP app (and it's children) that works in OS X without having to launch the RCP app from a terminal?
    Thanks in advance!

    Brian de Alwis wrote on Wed, 05 August 2015 19:54Sounds like you want to use System.loadLibrary() with absolute paths?
    That doesn't quite work, as we aren't using JNI. Unfortunately the use-case details get pretty complicated - so I omitted in an effort to make it simpler to understand the problem.
    Basically we have built an IDE that uses the Prolog interpreter, XSB. XSB natively connects to MySQL using the shared MySQL libs. Unfortunately on OS X, MySQL can get installed into possibly one of many locations, and it certainly doesn't install it's libs in /usr/local/lib or /usr/lib. We access XSB via a Java library called Interprolog, which I believe, is just a pipe interface to the command line shell - hence when the Interprolog engine object is instantiated, it fires up a shell process for XSB - which needs to locate those MySQL libraries. Hence, DYLD_LIBRARY_PATH needs to be set to have the path for /usr/local/mysql/lib (or wherever the user installed it) defined in the parent process in order for Interprolog's sub-process to pick up the environment variable.
    Right now there are only 2 reliables ways I have found to get this to work.
    1. Launch Terminal, export the environment variable. Then launch our RCP app from the Terminal. - cumbersome and unintuitive; bad user experience.
    2. Launch Terminal, use `launchctl setenv DYLD_LIBRARY_PATH /usr/local/mysql/lib`. And then one can lacuna our RCP app using Finder. - problem is that DYLD_LIBRARY_PATH is now global to the environment and will not persist between reboots.
    I've tried added the LSEnvironment dictionary to the Info.plist within the RCP application, but that just doesn't seem to work - and I'm not sure if that is because the OS X eclipse launcher doesn't propagate the environment forward or what. For the time being I have a way for the user to click a button which runs launchctl setenv and then prompts the user to exit the app, and then launch again from finder [IWorkbench.restart() doesn't work because new process is a child of the current] - which works but is undesirable workflow as it doesn't persist across a login/reboot.
    My next step is to try what is outlined here: http://stackoverflow.com/questions/829749/launch-mac-eclipse-with-environment-variables-set
    However it feels even more sketchy than just modifying the Info.plist to contain the right environment variables.

  • Issues with Indirect xml configuration using environment variable

    My package is not retrieving the the connection strings from the xml file setup through indirect configuration. It is using the connection string directly from the connection manager in the package. Steps below,
    Package-1 has Connection Manager with server : dev, database: Test
    Setup indirect xml configuration : XML file contains the connection string. Environment variable contains the path to the xml.
    Build and deploy on different server (prod).
    Create the same environment variable in prod server.
    Change conenction string in xml file.
    Run the package: package tries to connect to dev instead of prod.
    Change the connection string in the connection manager directly in the package. Build and deploy. Works now - connects to prod as expected.
    For some reason my package is not reading from the xml file.
    Anonymous

    You posted on this issue before and now again, why?
    The "It is using the connection string directly from the connection manager in the package" means the package fails to configure from the conn string in the env. variable.
    You may see it as a warning in the log if you have one enabled.
    The env variable should have the path to the config file, the config file should be parametrized to get the connection to it via the variable, this is the proper scenario.
    Arthur My Blog

Maybe you are looking for

  • How to read Crystal Report file Design version programmatically

    Hi, I am working on a project where I need the read Crystal file header and extract information that which designer was used to create the (Crystal) report. This will help me do some specific task if the version of the crystal used is very old (say o

  • Limit of pictures for slideshow?

    Hi. Is there a limit to how many pictures you can have for a slideshow using Front Row? I just created a slideshow from iPhoto (latest version) with 1200 pictures. Then when I played it it just stopped after so many and the screen went blank. Any sug

  • Print A4 size report in A5 page

    i design a report with A4 size, in basic it print to an A4 size, but i could export it to pdf file and open printer settings and select A5 then it print A4 report in A5 page ( printer scale it automatically). and now my question: how can i change set

  • Capturing navigation event

    Hi Im using webdynpro to create a help application/iview. The help should be page sensitive for example, if i have iview1 and the help iview on a page, the user chooses to navigate to page 2 of iview1 using those navigation buttons of an iview, then

  • Stage and gray area ?

    hi all of sudden my gray area where you can see my stage turn white this is really a pain for me because everytime i use white for my stage i cant see where my stuff is going , how can i turn the gray area which is white right now into gray again btw