How to detect a -1 in while reading data from socket

Hi
Am faced with a problem in socket reading
Whenever I try to read any data from a socket and I encounter a -1, I assume that the steam has reached End of File and close that connection. This logic was introduced overcome a problem of connection getting closed from the server and the client connection hanging in CLOSE_WAIT state.
Now the problem if the server sends a -1 as part of the data, how do I differenciate between -1 to indicate the End of stream and -1 in the actual data
thanks in advance
jcool

As dannyyates states, the possible return values for read() are a single byte (0..255) or an end of stream (-1), so you have 257 total possible values there. If the other side wrote a byte equal to -1 from its perspective, you would receive a 255 in Java (since both are represented 11111111 in binary - one is interpreted as signed and one is interpreted as unsigned). Your return value from read is between 0x00000000 and 0x000000FF (hex) since read() returns an int (32 bits) rather than a byte (8 bits) and EOF is returned as 0xFFFFFFFF.
Honestly, though, you might just consider using the read(byte[]) method where appropriate. It is much more efficient for reads of more than one byte at a time; it reads a bunch of bytes into an array. Its return value is how many bytes it read, with -1 indicating EOF.

Similar Messages

  • How can I join 3 tables while extracting data from SAP R/3?

    I have 3 tables with the following columns
    Emp table (emp)
      emp_id
      emp_name
      emp_add
    Dept table (dept)
      dept_id
      dept_name
      dept_loc
    Location table (loc)
      loc_id
      loc_name
    Now. If I want to select data from loc_id = 10 and emp_id between 2000 and 3000
    How to join these three tables while extracting data from R/3
      join condition
       loc.loc_id = dept.loc_id
    and dept.dept_id = emp.dept_id
    and loc.loc_id =10
    and emp.emp_id between 2000 and 3000.
    Could any one let me know the procedure to extract this data into BW system.

    Hi,
    shouldn't your join condition be:
    loc.loc_id = dept.DEPT_LOC
    and dept.dept_id = ??
    If you can join the three tables then create a generic datasource (RSO) based on a view (create your view with your join in SE11).
    Enable the loc_id and the emp_id as selectable in the datasource so you can then select the values from a BW IPack.
    hope this helps...
    Olivier.

  • Error 65575: overrun error while reading data from NI 9871

    Hello everyone,
    I am new here. I configured NI 9871 in RS-485 mode to acquire data from a sensor at the data rate of 8 samples per second. While reading data from sensor, sometimes I got the error 65575: "An overrun error has occurred in the data being read. Ensure that the module Flow Control is configured correctly." I didn't understand the error, how can I fix it, what dose the flow control means.
    I will be very thankful if anybody help me to fix this error.
    Thanks
    Wasif

    Hello Wasif,
    The error you are getting presents itself when the hardware buffer is full and new data is coming in. Data buffer is 64 bytes. One thing to try is to clear the RX FIFO after every read. Please refer to the following link that talks about the method.
    http://zone.ni.com/reference/en-XX/help/370984R-01/lvaddon11/crio-9871/
    Hope this help you solve the issue.
    Regards
    Luis S
    Application Engineer
    National Instruments

  • Problem while reading data from Serial Port

    Hi All,
    I am facing some problem while reading data from Serial Port.
    As per the requirement I am writing the data on Serial Port and waiting for response of that data.
    Notification for data availabilty is checked with method public void serialEvent(SerialPortEvent event) of javax.comm.SerialPortEventListener.
    When we are writing data on the port one thread i.e. "main" thread is generated and when data availability event occures another thread "Win32SerialPort Notification thread" is generated. This creates problem for me as we can't control thread processing.
    So can anybody pls explain me how to overcome this problem?
    Regards,
    Neha

    My Problem is:-
    I am simoultaneouly wrting data on port & reading data from port.
    First I write data on port using outputStream.write() method. Now when target side sends me response back for the request on serial port DATA_AVAILABLE of SerialPortEventListner event occured,we are reading data from serial port.Now till the time we didn't get the response from target next command can't be written on the serial port. When we are writing data on port main thread is executed.Now my problem starts when DATA_AVAILABLE event occured.At this point another thread is created.Due to this my program writes data of next command without reading response of previous command.To solve this prob. I have used wait() & notify() methods as follows.But again due to this my pc hangs after execution of 2 commands. (PC hang in while loop in a code provided below.)
    From SOPs I could figure it out that after 2 commands we are not able to write data on serial port so DATA_AVAILABLE event doesn't occure n pro. goes in wait state.
    Can anybody help me to solve this issue.
    Neha.
    Code:
    public void serialEvent(SerialPortEvent event)
              switch (event.getEventType())
                   case SerialPortEvent.BI:
                   case SerialPortEvent.OE:
                   case SerialPortEvent.FE:
                   case SerialPortEvent.PE:
                   case SerialPortEvent.CD:
                   case SerialPortEvent.CTS:
                   case SerialPortEvent.DSR:
                   case SerialPortEvent.RI:
                   case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
                                 break;
                   case SerialPortEvent.DATA_AVAILABLE:
                        try
                             dataThread = Thread.currentThread();
                             dataThread.setPriority(10);
                             dataAvailable = true;
                                                                                    byte[] tempArray=new byte[availableBytes];
                                        inputStream.read(tempArray);
                                                                       catch (IOException io)
                             SOP(io, "Error in serialEvent callback call for event DATA_AVAILABLE");
    public void  writetoPort(byte[] data) throws IOException
                             outputStream.write(data);
                              while(finalTimeOut >= actualTime)
                            if( ! dataAvailable)
                                    actualTime = System.currentTimeMillis();
                           else
              synchronized (mainThread)
                   mainThread = Thread.currentThread();
                   mainThread.wait();
    public  void sendDatatoUser(byte[] b) throws Exception, HWCCSystemFailure
              obj.returnData(b);
              synchronized(mainThread)
                   mainThread.notify();
                                                           

  • Error when reading data from socket

    Hi,
    I am getting the error 'NiRawReadError: An error occured when reading data from socket.' when using the ABAP API  'mo_core_service->invoke_matching'.
    And I get this error only when I pass ABAP_TRUE to the paramter 'iv_wait_for_invocation' .
    Can anybody help me in correcting this?

    Hi Narasa,
    The following error is already in discussion in the below forum.Plz consult the forum link you will find the error solution.
    Problem in ABAP API - NiRawReadError: error when reading data from socket
    Rgds
    Ankit

  • Problem while reading data from AL11

    Hi Experts,
    I am using OPEN DATASET
                          READ DATASET
                      CLOSE DATASET  to read data from the application sever. In application sever the file type is .CSV. So after reading data from application layer(AL11) to a text variable,  using statement ' SPLIT AT ','  ' all the values passing into correspoding internal table fields. And it getting updated successfully into DB also.
    In above scenario my question is, if aquantity figure with coma seperator( 95,000,000.000), then while SPLIT it's creating problem. Same case in .XLS file, it will be created # seperator in the application layer. if any field having # then it will create problem again.
    So can anybody suggest how can we over come the problem. Or is there any other way to read data properly from application layer(AL11)?
    Thanks and regards,
    Phani.

    to overcom this problem,
    normally we use tab as sparator
    so use CL_ABAP_CHAR_UTILITIES=>VERTICAL_TAB  to separate your fields!
    grx
    Andreas

  • Error while reading data from MapMessage using MDB

    Hi,
    I have written a small client program to send a message to a queue and an MDB receives the message in the onMessage() method. The message is of type MapMessage. I set key value pairs and send the message in a queue. When I try to read data from MapMessage inside onMessage() method of MDB, I get an exception:-
    javax.jms.MessageNotReadableException: In write mode
    When I send the message, by default the readonlymode is false. How do I set the mode to readonly exclusively in case of MapMessage ?
    Sirisha

    Hi,
    I do not have any problem with TextMessages...I works fine..It is only with MapMessage that I am not able to read the values..Before sending the message, the message has the flag "readMode" set to false by default by the server...R there any configurations to be made to any files like web.xml or server.xml or jms.xml ?
    I am running my JMS application on JDeveloper IDE that has an in-built OC4J server which supports JMS.

  • How can we improve the performance while fetching data from RESB table.

    Hi All,
    Can any bosy suggest me the right way to improve the performance while fetching data from RESB table. Below is the select statement.
    SELECT aufnr posnr roms1 roanz
        INTO (itab-aufnr, itab-pposnr, itab-roms1, itab-roanz)
        FROM resb
        WHERE kdauf  = p_vbeln
        AND   ablad  = itab-sposnr+2.
    Here I am using 'KDAUF'  & 'ABLAD' in condition. Can we use secondary index for improving the performance in this case.
    Regards,
    Himanshu

    Hi ,
    Declare intenal table with only those four fields.
    and try the beloe code....
    SELECT aufnr posnr roms1 roanz
    INTO  table itab
    FROM resb
    WHERE kdauf = p_vbeln
    AND ablad = itab-sposnr+2.
    yes, you can also use secondary index for improving the performance in this case.
    Regards,
    Anand .
    Reward if it is useful....

  • Problem while reading data  from USB with JSR80

    Hi
    Iam using Fedora 9 with 32 bit.
    Iam using JSR80 api to read the data from USB devices.
    I successfully set-up the code as per given on JSR80 site on my eclipsce ide.
    below is my code which iam using to read data from usb
    import com.ibm.jusb.*;
    import java.util.List;
    import javax.usb.*;
    import java.util.List;
    public class USBReader {
    public static  UsbInterface interf = null;
         public static void main(String[] args) {
              try
            {// Access the system USB services, and access to the root
             // hub. Then traverse through the root hub.
               System.out.println("Application started");
             UsbServices services = UsbHostManager.getUsbServices();
             UsbHub rootHub = services.getRootUsbHub();
             traverse(rootHub);
             testIO(rootHub);
            } catch (Exception e) {
                 System.out.println("The Exception occured"+e.getMessage());
          public static void traverse(UsbDevice device){
               System.out.println("Iam in traverse ");
               if (device.isUsbHub()){  
                    // This is a USB Hub, traverse through the hub.
                    System.out.println("The device is hub");
                    List attachedDevices = ((UsbHub) device).getAttachedUsbDevices();
                    System.out.println("The attached devices size:"+attachedDevices.size());
                    for (int i=0; i<attachedDevices.size(); i++){
                         traverse((UsbDevice) attachedDevices.get(i));
                    if(attachedDevices !=null){
                         for(int j=0;j<attachedDevices.size();j++){
                              System.out.println("The device is"+attachedDevices.get(j));
           else{
              // This is a USB function, not a hub.
              // Do something.
                System.out.println("The device is not hub");
          public static void testIO(UsbDevice device) throws UsbClaimException, UsbNotActiveException, UsbDisconnectedException, UsbException{
               System.out.println("Iam in testIO");
              try{
                 // Access to the active configuration of the USB device, obtain
                 // all the interfaces available in that configuration.
                 UsbConfiguration config = device.getActiveUsbConfiguration();
                 List totalInterfaces = config.getUsbInterfaces();
                 System.out.println("The Total interfaces: "+totalInterfaces.size());
                 // Traverse through all the interfaces, and access the endpoints
                 // available to that interface for I/O.
                 for (int i=0; i<totalInterfaces.size(); i++){
                    interf = (UsbInterface) totalInterfaces.get(i);
                    System.out.println("The interfaces are "+totalInterfaces.get(i));
                    String strinf=interf.getInterfaceString();
                    System.out.println("Claimed Status: "+interf.isClaimed());
                    System.out.println("Active status : "+interf.isActive());
                    System.out.println("Settings :"+interf.getNumSettings());
                    //interf.release();
                    interf.claim();
                    List totalEndpoints = interf.getUsbEndpoints();
                    for (int j=0; j<totalEndpoints.size(); j++){
                       // Access the particular endpoint, determine the direction
                       // of its data flow, and type of data transfer, and open the
                       // data pipe for I/O.
                       UsbEndpoint ep = (UsbEndpoint) totalEndpoints.get(i);
                       int direction = ep.getDirection();
                       int type = ep.getType();
                       UsbPipe pipe = ep.getUsbPipe();
                       pipe.open();
                       // Perform I/O through the USB pipe here.
                       pipe.close();
                    interf.release();
              } catch (Exception e) {
                   System.out.println("Exception in TestIO"+e.getMessage());
                   e.printStackTrace();
    }When i execute the above code i get the following exception
    Exception in TestIOCannot claim an interface on a virtual root hub.
    javax.usb.UsbException: Cannot claim an interface on a virtual root hub.
         at com.ibm.jusb.VirtualRootUsbHubImp$VirtualRootUsbInterfaceOsImp.claim(VirtualRootUsbHubImp.java:143)
         at com.ibm.jusb.os.DefaultUsbInterfaceOsImp.claim(DefaultUsbInterfaceOsImp.java:54)
         at com.ibm.jusb.UsbInterfaceImp.claim(UsbInterfaceImp.java:109)
         at com.ibm.jusb.UsbInterfaceImp.claim(UsbInterfaceImp.java:83)
         at USBReader.testIO(USBReader.java:60)
         at USBReader.main(USBReader.java:15)iam not getting the clue for it .

    Cannot claim an interface on a virtual root hubSo don't do that? I have no idea how to tell, but clearly you need to test a few more attributes before you claim. Or else just log the claim error and continue with the next interface.

  • How to use the readLine()  method when reading data from a URL?

    Hello,
    I have a URL which contains text input.
    The only way to get the data from this URL is by opening a URL connection to it.
    I would like to get the data from this URL but at the same time I would like to be able to use readLine() method of BufferedReader in order to read the data line by line.
    My question is how do I combine between these two requirements in order to reed the data from the URL?
    Roy

    Hello Roy,
    can you try out this code.
      URL yahoo = new URL("http://www.yahoo.com/");
            URLConnection yc = yahoo.openConnection();
            BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    yc.getInputStream()));
            String inputLine;
            while ((inputLine = in.readLine()) != null)
                System.out.println(inputLine);
            in.close();
    Regards,
    Mohan R

  • Reading data from socket problem

    Hello;
    I have implemented a multiplayer game with server java and client flash. I have a socket connection and I get(wait) an encripted data from server. However sometimes I can't get data from server. I know that server is sending the data but I can't see the data on the socket.
    Sometimes I cannot get the data in one chunk but I have solved that problem(I hope).. Here is my code:
    private function onSocketData(event:ProgressEvent = null) {
         try {
              var input:String = "";
               var  byteArray = new ByteArray();
              socket.readBytes(byteArray, 0, socket.bytesAvailable);
               input+= byteArray.toString();
              queueOrg.addToMsgQueue(input);
         } catch (error:Error) {
              trace("SocketConnector -> onSocketData : "+error);
    Thanks...

    And don't use ready() or available as a test for end of stream like that. That's not what it's for. (What is is for is a moot question.) Using it like that is a recipe for losing data.

  • Reading data from socket into buffer

    Hi all,
    I'm reading packets of data from a socket, and i want to store it into a buffer array.
    I don't know the packet length, which means i can't really specify the buffer length.
    Is there anyway to get around this?
    Thanks,
    Hugh

    Have a look at BufferedOutputStreamHTH.
    Yu SONG

  • How to ignore a node while reading data from XML file

    Hi All,
    I have a XML file that i am reading that XML file using XMLStreamReader and then i need to create another XML file that has specific nodes(from the database).
    I need to ignore nodes(with values) that are not in the database and while creating the XML file, only nodes that are it the database should be written in the new file.*
    For eg.
    <XML>
    <Stud>
    <Name>XYZ</Name>
    <Roll>1</Roll>
    <Class>1</Class>
    </Stud>
    <Stud>
    <Name>ABC</Name>
    <Roll>2</Roll>
    <Class>1</Class>
    </Stud>
    </XML>
    In database i have only two node :<Name> and <Roll>.
    So, my new XML will be
    <XML>
    <Stud>
    <Name>XYZ</Name>
    <Roll>1</Roll>
    </Stud>
    <Stud>
    <Name>ABC</Name>
    <Roll>2</Roll>
    </Stud>
    </XML>

    Hi gborges,
    Since you're new to LabVIEW, I thought I would post a few helpful links.  A great way to learn some LabVIEW basics is to look over the introductions --
    Three Hour LabVIEW Introduction Course
    Six Hour LabVIEW Introduction Course
    You might even want to think about signing up for the LabVIEW Basics I & II courses which are taught by Applications Engineers.  You can always search for KnowledgeBases and, of course, you already know about our forums!
    Happy coding,
    Megan B.
    National Instruments

  • Error while reading data from backend system.

    Hi all,
           When i click on personnel information iview i am getting following error
    EIC Authentication   
    An error occurred while data was read from your ERP system. Contact your system administrator.
    I used SQL TRACE and RFC TRACE to find where it got stopped below see the trace result.
                14     PA0105     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "USRTY" = '0001' AND "USRID" = 'ESS_USER1'
               988     PA0105     FETCH         1       1403     
                14     PA0001     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "PERNR" = 90000001 ORDER BY "MANDT" , "PERNR" , "SUBTY" , "OBJPS" , "SPRPS" , "ENDDA" , "BEGDA" , "SEQNR"
               665     PA0001     FETCH         1       1403     
                17     PA0000     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "PERNR" = 90000001 AND "BEGDA" <= 20070622 AND "ENDDA" >= 20070622 ORDER BY "MANDT" , "PERNR" , "SUBTY" , "OBJPS" , "SPRPS" , "ENDDA" , "BEGDA" , "SEQNR"
               615     PA0000     FETCH         1       1403     
                25     PA0001     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "PERNR" = 90000001 AND "BEGDA" <= 20070622 AND "ENDDA" >= 20070622 ORDER BY "MANDT" , "PERNR" , "SUBTY" , "OBJPS" , "SPRPS" , "ENDDA" , "BEGDA" , "SEQNR"
               896     PA0001     FETCH         1       1403     
                16     PA0002     REOPEN               0     SELECT WHERE "MANDT" = '001' AND "PERNR" = 90000001 AND "BEGDA" <= 20070622 AND "ENDDA" >= 20070622 ORDER BY "MANDT" , "PERNR" , "SUBTY" , "OBJPS" , "SPRPS" , "ENDDA" , "BEGDA" , "SEQNR"
               783     PA0002     FETCH         1       1403     
            13.178     ?     Server         1          0     EPSAND1 ? Server HREIC_GET_AUTHENTICATION_ESS 643 309
    What is the solution to solve this problem ?
    Thanks and regards,
    Phanikumar

    Looks like authorization issue. Could you confirm whether proper authorizations have given to this user?
    Also, run the application again get an error and then go to Transaction ST22 and see if there is any system dump for this user.
    Regards,
    Nitin

  • Error while reading data from cache

    Hi,
    I am implementing IPofSerializer for an object of C#. I have successfully written C# object.
    I have also read the first object.
    But when I am going to read the second object's last field which of type boolean it is giving me error:
    System.IO.EndOfStreamException was unhandled by user code
    Message="Unable to read beyond the end of the stream."
    Source="mscorlib"
    StackTrace:
    at System.IO.__Error.EndOfFile()
    at System.IO.BinaryReader.ReadByte()
    at Tangosol.IO.DataReader.ReadPackedInt32()
    at Tangosol.IO.Pof.PofStreamReader.UserTypeReader.AdvanceTo(Int32 index)
    at Tangosol.IO.Pof.PofStreamReader.ReadInt32(Int32 index)
    at Tangosol.IO.Pof.PofStreamReader.ReadBoolean(Int32 index)
    at HyperRig.CachingService.Adapter.POFSerializers.MapMessageFieldPOFSerializer.Deserialize(IPofReader Reader) in D:\Hyper Rig\HyperRig.CachingService.Adapter\HyperRig.CachingService.Adapter.POFSerializers\MapMessageFieldPOFSerializer.cs:line 21
    at Tangosol.IO.Pof.PofStreamReader.ReadAsObject(Int32 typeId)
    at Tangosol.IO.Pof.PofStreamReader.ReadCollection[T](Int32 index, ICollection`1 coll)
    at HyperRig.CachingService.Adapter.POFSerializers.MapMessagePOFSerializer.Deserialize(IPofReader Reader) in D:\Hyper Rig\HyperRig.CachingService.Adapter\HyperRig.CachingService.Adapter.POFSerializers\MapMessageFieldPOFSerializer.cs:line 55
    at Tangosol.IO.Pof.PofStreamReader.ReadAsObject(Int32 typeId)
    at Tangosol.IO.Pof.PofStreamReader.ReadObject(Int32 index)
    at Tangosol.IO.Pof.ConfigurablePofContext.Deserialize(DataReader reader)
    at Tangosol.Net.Impl.RemoteNamedCache.ConverterFromBinary.Convert(Object o)
    at Tangosol.Util.ConverterCollections.ConvertArray(Object[] ao, IConverter conv)
    at Tangosol.Util.ConverterCollections.ConverterCollection.CopyTo(Array array, Int32 index)
    at Tangosol.Util.ConverterCollections.ConverterQueryCache.GetValues(IFilter filter)
    at Tangosol.Util.ConverterCollections.ConverterNamedCache.GetValues(IFilter filter)
    at Tangosol.Net.Impl.RemoteNamedCache.GetValues(IFilter filter)
    at Tangosol.Net.Impl.SafeNamedCache.GetValues(IFilter filter)
    at HyperRig.CachingService.Adapter.OracleCoherence.OracleCoherenceCachingLayer.ReadMultipleBySubjectName(String SubjectName, List`1& ReceivedMessageRecords, Object TransactionObject) in D:\Hyper Rig\HyperRig.CachingService.Adapter\HyperRig.CachingService.Adapter.OracleCoherence\OracleCoherenceCachingLayer.cs:line 444
    at HyperRig.CachingService.Adapter.OracleCoherence.OracleCoherenceCachingLayer.ReadMultipleBySubjectName(String SubjectName, List`1& ReceivedMessageRecords) in D:\Hyper Rig\HyperRig.CachingService.Adapter\HyperRig.CachingService.Adapter.OracleCoherence\OracleCoherenceCachingLayer.cs:line 461
    at HyperRig.DataManager.ETLEngine.DataCacheExtractor.Extract(Object transaction, DataTable& resultingDataTable)
    InnerException:
    I am using Oracle Coherence 3.5.3
    Regards
    Nitin Jain

    Hi Luk,
    Here is the server side config:
    <?xml version="1.0"?>
    <!--
    | Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    |
    | Oracle is a registered trademarks of Oracle Corporation and/or its affiliates.
    |
    | This software is the confidential and proprietary information of
    | Oracle Corporation. You shall not disclose such confidential and
    | proprietary information and shall use it only in accordance with the
    | terms of the license agreement you entered into with Oracle.
    |
    | This notice may not be removed or altered.
    -->
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>ACCOUNT</cache-name>
    <scheme-name>dist-default</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>dist-default</scheme-name>
    <serializer>
              <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
              <init-params>
              <init-param>
                   <param-type>string</param-type>
                   <param-value>custom-types-pof-config.xml</param-value>
              </init-param>
              </init-params>
         </serializer>
    <backing-map-scheme>
    <local-scheme/>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <proxy-scheme>
    <service-name>ExtendTcpProxyService</service-name>
    <thread-count>5</thread-count>
    <acceptor-config>
    <tcp-acceptor>
    <local-address>
    <address>localhost</address>
    <port>9099</port>
    </local-address>
    </tcp-acceptor>
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-type>string</param-type>
    <param-value>custom-types-pof-config.xml</param-value>
    </init-param>
    </init-params>
    </serializer>
    </acceptor-config>
    <autostart>true</autostart>
    </proxy-scheme>
    </caching-schemes>
    </cache-config>
    and client side config is:
    <?xml version="1.0"?>
    <!--
    | Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    |
    | Oracle is a registered trademarks of Oracle Corporation and/or its affiliates.
    |
    | This software is the confidential and proprietary information of
    | Oracle Corporation. You shall not disclose such confidential and
    | proprietary information and shall use it only in accordance with the
    | terms of the license agreement you entered into with Oracle.
    |
    | This notice may not be removed or altered.
    -->
    <cache-config xmlns="http://schemas.tangosol.com/cache">
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>ACCOUNT</cache-name>
    <scheme-name>extend-direct</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <remote-cache-scheme>
    <scheme-name>extend-direct</scheme-name>
    <service-name>ExtendTcpProxyService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address>localhost</address>
    <port>9099</port>
    </socket-address>
    </remote-addresses>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>30s</request-timeout>
    </outgoing-message-handler>
    <serializer>
    <class-name>Tangosol.IO.Pof.ConfigurablePofContext, Coherence</class-name>
    <init-params>
    <init-param>
    <param-type>string</param-type>
    <param-value>Config\pof-config.xml</param-value>
    </init-param>
    </init-params>
    </serializer>
    </initiator-config>
    </remote-cache-scheme>
    </caching-schemes>
    </cache-config>
    Regards
    Nitin Jain

Maybe you are looking for