Is there a listener fired when coherence client reads cache?

Hello,
we have to check (in coherence grid) if we can return certain object from cache for given user.
For example he creates filter that will return all cities for given country. But according to user rights - we can't show him cities with population higher than 1 milion. That objects should not be even transferred from coherence to client application.
How can we achieve such a filtering/security in coherence? (we have milions of objects in caches and we need to do it on coherence side due to performance)
Best Regards
Jarek

Hi,
For your information, we have integrated FCKEditor (CKEditor's ancestor) into an ADF 11g application.
I know it is very different from CKEditor, but we have been forced to create our own JSF component and made several hooks to the framework to make it behave like desired.
One of the problem we have faced is the lost of the input values when partial submit was performed on the editor isntance.
Just so you know it might be real hard to integrate the component without creating a JSF component.
Regards,
JP

Similar Messages

  • Is there a way for a form field to show a name when the client sees it, but have the name disappear

    My client needs a PDF with fields. It's a letter. They want the areas for the header - names/addresses/company name/date, etc. to be variable, but when THEIR client looks at it, they want them to know what the field is. So they want the field labeled. But when the client then types in the field, they want that label to disappear.
    This one has me stumped! Thanks!

    In a text field, use Options > Default value. The user will have to delete what you write there when entering new text, or you'll get both.

  • When Coherence security is enabled there is a significant performance hit

    When Coherence security is enabled, every call to do the cache operation do a security check. This is negatively impacting application's performance. I'm using the built in DefaultController & java keystore login. Is there any workaround so that the performance can be improved.

    Hi user9980369
    It depends how you have implemented security. What version of Coherence are you using?
    JK

  • ***Is there any listener which trigger the method when KEYUP?

    Hi,
    Is there any listener which can trigger the backingBean method when KEYUP!!!!
    Basically, I got 2 input box in the UI where the 2nd box getting enabled when user enters some value in the first box and tab out. I am doing this via valueChangeListener which has attached with first inputBox. But now I want to enable the 2nd input box as soon as the user start enter the value in the first box, how to do this plz..
    thanks
    kln

    Hi klogube,
    If you want to call method in backingbean from javaScript you should use both clientListener And serverListener as:
    1- Add clientListener inside your inputText as :
    <af:clientListener type="KeyUp" method="keyUp"/>2- write javaScript function as :
    <af:resource type="javascript">
        function keyUp(event) {
           var source = event.getSource();
           AdfCustomEvent.queue(source,"callServerListener", {}, false);
    </af:resource>3-Add serverListener inside your inputText as :
    <af:serverListener type="callServerListener" method="#{backingBeanScope.txnBean4.keyUpMethod}"/>Your InputText will be like:
    <af:inputText label="Label 1" id="it1">
          <af:clientListener type="KeyUp" method="keyUp"/>             
          <af:serverListener type="callServerListener" method="#{backingBeanScope.txnBean4.keyUpMethod}"/>
    </af:inputText>4- The java method:
    public void keyUpMethod(ClientEvent event){
    // do whatever u want
    }Sameh Nassar

  • Is there any listener when leaving the page?

    Hi,
    I use JDev 11g,
    I use this
    *((DCIteratorBinding)this.getBindings.get("MyIterator1")).getViewObject().getApplicationModule().getTransaction.isDirty();*
    to know if there is a change happen in database or not
    I want to check this change when I leave the page.Where can I write this code? Is there any listener when leave the page or not?
    Thank You.
    Sameh Nassar

    Thank You Sireesha,
    I make a class which implements interface PhaseListener and implement 2 methods (beforePhase and afterPhase).
    then I write
    <lifecycle>
    <phase-listener>MyClass</phase-listener>
    </lifecycle>
    in faces-config.xml file
    thank you.
    Sameh Nassar

  • I purchased music on my ipod touch4 but it's not in my itunes library when i went there to listen to it

    i purchased music on my ipod touch4 but it's not in my itunes library when i went there to listen to it

    azmama3 wrote:
    I have purchased music on my ipod touch but it doesnt show in my itunes library on my computer.... please help
    With your iPod connected to your computer and iTunes running, select your iPod form the left pane, click the File menu in top bar, from there select "transfer purchases from iPod"
    Stedman

  • Is there a way of getting Coherence to run without starting up a cluster?

    It's painful to run unit-tests against Coherence because I can't find a way of configuring it with a simple local in-memory scheme, but still get to test features requiring custom POF types, etc..
    I have implemented the advice here: http://coherence.oracle.com/display/COH35UG/Setting+Single+Server+Mode
    But it still seems far too slow when you are used to unit tests taking milliseconds- and things seem to have got slower with Coherence 3.5.
    Are there any plans to allow disabling of the TCMP/clustering layer? This would greatly improve the product in my opinion.

    You can set the "<join-timeout-milliseconds>" (on [<multicast-listener>|http://coherence.oracle.com/display/COH35UG/multicast-listener]) to the lowest possible number. Make sure to remember to set it to the recommended value when you want to start testing in a cluster again.
    Rob
    :Coherence Team:

  • Why tcp closed by peer when trying to read msg after the successful Listen?

    Hi everyone,
    I had trouble to read data after Listen function return a good connection ID. The embedded application is running in ARM processor and I build a PC application with Labview to read the device status via TCP connecion. There are required two TCP connections between embedded application and PC application with specific port to listen on each side. After exchange port number by UDP message, both sides know the destination port to send msg. I can send request to embedded apllication in one TCP connection then listen to other TCP connection for reply. By monitroing the traffic of network card, I can see the successful TCP open sequence and in coming reply data, but Labview application shows error 66 "network connection closed by peer" when trying to read data, which is quite strange. I already see those data with network monitor tool, such as wire shark.
    Did anybody experience the similar problem? and provide some suggestion? Is it problem of configuration of Labview? windows XP? I am using Labview 6.1.
    Thanks
    Lei
    Solved!
    Go to Solution.

    LeiJ wrote:
    Thanks Mike,
    The problem was solved. It is timing issue. There is another while loop in code which sends heartbeat UDP message regularly for ervry 10 seconds, and this cause the problem of TCP read function. If I stop or remove this thread of while loop, the read function works fine. The UDP heartbeat message is only need to use once at first beginning to broadcast port number when setup TCP connection. Possibly I can send the heartbeat somewhere esle. I think the TCP error code 56 (timeout) and 66 (network connection closed by peer) is not distinguished in TCP read function. Thank you for reply and suggestion.
    Regards
    Lei
    Actually LabVIEW distinguish between these errors very specifically. If you get an error 66 the connection was closed for sure, either explicitedly by the peer of implicitedly by the TCP IP stack after loosing the connection for to long such as when the Ethernet card would be disabled.
    The issue most likely is that your client after sending back an open-package expects a specific response in a specific amount of time and closes the connection down if it does not get a valid response. Seems like a good measure to try to minimize the resources on your embedded target that need to be allocated when a badly behaving client is looping in a connection attempt.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Coherence Client without POF classes problem

    I have a special Coherence client node that will be performing cache invalidation tasks only. namedCache.keySet().remove( removeKey ); I will never actually send or deserialize the objects to this node.
    This node has no need to have to have the classes related to POF on it, and I really never want to have to update/perform maintenance on this node when updates are made to the classes on the actual cache nodes.
    Is there any way I can setup/configure this node so that in its coherence-cache-config, I am not required to provide the serializer config or not have to provide the classes behind the serializer?
    When I attempt to do this, Coherence complains that this node's is configured to use serializer com.tangosol.io.pof.ConfigurablePofContext which appears to be different from the serializer used by other members.
    If I set the serializer, it then complains that the ClassNotFound if I dont place all the classes on this special invalidator node.
    Please help!!! I dont want this special client to have to have all the POF details and classes!!!! He will never need it.
    Thanks,
    J
    Edited by: user12017793 on Sep 11, 2011 9:27 PM

    I'm not sure it is that messy.
    1. The custom client side serializer
    package com.gridman.test;
    import com.tangosol.io.ReadBuffer;
    import com.tangosol.io.WriteBuffer;
    import com.tangosol.io.pof.ConfigurablePofContext;
    import com.tangosol.io.pof.PofBufferReader;
    import com.tangosol.io.pof.PofBufferWriter;
    import com.tangosol.io.pof.PofContext;
    import java.io.IOException;
    public class PassThroughPofContext extends ConfigurablePofContext {
        public PassThroughPofContext(String sLocator) {
            super(sLocator);
        @Override
        public void serialize(WriteBuffer.BufferOutput out, Object o) throws IOException {
            try {
                if (o instanceof PassThrough) {
                    PassThrough passThrough = (PassThrough)o;
                    out.writePackedInt(passThrough.getType());
                    out.writeBuffer(passThrough.getValue());
                } else {
                    PofBufferWriter writer = new PofBufferWriter(out, this);
                    writer.writeObject(-1, o);
            } catch (RuntimeException e) {
                throw new IOException(e.getMessage(), e);
        @Override
        public Object deserialize(ReadBuffer.BufferInput in) throws IOException {
            try {
                Reader reader = new Reader(in, this);
                return reader.readObject(-1);
            } catch (RuntimeException e) {
                throw new IOException(e.getMessage(), e);
        @Override
        public int getUserTypeIdentifier(Object o) {
            int id;
            if (o instanceof PassThrough) {
                id = ((PassThrough)o).getType();
            } else {
                id = super.getUserTypeIdentifier(o);
            return id;
        private boolean isUserType(int type) {
            ensureInitialized();
            Class[] types = this.getPofConfig().m_aClzByTypeId;
            return types.length > type && types[type] != null;
        private class Reader extends PofBufferReader {
            private Reader(ReadBuffer.BufferInput in, PofContext ctx) {
                super(in, ctx);
            @Override
            protected Object readAsObject(int nType) throws IOException {
                Object value;
                if (((PassThroughPofContext)this.m_ctx).isUserType(nType)) {
                    value = super.readAsObject(nType);
                } else {
                    value = new PassThrough(nType, this.m_in);
                return value;
    }2. The class that will be used to hold anything that the serializer does not know how to handle
    package com.gridman.test;
    import com.tangosol.io.ReadBuffer;
    import java.io.IOException;
    public class PassThrough {
        private int type;
        private ReadBuffer value;
        public PassThrough(int type, ReadBuffer.BufferInput in) throws IOException {
            this.type = type;
            this.value = in.readBuffer(in.available());
        public int getType() {
            return type;
        public ReadBuffer getValue() {
            return value;
    }3. The client cache config
    <cache-config>
        <caching-scheme-mapping>
            <cache-mapping>
                <cache-name>*</cache-name>
                <scheme-name>proxy</scheme-name>
            </cache-mapping>
        </caching-scheme-mapping>
        <caching-schemes>  
            <remote-cache-scheme>
                <scheme-name>proxy</scheme-name>
                <service-name>extend-service</service-name>
                <initiator-config>
                    <tcp-initiator>
                        <remote-addresses>
                            <socket-address>
                                <address>... put host name here ...</address>
                                <port>10000</port>
                            </socket-address>
                        </remote-addresses>
                    </tcp-initiator>
                    <serializer>
                        <instance>
                            <class-name>com.gridman.test.PassThroughPofContext</class-name>
                            <init-params>
                                <init-param>
                                    <param-type>String</param-type>
                                    <param-value system-property="tangosol.pof.config">coherence-pof-config.xml</param-value>
                                </init-param>
                            </init-params>
                        </instance>
                    </serializer>
                </initiator-config>
            </remote-cache-scheme>
        </caching-schemes>
    </cache-config>The above code and config is all you need. Everything below here is to test it.
    To test it we just convert a class to Binary and back again using the server and client serializers E.G.
    A simple POF class to test with - this would only be on the server side
    package com.gridman.test;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    import com.tangosol.io.pof.PortableObject;
    import java.io.IOException;
    public class TestPortableObject implements PortableObject {
        private String field1;
        private int field2;
        public TestPortableObject() {
        public TestPortableObject(String field1, int field2) {
            this.field1 = field1;
            this.field2 = field2;
        @Override
        public void readExternal(PofReader pofReader) throws IOException {
            field1 = pofReader.readString(1);
            field2 = pofReader.readInt(2);
        @Override
        public void writeExternal(PofWriter pofWriter) throws IOException {
            pofWriter.writeString(1, field1);
            pofWriter.writeInt(2, field2);
        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            if (o == null || getClass() != o.getClass()) {
                return false;
            TestPortableObject that = (TestPortableObject) o;
            if (field2 != that.field2) {
                return false;
            if (field1 != null ? !field1.equals(that.field1) : that.field1 != null) {
                return false;
            return true;
        @Override
        public int hashCode() {
            int result = field1 != null ? field1.hashCode() : 0;
            result = 31 * result + field2;
            return result;
    }The test server side server-pof-config.xml file
    <pof-config>
        <user-type-list>
            <include>coherence-common-pof-config.xml</include>
            <user-type>
                <type-id>1000</type-id>
                <class-name>com.gridman.test.TestPortableObject</class-name>
            </user-type>
        </user-type-list>
    </pof-config>Now our test code...
    package com.gridman.test;
    import com.tangosol.io.pof.ConfigurablePofContext;
    import com.tangosol.util.Binary;
    import com.tangosol.util.ExternalizableHelper;
    public class Main {
        public static void main(String[] args) {
            // Create an instance of our test PortableObject
            TestPortableObject testPortableObject = new TestPortableObject("testing...", 1234);
            // This is the server side serializer that uses the server side POF config
            ConfigurablePofContext pofContext = new ConfigurablePofContext("server-pof-config.xml");
            // This is the custom client side serializer that just uses the Coherence pof config
            PassThroughPofContext passThroughPofContext = new PassThroughPofContext("coherence-common-pof-config.xml");
            // Serialize our test instance using the server side serializer
            // This would be equivalent to a Binary that would have been sent from the server to the client
            Binary binaryFromServer = ExternalizableHelper.toBinary(testPortableObject, pofContext);
            // Deserialize the binaryFromServer using the client side serializer
            // Just as if the client had recieved this over the wire from the server
            PassThrough passThrough = (PassThrough) ExternalizableHelper.fromBinary(binaryFromServer, passThroughPofContext);
            // Serialise the PassThrough to Binary using the client side serializer
            // as though we are sending the value back over the wire to the server
            Binary serializedPassThrough = ExternalizableHelper.toBinary(passThrough, passThroughPofContext);
            // Deserialize back to an Object using the server side serializer
            TestPortableObject result = (TestPortableObject) ExternalizableHelper.fromBinary(serializedPassThrough, pofContext);
            // The result should be equal to the original testPortableObject
            System.out.println("Result: " + testPortableObject.equals(result));
    }running the above code should print out: Result: true
    This was put together pretty quickly so I'm sure people will comment if I have missed anything.
    JK

  • How to stop and start listener auto. when database is open and shutdown?

    Hi,
    is there a way, in Window , i can shutdown the listener service when the database is shutdown (the rdbms service still up) and startup the listener when the database is open?
    Thanks

    Ron_B wrote:
    In simple way,
    when the window rdbms service is runing and the database is in shutdown or stop state, the listener have to be stop.
    The listener have to be start only when the database pass from nomount to mount.With mentioning the fact that there is abosultely no such dependency between listener and database, I am really curious to know that why you want to do it? Listener is merely a process and even if its running, there is no such harm or resource consumption it would do that you need to shut it down as and when db would be.
    HTH
    Aman....

  • Listener for when a video reaches its end?

    Almer Blank put this tutorial out awhile ago: http://www.adobe.com/devnet/flash/articles/video_osmf/popup08.html
    It depicts how to determine if a video has reached the end. It looks like the TraitEvent doesn't exist anymore. Is there a listener to can attach to the MediaPlayer to determine when the video has played out its entire duration?

    Duh! Problem Resolved.
    mediaPlayer.addEventListener(TimeEvent.COMPLETE, onComplete);
    I overlooked this previously cuz I thought it said TimerEvent...

  • When Instant Client for AIX 5L 32 and HP-UX PA-RISC 32 are released?

    Does anyone know when Instant Client for AIX 5L 32 might be release?
    and also, Instant Client for HP-UX PA-RISC 32 ?

    There isn't much to check. This is the Instant Client and it was downloaded specifically for the 32-bit PA-RISC platform. The "documentation" simply says I should set the "LD_LIBRARY_PATH" environment variable to include the directory where I unzipped the files. It is obviously looking at the libraries when I load my application, otherwise I would get a different type of error message along the lines of "missing Oracle client". FYI, This is not one of the newer 8x00 chips which support 64-bit addressing, but that is the point of the 32-bit option. I assumed this was compiled for my platform (which more specifically is an HP PA-RISC 7300LC 160MHz processor with 768MB RAM). I know this isn't the most modern box, but I would like to have a simple lab environment for my ERP application and save the hassle and additional expense of aquiring a 64-bit compatible workstation. I figure what I have works well with my application, and there is no 9i 32-bit client...so why not try the 10g Instant Client which should be backwards compatible with my database. BTW, the database is not running on this box, it's on a remote server which does support 64-bit and happens to be running Oracle 9.2.0.4.

  • Can Creative Cloud alert me when a client leaves a comment on uploaded / sync'd artwork?

    As above really, Can Creative Cloud alert me when a client leaves a comment on uploaded / sync'd artwork? When clients comment on files at the moment I get no notification of the comment I have to check the files manually which is an extra step in our work flow and not ideal.
    Thanks
    Jase

    Lucidcreationcouk, This feature is currently not available, however I guess, it is already posted as an enhancement request here.
    http://forums.adobe.com/community/creative_cloud?view=idea
    If there are more idea's that you want to put up, please post up there, we would love to hear.
    - Nitin

  • IOException when remote client goes down in Linux

    Hello all -
    This my first post here. I have ran into a bit of an issue with some code I have written. I have written a small client/server application that works on the premise that if the remote application ends, the socket will be broken, and an IOException will be thrown. I then catch the IOException and then end the particular thread associated with that socket. This works fine in Windows, but when I kill the remote application in Linux, an IOException is never thrown on the server, it's as if the socket is still there even tho the application ended. I'm thinking there is something different that happens when I kill a process in Linux vs Windows. I have tried using the SIGINT, and SIGTERM switches for kill but they made no difference. Does anyone have any idea, admittedly I am a Linux noob, thanks!
    -Kam

    If the server is reading when the client goes down it won't get an IOException, it will get an EOS condition: read() returns -1, readLine() returns null, readXXX() for any other X throws an EOFException.

  • How do you passivate/remove a bean when the client has crashed ?

    Hi,
    I'm trying to figure out how to deal with a 'hanging' stateful bean. The problem arises when a client is killed abruptly, while the bean is in the middle of a transaction. The result is that the bean stays active in cache, and doesn't get removed or passivated. I've tried changing various timeout settings, but none of them seem to do the trick.
    Using stuckthreadmaxtime works (sometimes) in reporting the event, but I don't see how to make it do anything useful after that.
    How can I get weblogic to remove beans that have been in memory over a certain amount of time, regardless of their state of activity ? And is there some way of doing this that would call the bean's passivate/remove function so I can include a call to roll transactions back ?
    Thanks,
    Leif

    Well, I believe SFSB are pinned in the cache while they actively in a transaction.
    I believe the default tx timeout is 30 seconds. Did you increase that value?
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

Maybe you are looking for