Best Logging approach when using ALSB

Hi,
We are exploring various possibilities for logging with ESB (i am using ALSB version
3.0).
I was thinking of using Log4J logging to SysLog (http://wiki.apache.org/logging-log4j/syslog) to capture metrics from different processes.
I have intereactions in my web application (MyWebApp) where i have to fetch some results from a 3rd party web application (MyWebApp2) and i use the ESB to interact between the 2 applications.
I can depict the interections to be of the form depicted below.
Browser --> MyWebApp network request / MyWebApp processing / MyWebApp -ESB network request / ESB processing / ESB-MyWebApp2 network request / MyWebApp2 processing ) -
How can i capture or measure performance profile ?
Among other alternatives
I was thinking if i can use Log4j as a seperate service and can invoke it within the ESB each time i want to log something.
The only concern i have with this is that it might turn out to be a costly operation.
Can Some one provide me a quick reply for this as i need to wrap it a bit quickly.
Cheers
Edited by: user8352312 on Oct 28, 2008 11:40 AM

Currently OSB 10gR3 is out! with nice cool stuff (debugging).
But, you could at logging to your service by applying log actions in your service. This wil generate log information in the log file. Or you could create Alert or Report actions.
Marc
http://orasoa.blogspot.com

Similar Messages

  • How to get the log information when using a class?

    Hi All,
    I have a simple question, which I don't know how to solve. I am using org.apache.commons.logging.Log and LogFactory to do some logging. A typical situation is exemplified in the following code snippet.
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    class LogClass {
        private static final Log LOG = LogFactory.getLog(AClass.class);
        public void logit(){
            LOG.debug("This is the debugging log.");
    public class AClass{
        public static void main(String[] args) {
            LogClass l=new LogClass();
            l.logit();
    }But this way, I do not get the log information from the class LogClass. Could anybody please help?
    Many thanks.

    jschell wrote:
    jverd wrote:
    ...configuration in log4j.xml or log4j.properties.And far as I recall you need one of those two also. If there is no config then there is no output.I thought it used some default config if no file is present, but I could be mistaken. Either way, it adds to the possible problems that the OP could be having, any of which are consistent with his rather vague question.
    1) He's passing the wrong class to the LogFactory, and hence getting a logger with the wrong name, so he's seeing a different name than he expects in the output that's being produced.
    2) His config file does not contain the proper format to include the actual classname, independent of the logger's name, so he's missing a piece of desired information in each line of the output that's being produced.
    3) His config file indicates a threshold that's less verbose than the level at which his code is logging, so no output is present when he wants it.
    4) His config file is missing (or not where it's expected to be), so no output is being produced at all.
    5) His config file is missing (or not where it's expected to be), so a default level or format is being produced, effectively the equivalent of one of the misconfigurations described in #2 and #3.
    Since the OP seems to have vanished, we may never know.

  • I currently use a Time Capsule for my wi fi. I would like to extend its range and have been looking at boosters. Is Airport Express the best booster solution when using the Time Capsule or is there a better solution?

    I currently use a Time Capsule for my wi-fi (2008). I would like to extend its range. While there are many boosters that can do the job, what is the best option? How is Airport Express as an option?

    The Time Capsule (TC) can have its wireless network extended by another TC, an 802.1n AirPort Extreme Base Station (AEBSn), or 802.11n AirPort Express Base Station (AXn).
    If your TC is a simultaneous dual-band version, only another TC or AEBSn will be able to extend both radios. The AXn can only support one radio (2.4 or 5 GHz) at a time.

  • RDBMSRealm problem: users logged out when using WLS console

    I have implemented RDBMSRealm for Oracle mapping it to our database tables on WLS
    6.0 SP2. It works fine except a strange problem: if users are logged in on a web
    application with FORM authentication each time an adminstrator uses the WLS console
    clicking on an item (for example "Servers" or "EJB", not only on "Security") all
    the users are logged off and the login form is presented to them. Does anybody
    experienced the same problem? Is there somebody that knows a solution?
    Romano

    Interesting, Thanks.
    I'll give this a try.
    Also, while enabling user switching and turning of the "lock on screensaver" option, I noticed the "Log out after [] minutes of activity" option in the Security preferences, which if this does what I think it does, may be my only problem.
    If this turns out to be true, i've just had a major "DOH!" moment :/
    I'll try this first and post back my results.
    Message was edited by: carl-g

  • IFS logging/tracing when using IFS Java APIs

    We are using IFS 1.1 and the java APIs that come with it
    (oracle.ifs java packages). In the IfsDefault.properties file
    you can specify tracing options. I have enabled tracing in this
    properties file, but I don't know where the tracing output
    goes. Where/how can I specify the output file for this tracing?
    Thanks
    Bryan - [email protected]

    I think posting the question in the IFS forum (or the database forum if there's no IFS forum) will be the fastest route to an answer on this one.
    Unfortunately, we're not IFS experts in the JDev team...

  • Best prepaid service when using a  3gs Iphone in San Francisco:

    I am interested in buying my first IPhone (a 3gs) and I would like to utilize it with a prepaid service such as  Straight Talk.
    Is there is particular prepaid provider that is recommended for the San Francisco area?
    Also related to that question is it better to obtain a locked or unlocked phone (Straight Talk appears to allow unlocked GSM and locked GSM such as AT&T)?
    Thanks
    Denis
    Alameda, CA

    I appreciate everyone's input, especially the suggestion to check out Pageplus (which runs on Verizon).
    I also realize that a 3gs IPhone is a GSM and that I would need an IPhone 4 or newer that is compatible with CDMA network.
    Thanks,
    Denis

  • J2ee logging approach

    hi,
    i am currently exploring on what approach to use for logging messages for my application. i am using the sun one appserver and stateless ejb's. may i know the best logging approach for ejb's? is there a logging software that would require less coding for logs? thanks.
    regards,
    andrew

    Well, that's not quite fair. With Commons Logging you can use log4j, or jdk1.4 logging, or build your own logger. You're still tied into the Commons Logging system (as much as you're tied into anything) but it's more flexible than log4j specifically.
    IIRC you can build adaptors to use other loggers into log4j as well, but it's tricker. Commons Logging makes it easier, but has the overhead of requiring another layer to your configuration.
    Like everything it's a tradeoff.

  • Bulk Collect into is storing less no of rows in collection when using LIMIT?

    I have written the following anonymous PL SQL Block. However, the line dbms_output.put_line(total_tckt_col.LAST) gives me output as 366 (in DBMS_OUTPUT is SQL Developer) which is correct when no limit is set. If the limit is set to 100 in the FETCH statement then dbms_output.put_line(total_tckt_col.LAST) gives me 66. What I am doing wrong here?
    DECLARE
       CURSOR cur_total_tckt 
       is
       select  t.ticket_id ticket_id, t.created_date created_date, t.created_by created_by, t.ticket_status ticket_status,
      t.last_changed last_changed, h.created_date closed_date
       from n01.cc_ticket_info t
       inner join n01.cc_ticket_status_history h
       on (t.ticket_id = h.ticket_id)
       where t.last_changed >= '6/28/2012 17:28:59' and t.last_changed < (sysdate + interval '1' day);
      type total_tckt_colcn
       is
       TABLE OF cur_total_tckt%rowtype;
      total_tckt_col total_tckt_colcn;
      total_coach_col total_tckt_colcn;
       begin
      total_tckt_col  := total_tckt_colcn ();
      total_coach_col := total_tckt_colcn ();
       OPEN cur_total_tckt;
      loop
       fetch cur_total_tckt bulk collect into total_tckt_col;
    -- fetch cur_total_tckt bulk collect into total_tckt_col limit 100;
       EXIT
       WHEN (cur_total_tckt%NOTFOUND);
       END LOOP ;
       CLOSE cur_total_tckt;  
      dbms_output.put_line(total_tckt_col.LAST); 
       FOR i IN total_tckt_col.first..total_tckt_col.last
      LOOP
      dbms_output.put_line(i);
       END LOOP;
       end;

    Ishan wrote:
    Here is modified version of your code on standard EMP table in scott schema.
    Did you test it? All you demonstrate is last batch has 4 rows. But you print it outsite the loop. This way if last batch is incomplete (has less than limit rows) your loop doesn't process last batch. Assume you want to print enames:
    DECLARE
        CURSOR cur_total_tckt
          IS
            select  ename
              from  emp; -- I have a total of 14 records in this table
            type total_tckt_colcn
              is
                TABLE OF cur_total_tckt%rowtype;
            total_tckt_col total_tckt_colcn;
    BEGIN
        total_tckt_col  := total_tckt_colcn ();
        OPEN cur_total_tckt;
        LOOP
          fetch cur_total_tckt bulk collect into total_tckt_col limit 5;
          EXIT WHEN cur_total_tckt%NOTFOUND;
          FOR v_i IN 1..total_tckt_col.count LOOP
            dbms_output.put_line(total_tckt_col(v_i).ename);
          END LOOP;
        END LOOP ;
        CLOSE cur_total_tckt;
    END;
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    PL/SQL procedure successfully completed.
    SQL>
    As you can see, it didn't print last batch. Why? Because NOTFOUND is set to true if exact number of rows you asked to fetch was not fetched. So last batch has 4 rows while code asks to fetch 5. Therefore, NOTFOUND is set to true and code exits before processing that last batch. So you have to repeat processing code again outside the loop:
    DECLARE
        CURSOR cur_total_tckt
          IS
            select  ename
              from  emp; -- I have a total of 14 records in this table
            type total_tckt_colcn
              is
                TABLE OF cur_total_tckt%rowtype;
            total_tckt_col total_tckt_colcn;
    BEGIN
        total_tckt_col  := total_tckt_colcn ();
        OPEN cur_total_tckt;
        LOOP
          fetch cur_total_tckt bulk collect into total_tckt_col limit 5;
          EXIT WHEN cur_total_tckt%NOTFOUND;
          FOR v_i IN 1..total_tckt_col.count LOOP
            dbms_output.put_line(total_tckt_col(v_i).ename);
          END LOOP;
        END LOOP ;
        FOR v_i IN 1..total_tckt_col.count LOOP
          dbms_output.put_line(total_tckt_col(v_i).ename);
        END LOOP;
        CLOSE cur_total_tckt;
    END;
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    PL/SQL procedure successfully completed.
    SQL>
    But you must agree repeating that processing code twice isn't best solution. When using BULK COLLECT LIMIT we should exit not by NOTFOUND but rather by collection.count = 0:
    DECLARE
        CURSOR cur_total_tckt
          IS
            select  ename
              from  emp; -- I have a total of 14 records in this table
            type total_tckt_colcn
              is
                TABLE OF cur_total_tckt%rowtype;
            total_tckt_col total_tckt_colcn;
    BEGIN
        total_tckt_col  := total_tckt_colcn ();
        OPEN cur_total_tckt;
        LOOP
          fetch cur_total_tckt bulk collect into total_tckt_col limit 6;
          EXIT WHEN total_tckt_col.count = 0;
          FOR v_i IN 1..total_tckt_col.count LOOP
            dbms_output.put_line(total_tckt_col(v_i).ename);
          END LOOP;
        END LOOP ;
        CLOSE cur_total_tckt;
    END;
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    PL/SQL procedure successfully completed.
    SQL>
    SY.

  • Can we get row counts when using dbms_datapump?

    When using dbms_datapump, is there a way to get the rows loaded for each table, similar to the log files when using the command line? I can't seem to find anything. I'm trying to import. Database is 10g r2.

    if you don't have to use DBMS_DATAPUMP and can use external tables for the import (both work exactly same way), then you can use ROWCOUNT
    INSERT INTO MYTABLE SELECT * FROM EXTERNALTABLE;
    v_number_of_rows := SQL%ROWCOUNT ;
    COMMIT;
    if you have to use DBMS_DATAPUMP then look at "worker status types" in this document
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/appdev.102/b14258/d_datpmp.htm#i997417

  • Best Log Setting for ASA & MARS

    Hi,
    I'm going back and trying to clean up our MARS install a little bit now that I have some time. I need to update MARS to the latest version, but right now I'm just trying to wade through some of the undefined logs coming from our ASA. Is there any guideline as what is the best log settings to use comming from the ASA for MARS? Right now it looks like everything is setup to be forwarded. Anyone have any suggestions for what they have their log settings at to capture the best amount of information, but not have to wade through everything else?
    Thanks

    Which syslogs are these specifically? We don't get any undefined events from our FWSM(s)? We get a plenty from the Netscreen (but AFAIR this is documented on CCO) that the support is not 'complete' as of yet.
    The recommended level for ASA/PIX as per the Cisco Guide and 'many' discussion on Cisco MARS User Group is 'debugging'. Under normal operation not a lot of level 7 messages are generated.
    Regards
    Farrukh

  • Best way to log/notify when someone logs into ASDM

    What is the best practice to get a notification and log when s
    omeone logs in and uses the ASDM?  I have syslog server setup and smtp, and snmp traps, but not sure where to tell it to notify
    me when someone logs into the asdm..... any suggestions?
    thanks in advance

    There a few ways to accomplish this (if I understand you correctly). You can simply drag the captured clips from the finder into the new projet or you can have multiple projects open at the same time and drag the clips between the bins in the browser. If you're moving clips between computers it's possible you might have to reconnect the clips if you've moved the clips to another drive. Pretty simple, select multiple clips in the browser and control click and choose reconnect. Explore the options in the file requester and you should be able to figure this out.

  • I recently upgraded to the latest version of FF and now when using a webmail client I am routinely logged out when I try to search e-mail. Why? I go to IE and it works... but, I hate IE.

    I recently upgraded to the latest version of FF and now when using a webmail client I am routinely logged out when I try to search e-mail. It works in IE, but I don't like or want to use IE.
    == This happened ==
    Every time Firefox opened
    == Today

    Unstable means it can vary in stability day by day as it can be crash prone to being stable. Features can be a work in progress for a while. The May 24 Nighty build was crash prone for a lot of testers for example.

  • I have been using Safari for years and have always kept it on "private." Starting two days ago, I suddenly found myself unable to log onto my blog and many other sites that I normally log onto when private is set. Why?

    I have been using Safari for years and have always kept it on "private." Starting two days ago, I suddenly found myself unable to log onto my blog and many other sites that I normally log onto when private is set. This so annoying, I just switched to Firefox. I don't like Firefox nearly as much as I like Safari. What is happening? How do I fix the problem?
    Thank you.

    Might be a corrupted database ...
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • HT201317 When I go to log onto iCloud using my Windows 7 and it asks for my login information, I get the error saying my Apple account is valid but not an iCloud account. How do I get an iCloud account? Thank you

    When I go to log onto iCloud using my Windows 7 and it asks for my login information, I get the error saying my Apple ID is valid but not an iCloud account. How do I get an iCloud account?
    I don't have any apple products personally, this is for work to use Photo Stream so when Superintendents & Project Managers take pictures of their construction site, I am able to have those images immediately.
    Thank you

    You can not create an iCloud account using a PC, you will need an Apple product. Once the account exists you can logon to it from a PC.

  • Hello. I have a problem with OEL 6.5 and ocfs2. When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.

    Hello.
    I have a problem with OEL 6.5 and ocfs2.
    When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.
    fstab:
    UUID=32130a0b-2e15-4067-9e65-62b7b3e53c72 /some/4 ocfs2 _netdev,defaults 0 0
    #UUID=af522894-c51e-45d6-bce8-c0206322d7ab /some/9 ocfs2 _netdev,defaults 0 0
    UUID=1126b3d2-09aa-4be0-8826-0b2a590ab995 /some/3 ocfs2 _netdev,defaults 0 0
    #UUID=9ea9113d-edcf-47ca-9c64-c0d4e18149c1 /some/8 ocfs2 _netdev,defaults 0 0
    UUID=a368f830-0808-4832-b294-d2d1bf909813 /some/5 ocfs2 _netdev,defaults 0 0
    UUID=ee816860-5a95-493c-8559-9d528e557a6d /some/6 ocfs2 _netdev,defaults 0 0
    UUID=3f87634f-7dbf-46ba-a84c-e8606b40acfe /some/7 ocfs2 _netdev,defaults 0 0
    UUID=5def16d7-1f58-4691-9d46-f3fa72b74890 /some/1 ocfs2 _netdev,defaults 0 0
    UUID=0e682b5a-8d75-40d1-8983-fa39dd5a0e54 /some/2 ocfs2 _netdev,defaults 0 0

    What is the output of:
    # chkconfig --list o2cb
    # chkconfig --list ocfs2
    # cat /etc/ocfs2/cluster.conf

Maybe you are looking for

  • Can NI-Device be multiple addresses on 1 interface?

    We develop instrument cards in CompactPCI that use NI-Device and a PXI-GPIB card for their GPIB interface. We'd like to be able to put multiple instrument cards in the same CPCI chassis with the one GPIB card, but give each instrument a different add

  • Authentication in an application placed in an URL iview in the portal

    Hi all gurus! I have a delicate problem: we have an application that we have deployed on the same WAS as the portal runs on and that application is presented through an URL iview in the portal. We want to use the LogonTicket created by the portal for

  • FM to search for Contracts related to Ibase (CRM)

    Hi there, Is there any FM that can be used to search for contracts that are attached to the Ibase? I can't seem to find any suitable way to get this data... Thanks, Josh

  • SAP NW 7.0 with BW 7.01 SP4 and BI Content  7.04 SP3

    Hi, We have just upgraded our BI7 SPS 18 ( or you can say BW SP20) to Enhancement Pack1 SP4. When we are trying to open Queries with BEx7.X it throws errors as below: 1. Value "2010001" for user-exit variable ZCCMS027 is invalid 2. Exception conditio

  • After dowloading latest PC suite the programme bom...

    Downloaded latest PC suite ver 7.1.26.0, using Vista 32 bit and E66 phone. PC suite was working fine, now as soon as I send one message the programme won't work. The phone is apparently still "connected" but attempts to send further message result in