Events sent from updateListener using route() lost

View: New views
3 Messages — Rating Filter:   Alert me  

Events sent from updateListener using route() lost

by benjamine.leon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am sending the  events using route within update Listener.

          statement.addListener(new UpdateListener()
        {
            public void update(EventBean[] newEvents, EventBean[]
oldEvents)
            {
        esperRuntime.route(new RValue("abc",
564635)));
                                Logger.info(",,");
                }
             }


Next I added a listener for this event, but the update method is never
getting triggered.

          statement = esperAdmin.createEPL("select * from RValue");

         
          statement.addListener(new UpdateListener()
        {
            public void update(EventBean[] newEvents, EventBean[]
oldEvents)
            {
                        Logger.info("Data received .... " );
                }
           }

Ben Leon

_______________________________________________

This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing.  Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be sent from other members of the Barclays Group.
_______________________________________________

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: Events sent from updateListener using route() lost

by benjamine.leon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I replace the route() with sendEvent() it works fine. Is it fine to
use sendEvent()?

Ben Leon

-----Original Message-----
From: Leon, Benjamine: IT (NYK)
Sent: Sunday, November 01, 2009 10:59 PM
To: dev@...
Subject: [esper-dev] Events sent from updateListener using route() lost

Hello,

I am sending the  events using route within update Listener.

          statement.addListener(new UpdateListener()
        {
            public void update(EventBean[] newEvents, EventBean[]
oldEvents)
            {
        esperRuntime.route(new RValue("abc",
564635)));
                                Logger.info(",,");
                }
             }


Next I added a listener for this event, but the update method is never
getting triggered.

          statement = esperAdmin.createEPL("select * from RValue");

         
          statement.addListener(new UpdateListener()
        {
            public void update(EventBean[] newEvents, EventBean[]
oldEvents)
            {
                        Logger.info("Data received .... " );
                }
           }

Ben Leon

_______________________________________________
_______________________________________________

This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing.  Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be sent from other members of the Barclays Group.
_______________________________________________

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Events sent from updateListener using route() lost

by Thomas Bernhardt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Ben,

"route" ensures that your call stack does not get deeper every time you send an event into the engine from a listener based on an arriving event.
Therefore if using a debugger this can be confusing.
Do you want to provide a test case if still having issues?

Best regards,
Tom

From: "benjamine.leon@..." <benjamine.leon@...>
To: dev@...
Sent: Sun, November 1, 2009 11:12:56 PM
Subject: RE: [esper-dev] Events sent from updateListener using route() lost

If I replace the route() with sendEvent() it works fine. Is it fine to
use sendEvent()?

Ben Leon

-----Original Message-----
From: Leon, Benjamine: IT (NYK)
Sent: Sunday, November 01, 2009 10:59 PM
To: dev@...
Subject: [esper-dev] Events sent from updateListener using route() lost

Hello,

I am sending the  events using route within update Listener.

      statement.addListener(new UpdateListener()
        {
            public void update(EventBean[] newEvents, EventBean[]
oldEvents)
            {
                    esperRuntime.route(new RValue("abc",
564635)));
                Logger.info(",,");
        }
        }


Next I added a listener for this event, but the update method is never
getting triggered.

      statement = esperAdmin.createEPL("select * from RValue");

     
      statement.addListener(new UpdateListener()
        {
            public void update(EventBean[] newEvents, EventBean[]
oldEvents)
            {
            Logger.info("Data received .... " );
        }
      }

Ben Leon

_______________________________________________
_______________________________________________

This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing.  Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be sent from other members of the Barclays Group.
_______________________________________________

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email