stupid question on the custom java client

Hello

I came through the api and the user guide and found no answer to my question - if there is a way of
connect a java client customized without having all this stuff of Cache coherence from the customer site? I mean the following:

If you write a client that makes CacheFactory.getCache ("VirtualCache") as described in
user documents, then it looks like you automatically start a node of coherence on the customer site

I tried a few example to check that a "customer" who is CacheFactory.getCache ("VirtualCache") and
com.tangosol.net.DefaultCacheServer executed separately. They share a configuration and function in replication mode:

(1) customer makes data in cache and ends - DefaultCacheServer still has that data
(2) customer is running again and waits, then puts an end to DefaultCacheServer - client keeps data
(3) DefaultCacheServer started and customer cancels - DefaultCacheServer keeps data

So it seems that customer fully plays a role of node replication consistency. How to avoid this? Suppose I want
Just plug my client node consistency running on the remote host.

Published by: user10381422 on 27.10.2008 09:01

Hello

You are right - consistency, by default, is not a concept of clients and servers, a few knots. It works in peer-to-peer mode of mesh, which means that all the nodes that join the cluster fully participates in all cluster, including cluster services cached. However, there are situations this behavior is not desirable:

1. when clients are transient in nature (desktop applications that come and go, for example), because they trigger the replication of data unnecessary and/or repartitioning when they join both when they leave the group.

2. in Wan environments, network latency will cause consistency consider remote nodes does not and kicked out of the bunch, who has once again as a result unnecessary replication and/or data repartitioning and increases network traffic.

To deal with situations like these, coherence provides two features that can help you achieve what you're looking for:

1. local storage

By default, all nodes are considered as "storage nodes", which means that they fully participate in the cluster and are responsible for their share of the data storage. However, it is possible to change this by using '-Dtangosol.coherence.distributed.localstorage = false' system property. However, this works for partitioned/distributed caches and not replicated caches, so it wouldn't be useful in your case.

2. extend * TCP

Extend * TCP allows you to get what you want even with replicated caches, because it separates completely the customers of the bunch. You can find detailed information on how to configure Extend * TCP in a Guide of the user to http://wiki.tangosol.com/display/COH34UG/Coherence+Extend, but the basic idea is that you configure one or more servers within the cluster proxy to accept client connections and configure clients to connect to these proxy servers. All communications between the client and the server occurs over the reliable TCP/IP connection, and the client never really joined the cluster.

The most beautiful thing is that all this is done by configuration, which means that your client code will not have to change a little bit.

HTH,

ALEKS

Tags: Fusion Middleware

Similar Questions

  • a stupid question about the string conversion error

    I learn generic

    well generic allows setting the data type that you add to the fields of the object, right?

    I made a simple example

    class generic < String >

    {

    The name of the string;

    void set (String name)

    {myIdName = name ;}

    String get() {return myIdName ;}

    }

    class using {}

    Public Shared Sub main (String [] args)

    {

    generic < String > gn = new

    (generics) < String >;

    GN. Set (90);

    System.out.println ("name entered is:" + gn.get ());

    }

    }

    now the line

    GN. Set (90);

    I know that I send a string to the value method, but I wanted to see the error that comes when I send the argument of type other than a string and sent 90 to set method (without quotes)

    the error that slammed me is

    method defined in the class generic < String > cannot be applied to the given types

    required: java.lang.String

    found: int

    reason: int real argument cannot be converted to a java.lang.String by method invocation conversion

    corresponding to a variable of type String: String extends the object declared in the class generic

    OK here is my stupid question

    I know that int cannot be converted to a string and put 90 quotes will correct the error

    What intrigued me is the last line

    "Chain extends object declared in the class generic.


    I know that everything is under the object class

    that means that means line... ??

    thnq

    What intrigued me is the last line

    "Chain extends object declared in the class generic.


    I know that everything is under the object class

    that means that means line... ??

    Which refers to the class definition you provided:

    generic class

    You "stated" in your 'generic' class a 'collar' stretching ' the object '. It reads as if it said "String declared in the class generic.

    See "Generic Types" in the Java Tutotial

    http://docs.Oracle.com/javase/tutorial/Java/generics/types.html

    Search for the word 'object' and you'll see that word highlighted in the world. Although it appears highlighted read this line:

    As you can see, all instances of the object are replaced by T. A variable of type can be any non-primitive type you specify: any type of class, any interface, any type of table or even another variable of type.

    On this page, you will see this:

    A generic class is defined with the following format:

    class name { /* ... */ }
    

    Where each one is read as: T1 extends object ', "T2 extends object", etc.

    When you said this:

    generic class

    You replaced "T1 extends object" with "String extends object".

  • Stupid question for the fans?

    Hello, thanks in advance - what in blazers the yellow tags that appear in the browser when you hover over a link or something called and how blazers announced in dreamweaver to buttons etc.?

    Hello

    No such thing as a stupid question in these forums. I think what you're talking about is a ToolTip and you can use the TITLE attribute to create one for any element on the page. It allows to describe links, tables, individual table rows and other HTML elements. Search engine of many ranking algorithms read the text in the TITLE attributes like the contents of a regular page.

    Who are we

    Hope that helps

  • Print questions after the custom section changes using a printed code

    Hello

    We have problems with the order of the custom section. Please find below bottom

    1. we have a custom code to print sections customized specification associated with the material specifications

    2 this custom code developed 2.5 years ago and absolutely perfect job

    3. this custom code actually built XML sections customized the associated specification which is transformed into PDF using XSLT by extending the print features.

    Recently, we changed the order custom sections appear in hardware specifications. Once the order gets modified with the help of Admin-> Data-> custom section order Custom. New order got reflected in all the technical features without any problem

    But the custom sections do not print in the same order

    When we studied, we found the following

    1. printing order is fine when using the default print template provided by oracle

    2. printing order is not very well when we use our custom print template that uses our custom code developed 2.5 years back

    When we have investigated further, we discovered that any new record is created once the order has changed to print very well in the same order using our custom code

    But the old specifications that were created before the implementation of the custom section control do not print in the same order

    Debug us the solution, with the old card and discovered that code is return data in the old order and not in the order indicated in the specification

    We tried all the properties we could and noting works as expected for the old specifications and new specifications get the order appropriate under the new defined order

    None of the sub properties get the data in the correct order in the old specifications

    ICollection customSections = ingSpec.ExtendedAttributeSections.OrderedModifiableValues;

    ICollection customSections = ingSpec.ExtendedAttributeSections.OrderedValues;

    ICollection customSections = ingSpec.ExtendedAttributeSections.ModifiableValues;

    Can you please let us know if this is a bug in the product? or is it possible that we can do our custom code works for the old specifications?

    Can you also let us know which table stores information about order of custom hardware specifications section?

    Thank you

    Mani

    Sounds like the same issue post to https://community.oracle.com/thread/3804143.

    Thank you

    Pourbaix

  • Stupid questions on the conservation of important calls on the FX application thread

    I'm working on a project that I have developed for over 6 months. I use JavaFX as the graphic side, but I take admission to a program called Max/MSP of music therapy, and I get a camera user input. These two things should run on threads separated since my FX application thread. So far, things have been involved in sweetness. I can handle things on the screen of my user input, and I have two communication work between my application JavaFX and Max. Now, however, I need to start drawing things actually executing. So far, virtually all manipulations aside just summer FX do translations. I now need to create, add and delete nodes children. So, I am of course an error saying not "on the FX application thread. I understand why it is not on this thread, and why it is a problem. So I made a few changes, so that calls that change the nodes on the stage, will be noted only the data and then make the changes later on the FX application thread. And then I encounter problems, questioning my own stupidity...

    I don't know how to get these calls on the FX application thread. I mean, it must be really easy. I'm obviously missing something. Or maybe I'm really tired and reflected on this during too long, or maybe the fact that it's been 6 months I wrote this part of the code. But I see my Mainstage class, which extends the Application. It has a function of departure, that brings up all my on screen-dads (nodes and other scopes), called stage.show ()... and then seems to end. When I did things as calling translate functions on my knots in my thread of user input, or my thread communication Max, things seemed to have worked. But now I think I might have been handling this evil from the ground up. It seems probable that I should have a 'main game loop' (it's not really a game, but still, same principle) where I can say the scene to update all the different nodes with the changes that have occurred since the last frame, and try out everything be updated in time for graphics render at a reliable pace. And yet, I simply don't see how to do this. I'm sure this should be obvious, but I am flat by cutting. And the lack of time begins to descend... Please, if you can point some average standard to avoid this common newb mistake if everything goes well, I would be very happy!
    -Jean

    I think that last one. Each change of a node that is currently part of the scene displayed should be accessible from the thread of FX.

    If the node is not attached to a scene, or the scene itself is not currently displayed, you can make changes on any thread.

  • Distance communication: sending the custom Java objects

    Hello...
    I use Flex 3.01 - BlazedDS

    I have a few working methods implemented on the server I have retrieve custom objects and custom objects table... everything works perfectly...
    I also have a method that I pass a custom Flex object (mapped to a Java object) to retrieve another object Java (mapped to a Flex object) works perfectly...

    But I have this method I have send as an argument one of my items customized to retrieve another object custom... and when I invoke this method the cursor "occupied" remains as always and demand is slowing down...

    I checked the log on the server and I do not see the method called and no error...

    Trying to debug... I saw in the object AbstractOperation "1023 stack overflow" error getting caught, but when I run it normally I see no error...

    This object I send as an argument is like a custom class to hold one of my items for various operations on the server and the first method that works, the object I have send as and the argument is simple...

    This second purpose is as a container that contains a table of another container of objects containing any kind of my items...

    I thought that maybe there is a limit for mapping... I don't know... but I don't see any information to reach the server...

    If someone could help me, I would appreciate...

    Thank you

    Solved...

    It seems that by using the same RemoteObject to call a large number of methods on the same destination is not good...

    I created another RemoteObject to call the method and worked...

    Thanks anyway...

  • Stupid question of the Stick wireless about Photos

    I have successfully connected to the device so that it communicates with my Iphone 6. I transferred photos from my Iphone on the joystick (copied) successfully wireless via WIFI.

    My question is, manually delete the photos on my Iphone in order to make room? Or y at - it an option to automatically delete after the /copy transfer operation?

    Also, the transferred files are uncompressed copies and 100% of the Iphone?

    Thanks in advance.

    If you manually transfer the pictures, you need to remove manually your native photo app after the transfer to free up space.

    in the settings there is an option for backup camera. If you use this option the camera will automatically backup whenever the application is started. This option also includes an option to remove images after backup.

    If you choose to delete the images deleted after backup will be in the recently removed from your application folder native photos for 30 days. If you need to free space immediately, you must open the native photo app and manually delete the pictures in the folder recently deleted to free up space.

    the files are exact copies of the jpegs that takes the iOS device. These are not compressed as all JPEG files are compressed. iOS devices (until the iPhone 7) does not in the first.

  • Stupid question about the signing of applications made in Cascade

    Hello, I am sure that it is on the site somewhere and I'll be stupid.

    But how sign and get the files and is not so you can put a cascade of the project on the app world?

    Also its for blackberry 10

    Thank you

    Sorry, of course, once I put the post then I find a similar position

    http://supportforums.BlackBerry.com/T5/Cascades-development/error-sign-my-app-to-appworld/m-p/188930...

  • BlackBerry Smartphones stupid question on the accelerometer.

    I worked on an application. What I need it to do, is make an animation where when the storm moved quickly on the side and the foreword. I read all the tutorials and everything on it, but I don't seem to understand. I also looked at the sample application, but still, I see how an object to interact with the accelerometer freely as the ball, but I don't see how to make an animation. The answer may be in front of my face, but I'm just not used to the stuff of the accelerometer. I can found the touch part. Also need help with a user interface that will help you to change the color of an object and the shape of an object. I know it's something probably easy, but I learn Blackberry Java on my own, because I have more money for school right now. I'm absorbing tutorials like crazy, but something I'm still not.

    Hello!

    You should probably get this response in the developer section of this site:

    http://supportforums.BlackBerry.com/rim/?category.ID=BlackBerryDevelopment

    This area is mainly for the user support... so I am betting experts you need are in this article.

    Good luck!

  • Question of the ODI - java.sql.SQLException: unexpected token :) in select [...]

    Hello

    I use ODI 10.1.3.6.10 and get the error message below when a package is run. This package is used to load it please could you help me solve this problem.

    org.apache.bsf.BSFException: exception of Jython:

    Traceback (innermost last):

    "< String >" file, line 24, in there?

    java.sql.SQLException: unexpected token :) in the statement [select...]

    Also, I am getting below the exception in other packaging even though it is running without failure.

    org.apache.bsf.BSFException: exception of Jython:

    Traceback (innermost last):

    "< String >" file, line 2, in there?

    Essbase extract summary data:

    Number of rows processed successfully: 1344

    Number of lines rejected: 0

    Thank you

    Michel K

    Select * from RATES where (1 = 1) and (ACCOUNT = 'RATE')

    (PERIOD and)<=>

    And (YEAR =)

    According to the statement select in the error message above it seems that the filter for the PERIOD and YEAR settings are not correctly and this causes the SQL statement syntax error.

    How is the critria to filter for these fields is the value? that is pre-programmed, through variables etc.

  • Stupid question for the example of ColorfulCircles work

    I don't know that I missed something stupid, but hell if I can find it. I'm trying to learn a bit about the use of JavaFX 2.0, because I intend to use it heavily in a project in the coming months. I develop in Eclipse, and when I try the example of ColorfulCircles on the Oracle website, I get an error, the statement that Stage.setVisable is not defined. I added the external jfxrt.jar, and all other lines of code using classes and methods of JavaFX 2.0 compiles correctly. He suggested that even other methods of scene I could try (even if they are not good suggestions). Am I missing something obvious, or is the outdated tutorial example? Thank you!
    -Jean
    stage.setVisible(true) 
    

    is replaced by

     stage.show() 
    

    http://blogs.Oracle.com/thejavatutorials/entry/changes_in_build_42_that

  • Stupid question of the day

    What is the devil? It comes and goes, but seems to never no problem.  He appears next to mail files such as the number indicating new items.  After almost a year we using the Mac just started for no apparent reason.

    Michael,

    «When an account or a network is in offline mode, an icon of lock whitening appears at the end of the bar Favorites or in the sidebar Mail.» You can click the icon to take an account online, if possible, or to see the status information. »

    Mail (El Capitan): Use the connection doctor

  • stupid questions on the use of mds-GOSA/bip_datasource data sources.

    Dear gurus,
    I'm confused about the use of some as securities data sources.
    And what is the relationship of them with RPD source data/connection pool setting?

    As I found in the turning performance guide, while I can't find where is the caller / user of these data sources and never mentioned turning guide turning data sources RPD which I think is more important...

    So I think I must have Miss understanding of something, need your help!

    Michael

    Hi Michael,

    The data sources mds-GOSA/bip_datasource etc. are for the weblogic server access to the metadata of Fusion Middleware.

    If you remember, we had used the RCU to create a repository of information of configuration settings, host of Fusion Middleware /product information/versions etc in a separate database, and these data sources are created in weblogic, and the different products that we install, in this case OBIEE/RTD/BIPublisher etc. can interact between them, transparently and through weblogic.

    Since then, it is the common platform (application server) on which all products have been deployed, it is necessary that we tune elsewhere too for optimal performance from the Infrastructure point of view.

    Now, the connection pool of the physical layer in our .rpd is all about access to data, and so the setting guide does not, in this regard because it is completely dependent on the type of data source, network interfaces of appeal, not concurrrent users, total dashboards, reports etc etc which is dependent demand.

    The setting guide is all about the setting of the Middleware Infrastructure + optimal settings for middleware (middleware) only.

    Hope that I was clear.

    Thank you
    Diakité

  • stupid question of the day - how to 'get' new facebook LR3.2 plugin?

    I go to the plugin Manager, it says "active"... plugin Facebook

    then what?

    I don't see anywhere where I can use it.

    I feel like I need to "load" somehow and give him all my info facebook (email address, passwords etc.).

    Help, please.

    Thank you

    Jez

    In the column on the left in library view, you should see Facebook as an option under Services to publish. (If not, click on the sign more, then select 'Show' in Facebook). You will have the option of Facebook displayed under Services to publish, and you can click this button to set up.

  • Potentially stupid Question of the day: how to quit an application?

    After I closed my current document, I want to leave Photoshop or Illustrator entirely.  I'm not finding a command for it anywhere, I hope it is because it's so simple obviously it requires not to document.  Thanks for your help!

    Here you are...

    photoshop.quit();
    

Maybe you are looking for

  • Available sync key, but account has disappeared.

    I have my old key synchronization for the pre 29 Firefox Sync version.I have deleted the data associated with it a week ago. Is there anyway that I could restore the data?He made a mistake and I don't remember seeing a confirmation.The reason why I d

  • Oscilloscope for the acquisition of data from the usb-6009 or - example of temporal division for 5 seconds, 10 seconds

    Hey Hey everyone I was looking for an example for two-channel oscilloscope virtual using e/s all-in-one of the 14 bits of NI DAQ USB 6009. I tried to research for example BOF time division or s/div for 1 second, 5 seconds, 10 seconds.  but was shocke

  • 8610e settlement: damaged printer drive

    After a year, this wireless network computers communicate with the 8610.  I went into the control panel of Win7 to uninstall all the HP programs.  There are 4.  All except "basic pilot" uninstalled easily.  The base of ininstall driver gave me error

  • An easier way to record data

    Hello I am generating some paintings I like to save in a row, and since they are inside a loop that a matrix will be created. I have a method how to do (my example program is attached). The problem is that I have to take each value and son and it bec

  • HP deskjet printer will not print.

    My printer does not print. It has ink and paper.  The printer screen comes up, I click on print and nothing happens.  The document will appear in the queue, but wil not print.  My husband has recently updated the internet Explorer.