Can you run continuous queries via Java Extend

I currently am access a Coherence cluster via a Java Extend proxy. All seems fine but I do not see any events coming back from a CQ. I do when using a simple cache listener though. Does Extend support CQ's or am I doing something stupid? The code is attached below.
thanks
Mark
System.out.println("Running continuous query ...");
System.out.println(queryStr);
System.out.println(filter);
MultiplexingMapListener listener = new MultiplexingMapListener() {
public long evtNum = 0;
public void onMapEvent(MapEvent evt) {
System.out.println("Cache event [" + (++evtNum) + "]");
if (displayResults) {
System.out.println(" Details: " + evt);
try {
Thread.sleep(delay);
} catch (InterruptedException ex) {
Logger.getLogger(Main.class.getName()).log(Level.INFO, null, ex);
ContinuousQueryCache cqc = new ContinuousQueryCache(cache, filter);
Set results = cqc.entrySet();
System.out.println("Initial results returned [" + results.size() + "] rows");
if (displayResults) {
for (Iterator it = results.iterator(); it.hasNext();) {
Object object = it.next();
System.out.println(object);
System.out.println("Adding listener ...");
cqc.addMapListener(listener);
while(1==1) {
try {
System.out.println("CQ waiting ...");
Thread.sleep(10000);
} catch (InterruptedException ex) {
}

Mark,
It appears somehow that you have an old version of MapEventFilter (from pre-3.5). In version 3.5, we changed from using evaluate() to evaluateEntry().
Old:
// evaluate the filter
switch (nId)
    case MapEvent.ENTRY_INSERTED:
        return filter.evaluate(event.getNewValue());
    case MapEvent.ENTRY_UPDATED:
        // note that the old value evaluation is deferred, because
        // the event itself may be deferring loading the old value,
        // e.g. if the event is coming from a disk-backed cache
        boolean fNew = filter.evaluate(event.getNewValue()); // *** Line 178 !!!
        switch (nMask & (E_UPDATED_ENTERED | E_UPDATED_LEFT |
                         E_UPDATED | E_UPDATED_WITHIN))
            case E_UPDATED_ENTERED:
                return fNew && !filter.evaluate(event.getOldValue());
            case E_UPDATED_LEFT:
                return !fNew && filter.evaluate(event.getOldValue());
            case E_UPDATED_ENTERED | E_UPDATED_LEFT:
                return fNew != filter.evaluate(event.getOldValue());
            case E_UPDATED_WITHIN:
                return fNew && filter.evaluate(event.getOldValue());
            case E_UPDATED_WITHIN | E_UPDATED_ENTERED:
                return fNew;
            case E_UPDATED_WITHIN | E_UPDATED_LEFT:
                return filter.evaluate(event.getOldValue());
            default:
                // all other combinations evaulate to the same as
                // E_UPDATED
                return fNew || filter.evaluate(event.getOldValue());
    case MapEvent.ENTRY_DELETED:
        return filter.evaluate(event.getOldValue());
    default:
        return false;
    }New:
// evaluate the filter
switch (nId)
    case MapEvent.ENTRY_INSERTED:
        return InvocableMapHelper.evaluateEntry(filter, event.getNewEntry());
    case MapEvent.ENTRY_UPDATED:
        // note that the old value evaluation is deferred, because
        // the event itself may be deferring loading the old value,
        // e.g. if the event is coming from a disk-backed cache
        boolean fNew = InvocableMapHelper.evaluateEntry(filter, event.getNewEntry());
        switch (nMask & (E_UPDATED_ENTERED | E_UPDATED_LEFT |
                         E_UPDATED | E_UPDATED_WITHIN))
            case E_UPDATED_ENTERED:
                return fNew && !InvocableMapHelper.evaluateEntry(filter, event.getOldEntry());
            case E_UPDATED_LEFT:
                return !fNew && InvocableMapHelper.evaluateEntry(filter, event.getOldEntry());
            case E_UPDATED_ENTERED | E_UPDATED_LEFT:
                return fNew != InvocableMapHelper.evaluateEntry(filter, event.getOldEntry());
            case E_UPDATED_WITHIN:
                return fNew && InvocableMapHelper.evaluateEntry(filter, event.getOldEntry());
            case E_UPDATED_WITHIN | E_UPDATED_ENTERED:
                return fNew;
            case E_UPDATED_WITHIN | E_UPDATED_LEFT:
                return InvocableMapHelper.evaluateEntry(filter, event.getOldEntry());
            default:
                // all other combinations evaluate to the same as
                // E_UPDATED
                return fNew || InvocableMapHelper.evaluateEntry(filter, event.getOldEntry());
    case MapEvent.ENTRY_DELETED:
        return InvocableMapHelper.evaluateEntry(filter, event.getOldEntry());
    default:
        return false;
    }It's theoretically possible that we have shipped the wrong version, so I'll check into that. In the meantime, please check and double-check your classpath and make sure that you do NOT have tangosol.jar anywhere! (Everything is now in Coherence.jar.)
Peace,
Cameron Purdy | Oracle Coherence
http://coherence.oracle.com/

Similar Messages

  • Can you run windows via bootcamp on the macbook pro retina display 2.5GHz dual-core Intel Core i5 512GB flash storage1

    Can you run windows via bootcamp on the macbook pro retina display 2.5GHz dual-core Intel Core i5 512GB flash storage1

    http://www.apple.com/support/bootcamp/

  • Can you run Embedded PL/SQL Gateway and Oracle HTTP Server at the same time

    Hi,
    I know this will sound a bit odd but their is a business case for asking this. Can you run APEX via the Embedded PL/SQL Gateway and the Oracle HTTP Server at the same time? Would their be any security/stability/etc issues I'd need to worry about? I know that I'll need to run them on different ports.
    Thank you,
    Martin Giffy D'Souza
    [http://apex-smb.blogspot.com/]

    I think I've done this in the past. Theres no technical reason why you can't do this as far as I know.
    I can't remember if I used different ports or same port.

  • Can you run Adobe Photoshop CS version 8 on Yosemite?

    Can you run Adobe Photoshop CS version 8 on Yosemite?

    Well if you want permanent license Adobe software, here is the price list for the CS6 catalog .  Creative Suite 6
    Just know that with the exception of Adobe Camera Raw updates, CS6 will have maintenance updates, but not the features of CC 2014.
    The rental model called Creative Cloud means you will have the software installed on your Mac and you can work with your files as before, it's just that activation depends on a $50 monthly fee. Upgrades are piped in at no further cost, and you have the freedom to switch platforms and interface languages. You activate on up to two computers, PC, Mac or mixed. 20 GB online storage for collaboration, and you can also store and sync your settings and custom presets. Typekit if you'd like to try new and difference fonts.
    Look at it this way, it's not a big deal if you are in business. You rent many things and this is probably not your largest monthly expense.
    Gene

  • Can you run Entourage for Mac 2008 v12.1.0 on Mac OSX 10.8.2?

    Can you run Entourage for Mac 2008 v12.1.0 on Mac OSX 10.8.2?

    Office 2008 will run in Mountain Lion including Entourage.

  • Can you run a window version of LabVIEW on an Apple MacBook Pro using boot camp?

    Can you run a window version of LabVIEW 8 on an Apple MacBook Pro using boot camp?

    I don't have a mac, but you may want to read this:
    http://themacview.blogspot.com/
    Should give you more info about what NI is saying.
    Matt Holt
    Certified LabVIEW Architect

  • Can you run a windows only Photoshop plugin on a Mac using Parallels?

    Can you run a windows only Photoshop plugin on a Mac using Parallels?   In particular a .8BF plugin like PTFilters.8BF  or Super Cubic.

    If you also have a Photoshop version of the Photoshop application, the answer is of course YES.
    Otherwise, the answer is no,
    If you have the CC subscription, then of course you can install a Photoshop Windows version and run your plug-in.  That'll be separate from your Photoshop Mac install..

  • Can you run labview on Windows Tablet PC Edition?

    Can you run labview on Windows Tablet PC Edition?...or does LabVIEW executable and Run-time engine operate with this OS?

    LabVIEW 7.x will run without any problems on a Windows Tablet PC with SP1. There have been documented issues with Windows XP SP2 and LabVIEW subsequently not exiting properly--LabVIEW's window closes but somehow it is still present in the task manager.
    Hope this helps.

  • Can you run or install both Photoshop CS6 & CC?

    Can you run or install both Photoshop CS6 & CC?  I thought I'd load both until I decide which one I like best.  Any thoughts?

    Photoshop CS5 and CS6 running at the same time.

  • Can you run apps that you have saved or backed up in airport time capsule?

    Can you run apps that you have saved or backed up in airport time capsule?

    Only by restoring them.

  • Can you run cs6 on macbook air effectively?

    can you run cs6 on macbook air effectively?

    most absolutely yes, even CC works fine.
    I have most of the Adobe suite on mine.  Works perfect.

  • Can you run programs from time capsule? IE can I run microsoft office from it?

    can you run programs from time capsule? IE can I run microsoft office from it?

    Yes, probably can.. but it won't be fast. You are better storing programs locally and data remotely.

  • If you already bought the windows version of office (Microsoft, Powerpoint...) can you run it on the macbook pro? Please help.

    Can you run the windows version of Office 2010 on a macbook pro? please answer back.

    Yes, if you use Boot Camp to run Windows on your Mac, Microsoft Office 2010 will be able to run without any issues. If you want to run Microsoft Office from within Mac OS X, you would need to purchase Microsoft Office for Mac.
    Hope that helps, have a great day.

  • Can you run two separate vi's in parallel

    Can you run two seperate Vi's in parallel? Will this make response considerably slower? 
    Solved!
    Go to Solution.

    eugeniap wrote:
    Hi, what more detail is needed? They are two entirely seperate independent vi's with no shared sub vis.
    I just wanted to know if you can run two independent vi's at the same time, as in just have two seperate programs and run them.
    Separate isn't the same as independent.  That's why they wanted more information. 
    Your second question asked about slowed response.  That's another place you didn't offer anywhere near enough information for a true answer.  How many loops are you running in each of these independent VIs?  How many cores does your processor have?  Are you including a 0ms wait in your loops to avoid railing your processor?
    It's possible you'll see such a negligible change in processing that you won't notice.  It's also possible you'll feel like you're draining your system.  It's generally best to err on the side of too many details rather than too few when you're asking questions.  If you don't know the answer, you likely don't know how each piece plays a part in the answer.  More information allows others to pick out the relevant pieces and give you a better answer.

  • Can you run indesign cs4 on a laptop without internet connection

    I believe that Indesign CS4 checks over the internet before opening. If that is the case can you run it on a laptop without an internet connection?
    Thanks
    Ian

    From an earlier post by Nicolas Mertens:
    "here's what I got from Customer Services about this problem:
    [Help] files are located in the following location:
    C:/Program Files/Common Files/Adobe/Help/en_us/InDesign/6.0. Also
    from that location, you can launch the file 'index.html' and this
    should direct you to *the online help that you would access through
    the program itself.*"
    I found that the files are not at that location, but at C:/Program
    Files/Common Files/Adobe/Help/en_GB/InDesign/6.0 (this is in Windows
    Vista, by the way). "
    Yours would presumably be at [the German equivalent of
    ..]/de-DE/InDesign6.0, or whatever your locale is (AT, CH...)
    Noel

Maybe you are looking for

  • ITunes 11 / 64 bit and windows 8 / 64 bit

    syncronisation of apps failed ! jump from step 4 to 5 without any action and error messages. please help

  • Drag and Drop to tabs no longer works in IE11

    I just upgraded to Windows 8.1 with IE11, and I can no longer drag and drop links onto existing tabs. Why was this removed? That was one of the most useful features of tabbed browsing.

  • Connecting MiFi 5510L to wireless printer?

    The old MiFi (4510) connected just fine. The new one (5510L) has apparently not got the ability to go into either "WiFi Protected Access" or "AOSS," which are the two standardized access modes for wireless printers (a Brother HL-2270DW). Has anyone h

  • Install Acrobat XI, but the licence screen is blank & wont click accept

    Just install Acrobat XI from my cloud account, and all installed ok, but when i try to start it, it comes up with a licence agreement screen, which is blank. I cant click on accept as its doesnt work, only cancel which then closes software. On mac, O

  • My e4200 as a local dns server

    Hi,  i'm trying to find out whether my e4200 has the possibility to be a local DNS server and if so, how I can configure it. As it is right out of the box, i cant ping any of my local machines on DNS.  Any ideas? thanks!