JCO3 How to set trace path or catch trace message

In old Jco can setTracePath
but in JCO 3 how can do that ?
I found http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/daea401675752ae10000000a155106/content.htm
JCO trace
directory j2ee/cluster/server* or defined path
how to switch on and off
set JVM options for the server via the Config Tool and restart server: -Djco.trace_level=[0-10],-Djco.trace_path=[defined_path]
any other methods?

Hey Jacky,
Please browse the API of class com.sap.conn.jco.JCo. There is a method call setTrace.
public static void setTrace(int level,  java.lang.String path)
Turns on the JCo trace. Allowed levels are [0 .. 10]. The common used are:
0 - nothing
1 - errors and warnings
2 - execution path, errors and warnings
3 - full execution path, errors and warnings
4 - execution path, info messages, errors and warnings
6 - full execution path, info messages, errors and warnings
7 - debug messages, full execution path, info messages, errors and warnings
8 - verbose debug messages, full execution path, info messages, errors and warnings
As path value null, stdout, stderr or an existing path are allowed. If path is equals null or stdout or stderr JCo will trace out to the standard output (error) stream. If at least one JCoTraceListener is registered, the trace output will be sent to the listener only. To redirect the JCo trace into a file, the path value has to be set to an existing directory.
level - [0 .. 10]
path - null, stdout, stderr or an existing path

Similar Messages

  • How to set the PATH in Terminal?

    As a newbie to Bash and the Terminal, in connection with installing a new version of Ruby and various add-ons, I have been messing around with changing the PATH via various methods I've found on the internet, and trying to add a new directory to my PATH. Unfortunately, I cannot figure out how to set the PATH correctly. Here is what I understand so far:
    1. Bash first looks to ".bash_profile" in the home directory for PATH settings.
    2. If none, Bash then looks to ".bash_login" for PATH settings.
    3. If none, Bash then looks to ".profile".
    4. If none, Bash then looks to a system file in "/etc/profile" for default PATH settings.
    5. For a new shell after login, Bash looks for a ".bashrc" file.
    I cannot find any of the above files (I have Finder set to show hidden files already). Somehow, following some instructions from the internet without really knowing what I was doing over the past week I have set my PATH as follows:
    but I cannot find the file that is setting this PATH. I have tried creating a new ".bash_profile" shell file and putting it in various places such as "/bin" and "/usr/bin" but the file is not being read.
    * As a temporary workaround I tried using the command "source .bash_profile" upon login to set the PATH using the .bash_profile file that I created, but it does not work.
    * I am able to temporarily alter the path using the command "PATH=/usr/local/bin:$PATH" but this only lasts for an active shell; when I close out and reopen a new shell, it reverts to the default.
    So my questions are:
    Is it correct that there is a "/etc/profile" somewhere that is setting the default PATH? If so where is it? Should I alter it, or create a new ".bash_profile" somewhere to set the PATH? If not, where is my PATH being set? If I should create a new ".bash_profile", what exactly should go in it?
    Thanks in advance for any assistance.

    ... I created a new ".bash_profile" file directly under my home directory and it worked like a charm. Below is the content of the file:
    "PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/"
    What are the "..."'s? Is that just you, or is the contents of the file actually inside of double quotes?
    is there an 'export PATH' also in the file? As in
    PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/
    export PATH
    And did you either restart your Terminal session so your .bash_profile was read, or issue a 'source .bash_profile' command to execute the .bash_profile after your change?
    The only remaining problem is that from the home directory, I'm unable to directly run programs in the above-designated subdirectories (without first navigating to the subdirectory containing the file. Is there something wrong with the syntax or order of the directories I put in the path?
    For example: there is a file called "newprogram.rb" in the "Ruby" directory listed above. I should be able to execute it from the home directory using "ruby newprogram.rb" but it does not work. The same command works fine from within the "Ruby" directory.
    Does the 'ruby' command search PATH to find its scripts?
    Have you read the "man ruby" man page to see if it talks about PATH?
    A common Unix feature is that programs and scripts with the executable bit set, and are located in a PATH directory, will be run if you just type their names.
    For example, if the first line of newprogram.rb script starts with
    and if the script is executable
    chmod +x newprogram.rb
    And if it is in a directory in PATH, then just typing
    should run your perl script using /usr/bin/ruby. If you want to use a different version of Ruby, then change the #! line so it point to your version of Ruby. Or if your version of Ruby is found earlier in PATH then the /usr/bin/ruby, you can use
    #!/usr/bin/env ruby
    as your script's first line which will search PATH for 'ruby' and use the first one it finds.
    Message was edited by: BobHarris

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    or simply put ur driver jar file in jre/lib/ext folder
    [Servlet tutorial|http://www.jsptube.com]

  • How to set dynamic path in forwards action

    Hi All,
    i have a requirement to set my path dynamically in forward action
    suppose i have
    @Jpf.Action(forwards = { @Jpf.Forward(name = "success1", path =  "/output1.jsp") })
         public Forward testIpc1() {
              Forward forward = new Forward("success1");
              System.out.println("IN PageflowportletController :: testIpc1() method called");
              return forward;
    Here the path="/output1.jsp" is hardcoded.is there any way to set the path dynamically in forwards action
    @Jpf.Action(forwards = { @Jpf.Forward(name = "success1", path =  dynamic_path) })
    how do i get the dynamic path set in my forwards action.
    Suggestions provided would be really helpful


  • How to set local path for load library

    How do i set local path for native dll as i dont want to set the path in the environment variable.
    can i do like this

    I believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
    Failing that.... maybe you can add -Djava.library.path=
    to your command line to explicitely override the path set ?

  • How to set auto delete option for old messages

    Hi All,
    Can any one help me on how to set auto delete option for mails older than 15 days from my Z10.
    James Kurian

    There is no such option in BB 10.
    However, you can achieve a similar result by setting your email sync timeframe to 14 days (the closest option).
    If you are using an ActiveSync account (such as Hotmail, Outlook.com), go to Settings > Accounts > select the account. Tap advanced at the bottom of the screen. Scroll to the very bottom, tap Sync Timeframe and set to 14 days.
    If you are using an IMAP account (such as Gmail or GMX), you will have to delete, then re-add your account.  The Sync Time frame is only avaialble during setup for these accounts.  When adding, tap advanced at the bottom of the screen and set the Sync Timeframe.
    Hope this helps.

  • How to set a text to a h:message ?

    FacesMessage message = new FacesMessage(bundle.getString("userregistration_uncofirmedpassword"));
    facesContext.addMessage(null, message);
    return null;
    this is ok if i want to add message to h:messages tag but what if i want to set a h:message tag to display something ? i have message4 ( witch is for blablaTextFild) how to set his messege to "error blablaField is somethink"

    no no i want somethink else...
    i want when i have h:messege tag for some InputText in the Code to make check :
    if (password==cpass){
    add to h:messege for inputText1 messege called "error baby" :)

  • How to set up the maximum number of messages on a queue programmatically

    I am using IMQ 3.5 to implement a message layer for one of my projects. I created a "Job Status Queue", which receives job status report from a java application every minute. But I just want to keep the most current status report instead of all the job running history. How can I restrict the maximum number of messages to 1 programmatically?
    Any suggestion or help will be appreciated.
    Xiaoyun Tang

    You can't limit the destination size programmatically, but you can do it administratively and associate a behavior to occur when the limit is reached. In your case it sounds like you want a queue, 1 message deep, and to discard the oldest message when the queue is full. When you create the physical queue on the broker you can specify these attributes (you can also update them on an existing queue). For example:
    imqcmd create dst -t q -n StatusQ -o maxNumMsgs=1 -o limitBehavior=REMOVE_OLDESTFor more information see Chapter 6 of the Message Queue Administration Guide. In particular the "Managing Destinations" section:

  • How to set (class)paths for a Managed server?

    How does one configure the PATH and CLASSPATH and pass definitions (like "-Djava.library.path=c:\p\bea\wlserver6.1\bin")
    to a remotely-started managed server?
    The section in the WLS 6.1 AdminGuide.pdf that talks about configuring a managed
    server's Remote Start tab says on pages 3-9 to 3-10 that, "If you don't specify
    values for these fields and attempt to start the target server from the Administration
    Console, the Node Manager will attempt to start the target server with the values
    for these attributes that were used when starting the Node Manager. The Node Manager
    will be able to start the Managed Server in that case if you specified the required
    values on the command line when starting the Node Manager."
    So it sounds as if I can get the java.library.path definition and CLASSPATH sent
    to the server via the Node Manager startup command.
    Does that work when using the Node Manager as an NT Service? Here is my Win2K
    command file for setting up the Node Manager as an NT Service. Note that I'm trying
    to tell it where to find the Windows native libraries (wlserver6.1\bin for wlntio.dll)
    and the JDBC drivers (C:\SHADOW\jdbc\... and C:\Orant\jdbc\... ) :
    ========== BEGIN installNMNtService.cmd ================ @echo off
    cd C:\p\bea\wlserver6.1\
    rem *** Set Classpath to load Weblogic Classes
    set CLASSPATH=.;C:\p\bea\wlserver6.1\lib\weblogic_sp.jar;C:\p\bea\wlserver6.1\lib\weblogic.jar;C:\SHADOW\JDBC\scjd12.jar;C:\orant\jdbc\lib\classes111.zip
    rem *** Set Command Line for service to execute
    rem *** %JAVA_HOME%\java will automatically be prepended.
    set CMDLINE=" -ms16m -mx16m -classpath \"%CLASSPATH%\" \"-Dbea.home=C:\p\bea\"
    \"-Djava.security.policy==C:\p\bea\wlserver6.1/lib/weblogic.policy\" \"-Dweblogic.nodemanager.weblogicHome=C:\p\bea\wlserver6.1\"
    \"-Dweblogic.nodemanager.reverseDNSenabled=true\" \"-Djava.library.path=c:\p\bea\wlserver6.1\bin\"
    \"-Dweblogic.nodemanager.listenAddress=\" \"-Dweblogic.nodemanager.trustedHosts=./config/nodemanager.hosts\"
    rem *** Install the service
    "C:\p\bea\wlserver6.1\bin\beasvc" -install -svcname:EDANodeManager -javahome:"C:\p\bea\jdk131"
    -execdir:"C:\p\bea\wlserver6.1" -extrapath:"C:\p\bea\wlserver6.1\bin" -cmdline:%CMDLINE%
    ================= END installNMNtService.cmd ==================
    But when I start a server remotely, it can't find the native libraries and it
    can't find the JDBC libraries in the CLASSPATH. Otherwise, it can serve up HTML
    pages at the correct port number so I know it's running.
    When starting a managed server remotely via the WLS 6.1 console, how do I tell
    the managed server where the native libraries and JDBC libraries are?

    The memory setting on the WC_Spaces managed servers can be seen as mentioned below.
    ps -eaf | grep Spaces
    Above command shows something like this at the top of the output:
    /a01/app/oraweb/middle/jrrt-3.1.2-1.6.0/bin/java -jrockit -Xms512m -Xmx1024m -Dweblogic.Name=WC_Spaces1 ...

  • How to set configure path info in 6.0 for developing a app

    For example:
    I install weblogic6.0 in c:\,so the path is c:\bea\
    and my working forlder is d:,I develop a new app named 'test'
    The path info is as follow:(root is d:\test\)
    So,when I look the document in the bea web site,they tell me how to deploy it
    with archive app a .war file.But that only for deploying.How to run it in developing
    Help me,Please!

    Another question regarding the name of the JWS file:
    Found the following on one of WL 10.3 example server's help documentation pages:
    "The wsdlc task generates this JWS implementation file in the directory specified by the destImplDir attribute. The subdirectory hierarchy corresponds either to the packageName attribute or to the targetNamespace URL of the WSDL if the packageName attribute is not specified. The name of the JWS file is ServiceName_PortTypeNameImpl.java, where ServiceName and PortTypeName refer to the value of the name attribute of the appropriate <service> and its inner <port> element, respectively, in the WSDL file. The names of the methods and parameters in the JWS file are the same as the names of the operations and input parmeters in the WSDL file."
    Does this mean that the wsdlc task creates this file, with the name format specified above, by default. beccause, I dont see such a file created for me. What it creates for me is just the service_port_type_nameImpl file.
    Which one is correct?

  • How to set default path for file open in SQL Developer

    I am new to Oracle SQL Developer. Everytime when I open a file, it will default to the install directory. It is hurtingmy hand because I have to click back to the folder where I put my sql statements.
    Is there any way to set the Home or Work button to point to the location I like? or add anther button to point to my folder? I just don't want to click 5 to 10 times to open a file.

    There are a few things. One is that you can set a working directory for any files you run in the SQL Worksheet i.e. @myfile.sql will pick up this directory.
    You can also set a preference for exporting files.
    Also if you use File -> Open, it should remember where you were the last time, so you hunt the first time, then it remembers for the next time. There is a bug for ctrl-O that always goes back to the original directory, but that has been fixed for the next patch release, so ctrl -O will also remember where you were last.
    The differences here are because we are dependent on the IDE from JDeveloper, and so we don't have full control over the Save and Open dialogs. We are aware of this frustration and are planning to change this for a future release.

  • How to set the path for new version of  jdk 1.5.0

    i downloaded jdk 1.5.0 from sun website . i gave path like this C:\jdk1.5.0\bin; but showing error internal command doent reconiged.give me some instructions aboth this one with details.

    Read item #5 in the Installation Instructions for the file you downloaded.

  • How to set the PATH Environment variable with multiple homes?

    I have several Oracle homes, and now I cannot get reports to work anymore. These are the things I installed, in this order:
    - Oracle Database 10g
    - Oracle Developer Suite 10g
    - Oracle Discoverer 4
    - Oracle HTMLDB
    Now my PATH environment variable is flooded with paths, but none seem to work when I want to start Reports 10g. I deleted all of the paths from the other homes and still no luck.
    This was my original PATH:
    C:\WINDOWS\Downloaded Program Files;
    C:\Program Files\PC-Doctor for Windows\services
    and this is the PATH after I stripped it:
    C:\WINDOWS\Downloaded Program Files;
    C:\Program Files\PC-Doctor for Windows\services
    What am I supposed to change to get Reports to work again (i.e. do more than just show the splash screen)?
    Forms and Designer work just fine....

    Never mind I found my solution here:
    Re: Oracle Developer hangs when starting...i'm desperate

  • How to set save path using FileStream?

    Hi everybody, I have a webcam that takes a snapshot in AIR. I understand that the code below is to write/edit a .txt file.
    var file:File = File.desktopDirectory.resolvePath( "Text.txt" );
    so how do I save multiple snapshots .jpg to my local network/C drive?

    Hi guys, I have been doing some trial and error and found the correct code to save the bitmap into my C drive. Thanks for reading this thread.
    var fl:File = File.desktopDirectory.resolvePath("C://grpphoto.jpg");

Maybe you are looking for

  • ADFS Claims Authentication, Configuring UPA and People Picker

    Hi, I am just trying to get my head around setting up ADFS to authenticate users along with allowing UPA (My Sites) and People Picker to work. So, my environment is a WFE and an SQL Server offsite and my AD and ADFS 2.0 server onsite.  We have config

  • VI01 - Shipment Costs (combining Deliveries from Shipment document)

    Hello experts Do you know how to combine (consolidate) the shipment costing line item (VI01) when there are more than one Delivery to the same customer in the Shipment document? E.g. I have a Shipment with 58 Deliveries and for a specific customer ha

  • Data not getting downloaded to client in MSR2.0

    Hi all,    We have done all the configuration for MSR2.0 at the backend but only data regarding materials is getting displayed at the client.The rest of the data we r getting till middleware but while syncing it we are not getting anything at the cli

  • Usb broken in virtualbox [SOLVED](finally)

    I installed virtualbox from the .bin file on the virtualbox site. After the last kernel update, the vbox kernel module broke, so I reinstalled. This didn't fix it, so I got rid of the vbox files in opt, and reinstalled. I did save the old files. Now,

  • Trying to update my brandspanking new Iphone 4 to 4.3.5

    keep getting error code 3194, hav itunes 10.4, hav rebooted pc hav tried everything the guide says, phone is factory unlocked and on 4.3.4(8k2)???????