How can I select events from two different channels?

Hi everybody, I have another question! :)
When processing events in config.xml, using a CQL sentence, Eclipse compiler doesn't allow me to select more than one event.
I paste here my app.context.xml and my config.xml:
app.context.xml:
<wlevs:event-type-repository>
<wlevs:event-type type-name="HorseEvent">
<wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
</wlevs:event-type>
<wlevs:event-type type-name="GunmanEvent">
<wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
</wlevs:event-type>
</wlevs:event-type-repository>
<!-- Adapter can be created from a local class, without having to go through a adapter factory -->
<wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
<wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
<wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
</wlevs:adapter>
<wlevs:channel id="horseInputChannel" event-type="HorseEvent" >
<wlevs:listener ref="sevenhorsesProcessor"/>
<wlevs:source ref="sevenhorsesAdapter"/>
</wlevs:channel>
<wlevs:channel id="gunmanInputChannel" event-type="GunmanEvent" >
<wlevs:listener ref="sevenhorsesProcessor"/>
<wlevs:source ref="sevenhorsesAdapter"/>
</wlevs:channel>
<!-- The default processor for OCEP 11.0.0.0 is CQL -->
<wlevs:processor id="sevenhorsesProcessor" />
<wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
<wlevs:listener>
<bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
</wlevs:listener>
<wlevs:source ref="sevenhorsesProcessor"/>
</wlevs:channel>
<wlevs:channel id="gunmanOutputChannel" event-type="GunmanEvent" advertise="true">
<wlevs:listener>
<bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
</wlevs:listener>
<wlevs:source ref="sevenhorsesProcessor"/>
</wlevs:channel>
And here you are the two config.xml, I have tried two different ones and none of them runs.
The first one is:
<?xml version="1.0" encoding="UTF-8"?>
<n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
<processor>
<name>sevenhorsesProcessor</name>
<rules>
<query id="horsesRule">
<![CDATA[ select * from horseInputChannel
        ]]>
</query>
<query id="gunmansRule">
<![CDATA[ select * from gunmanInputChannel
        ]]>
</query>
</rules>
</processor>
</n1:config>
As you can see, I use here TWO CQL sentences from the two channels that are defined in app.context.xml.
The other one is:
<?xml version="1.0" encoding="UTF-8"?>
<n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
<processor>
<name>sevenhorsesProcessor</name>
<rules>
<query id="horsesRule">
<![CDATA[ select * from horseInputChannel, gunmanInputChannel
        ]]>
</query>
</rules>
</processor>
</n1:config>
I use here only ONE CQL sentence in which I try to get events from the two channels that are defined.
None of them works.
Can anybody help me?
Thank you!

Hi! Here you are the files you required:
SevenHorses.context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.bea.com/ns/wlevs/spring
http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">
<wlevs:event-type-repository>
<wlevs:event-type type-name="HorseEvent">
<wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
<wlevs:properties>
<wlevs:property name="messageHorse" type="java.lang.String"></wlevs:property>
</wlevs:properties>
</wlevs:event-type>
<wlevs:event-type type-name="GunmanEvent">
<wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
<wlevs:properties>
<wlevs:property name="messageGunman" type="java.lang.String"></wlevs:property>
</wlevs:properties>
</wlevs:event-type>
</wlevs:event-type-repository>
<!-- Adapter can be created from a local class, without having to go through a adapter factory -->
<wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
<wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
<wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
</wlevs:adapter>
<wlevs:channel id="horsesInputChannel" event-type="HorseEvent">
<wlevs:listener ref="sevenhorsesProcessor"/>
<wlevs:source ref="sevenhorsesAdapter"/>
</wlevs:channel>
<wlevs:channel id="horsesInputChannel2" event-type="HorseEvent">
<wlevs:listener ref="sevenhorsesProcessor"/>
<wlevs:source ref="sevenhorsesAdapter"/>
</wlevs:channel>
<!-- The default processor for OCEP 11.0.0.0 is CQL -->
<wlevs:processor id="sevenhorsesProcessor" />
<wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
<wlevs:listener>
<bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
</wlevs:listener>
<wlevs:source ref="sevenhorsesProcessor"/>
</wlevs:channel>
</beans>
config.xml
<?xml version="1.0" encoding="UTF-8"?>
<n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
<processor>
<name>sevenhorsesProcessor</name>
<rules>
<query id="horsesRule">
<![CDATA[ select message from horsesInputChannel2 where message like "(gunman)"
        ]]>
</query>
</rules>
</processor>
</n1:config>
Thanks!

Similar Messages

  • How can I transfer songs from two different itunes?

    I want to transfer songs from my brother's itunes library to my shuffle, but when I plug it in his computer, a message saying that his library is not linked to my library (or something to that extent) and whether I would like to replace the songs. If I click yes, all my existing songs are replaced with HIS songs. If I click on NO, the Shuffle icon does not appear at all and I cannot transfer any of his songs to my shuffle. How can I transfer songs from two different computers into my shuffle without replacing any of my existing music?
    Shuffle   Windows XP  
      Windows XP  

    You'll have to setup your iPod to manual instead of automatic update (I'm not sure, though, if it works with the Shuffle as well).
    Alexander.

  • How can I use music from two different iTunes accounts?

    how can I use music from two different iTunes accounts?

    If you mean iTunes Store accounts, there's really nothing for you to do. Just add the tracks to the iTunes library and play them. Music purchased prior to late-2009 will been to be authorized, though. Pull down Store > Authorize... and type the credentials of the Apple ID used to buy the tracks.
    If you mean something else, please describe in more detail.

  • How can I send email using two different email address that both link back to my one exchange account on my Ipad mini

    How can I send email using two different email address that both link back to my one exchange account on my Ipad mini? 
    On my PC I simply have a master return email address and use a POP for the secondary address.  Both are through the one exchange account without a problem.  I need to be able to do the same on my Ipad.

    Ah, I should have made that clear.  My domain didn't come from google.  It was purchased at and is hosted at dreamhost, but I haven't used their email servers in years - I just route everything through gmail.  I actually have a bunch of domains (with websites).
    Gmail has an option that lets someone with custom domains send (and receive) email through gmail using the custom domain once Google confirms proper ownership of the domain (to prevent spammers and such).  Gmail has a setting for "send email as" which allows gmail to be sent using a custom domain as the sender.  I'm pretty sure Apple's old mobileme had this feature too, but I didn't use it.

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How do I calculate days from two different dates in XI/PI?

    Hi all,
    How do I calculate days from two different dates in XI/PI?
    my requirement is to pass the number of days to target field from two dates.
    Current date : 14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How can I remove events from my iPhone. I want to delete all the events from my iPhone.

    how can I remove Events from my Photo in iPhone

    Connect to computer iTunes and uncheck under Photos > Events then do a sync.

  • HT4061 How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases?

    How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases? I want my music to match on both ipad and computer.

    Purchases are forever tied to the AppleID they were bought with. There is currently no way to consolidate AppleIDs. Sorry.

  • HT204053 My ipad stores my documents on iCloud. How can I find them from a different computer, as I used to do by using a memory stick on my old PC etc ?

    My ipad stores my documents in iCloud. How can I find them from a different computer?  I used to use a memory stick and could work on my documents on any computer and want to have a replacement system using documents created on my ipad - I can't use a memory stick with it.

    How do you know that they are on iCloud, the iPad can (and does) save locally. If they are on iCloud they will be accessible via the application that created them (Pages, Numbers etc) and can be reached from any computer with iCloud access by logging to iCloud.com. But you did that and stated that they are not there, so what makes you think that they are?

  • How can I select columns from a table EMP, using Select statement?.

    Hi Friends,
    How can I select columns from a table EMP?.
    I want to select columns of EMP table, using select statement.
    Please reply me urgently.
    Shahzad

    Something like this:
    scott@DBA> select empno,ename,job from emp;
         EMPNO ENAME      JOB
          7369 SMITH      CLERK
          7499 ALLEN      SALESMAN
          7521 WARD       SALESMAN
          7566 JONES      MANAGER
          7654 MARTIN     SALESMAN
          7698 BLAKE      MANAGER
          7782 CLARK      MANAGER
          7788 SCOTT      ANALYST
          7839 KING       PRESIDENT
          7844 TURNER     SALESMAN
          7876 ADAMS      CLERK
          7900 JAMES      CLERK
          7902 FORD       ANALYST
          7934 MILLER     CLERK
    14 rows selected.Check the documentation:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#sthref9697
    Message was edited by:
    Delfino Nunez

  • Selecting data from two different tables.

    Do we need to use join two tables with primary/foreign key while trying to use select statement for getting data from those to table.? If no who can i go about do it.

    872959 wrote:
    If i am using From clause to get data from two different tables, is it necessary that both tables have column of identical data in them.In general, they ought to (or you need to join in a third table that tells you how to map rows from one table to rows of the other table).
    It is not strictly necessary that there be any join condition between tables. If you don't provide a join condition, Oracle has to do a Cartesian product. That means that if there are n rows in one table and m rows in the other, the result set will have n * m rows. It is very rarely a good idea to write queries that do Cartesian products but it does occasionally happen.
    Justin

  • How can I get music from two diff devices onto my phone if it's only synced to one?

    I have a desktop an laptop both windows with iTunes on both with same Apple ID. Both have diff music on each But the laptop is sync to my iphone &amp; when I have tried to sync my I phone to my desktop it wiped my music. How can I combine music from my desktop and laptop into my iphone without wiping what's already on there?

    Welcome to the Apple Community.
    Assuming it isn't purchased content from the iTunes Store, then your only way is to put all the music onto one computer and sync with that.

  • How can i use eyedropper between two different art board.

    Hi
    How can i apply the same color for the images in two different art boards with eyedropper.
    I am trying to apply the same color from the image in one art board to another image in another art board.
    Can any one help me please. Thanks
    Steve
    I am using Mac

    apresslink,
    Presuming you are unable to use the Eyedropper Tool normally, in other words keep the target object selected while you pick up the colour, by having the Artboards open in adjacent windows to ClickDrag between (I am still with 10 which may explain at least part of my ignorance for which I apologize):
    Until someone presents a smarter solution, you may cheat and create a carrier object beside the  source object, drop the colour in that, cut and paste it to be beside the target object, and drop the colour there. With multiple colours to drop multiple times, you may create a palette to hold them, to use just like a painter working on several canvases at the same time. Or you could paste diminshed copies of the source objects.

  • How to create an event in two different time zones?

    Hello,
    I am traveling a lot and I would like to be able to enter the flight details in iCal - whether on my iPhone, iCloud, i... whatever. The problem is that I cannot manage to enter these details without calculating the time difference. Example:
    I am flying on Saturday from Frankfurt to Japan. My flight takes off at 19:00h local German time and arrives in Tokyo at 13:00h local time (in Japan)
    I can either specify the time zone for Germany or for Tokyo, but is there a way to enter the event from 19:00h German time to 13:00h Tokyo time?
    Thank you very much for your time.
    Larry

    Hi Alex,
    this applies only when the event takes place in one time zone, but in my case I start the event on one time zone and ends in a different time zone. As it is known, the airlines show always the local times on the ticket. Which means that I start my travel at 19:00h German time (UTC +2) and end it at 13:00h Tokyo time (UTC +9). When I create the event I can choose From Date/Time... To Date/Time and below I have Time zone. Ideally I should have two time zones, one for the start and another for the end.
    Since this situation only applies to travelling (I can't think of another case right now), I believe that Apple didn't take this into consideration.
    Any other thoughts/ideas? Other than manually calculating the difference, of course.

Maybe you are looking for

  • Problems to compile Perl DBD::Oracle with InstantClient 11.1.0.7

    machine:~/.cpan/build/DBD-Oracle-1.22-WXjXWy# perl Makefile.PL Using DBI 1.607 (for perl 5.010000 on x86_64-linux-gnu-thread-multi) installed in /usr/local/lib/perl/5.10.0/auto/DBI/ Configuring DBD::Oracle for perl 5.010000 on linux (x86_64-linux-gnu

  • New Columns Used in a Package Declaration

    I added the following new columns to a table: alter table J48PLTEQUIP add LOCBYUSER Char ( 1) Default 'N', UPF85 VarChar2(6) Default To_Char(SysDate,'MMDDRR'), COFFSETDV VarChar2( 8) , UPF86 VarChar2(6) Default To_Char(SysDate,'MMDDRR'), COFFSETEV Va

  • Some common sites misbehaving with Safari

    I need mlb.com like I need water and air. But after the recent updates the site doesn't re-load properly ever 90 seconds like it should (in order to update scores). Also, the links in the Flash pages do not open. I have seen a few other popular sites

  • Passing XML file to CLOB argument 32KB ?

    Hi. I'm quite an Oracle noob. This is my very first question here in this form. I can successfully pass an XML file < 32KB to the p_xml_in parameter of my import package. My Import package also processes successfully the xml as supposed. Unfortunatel

  • Query regarding supplier bids

    Hi,    Can anyone confirm the following ?? There is no provision in SRM for suppliers to add items in addition to those proposed in the Bid invitation. BR, Rajeshree