Toplink cache synchronization between two nodes using tomcat

Hi,
In our appcation we have two nodes. Using websphere we used to synchronize toplink cache between two nodes. Can we do same thing using tomcat.

Yes, TopLink implements cache synchronization using JMS or RMI easily, which are not dependent on the server being used - though it JMS especially does require a JMS provider that is accessible from each node.  Cache synchronization is now cache coordination, and is described using JPA properties here:
http://wiki.eclipse.org/EclipseLink/Examples/JPA/CacheCoordination
the Toplink cache synchronization/coordination with JMS | EMBARCADEROS seems to be a good read for cache coordination over JMS, but is more aimed at TopLink's sessions.xml configuration.
Best Regards,
Chris

Similar Messages

  • Finding Paths Between Two Nodes Using SQL Sorted by Cost

    Hi Gurus,
    I want to find all paths from source node to target node that shall be sorted by the cost. I don't know whether it could be achieved with SQL statement. How to start with this query? The script to create the underlying tables along with the data are given below:
    create table nodes ( nodeId int Primary Key, nodeName varchar(50));
    create table paths ( pathId int Primary Key, fromNodeId int, toNodeId int, cost int );
    insert into nodes values (1,'ISL');
    insert into nodes values (2,'LHR');
    insert into nodes values (3,'HYD');
    insert into nodes values (4,'FSL');
    insert into nodes values (5,'MUL');
    insert into nodes values (6,'KHI');
    insert into nodes values (7,'QT');
    insert into paths values (1,1,3,20);
    insert into paths values (2,1,5,10);
    insert into paths values (3,1,7,80);
    insert into paths values (4,2,4,10);
    insert into paths values (5,3,4,40);
    insert into paths values (6,3,5,20);
    insert into paths values (7,3,6,10);
    insert into paths values (8,6,7,30);
    insert into paths values (9,6,5,30);
    insert into paths values (10,6,3,10);
    insert into paths values (11,7,2,20);
    insert into paths values (12,5,4,40);
    insert into paths values (13,5,7,40);
    Suppose the source = ISL and target = QT, their are various paths from ISL to QT:
    Ord# Relative Path Cost
    ==== ================================= =================
    1. ISL -> MUL -> QT 50
    2. ISL -> HYD -> KHI -> QT 60
    3. ISL -> QT 80
    4. ISL -> HYD -> MUL -> QT 80
    5. ISL -> HYD to KHI -> MUL -> QT 100
    This gives us all possible paths sorted by cost.
    Any hint or help will be highly appreciated.
    Thanks in advance and best regards
    Bilal
    Edited by: naive2Oracle on Feb 11, 2011 9:59 AM

    I like recursive with clause B-)
    col path for a30
    with nodes(nodeId,nodeName) as(
    select 1,'ISL' from dual union
    select 2,'LHR' from dual union
    select 3,'HYD' from dual union
    select 4,'FSL' from dual union
    select 5,'MUL' from dual union
    select 6,'KHI' from dual union
    select 7,'QT'  from dual),
    paths(fromNodeId,toNodeId,cost) as(
    select 1,3,20 from dual union
    select 1,5,10 from dual union
    select 1,7,80 from dual union
    select 2,4,10 from dual union
    select 3,4,40 from dual union
    select 3,5,20 from dual union
    select 3,6,10 from dual union
    select 6,7,30 from dual union
    select 6,5,30 from dual union
    select 6,3,10 from dual union
    select 7,2,20 from dual union
    select 5,4,40 from dual union
    select 5,7,40 from dual),
    tmp(nodeName,fromNodeId,toNodeId,cost) as(
    select a.nodeName,b.fromNodeId,b.toNodeId,b.cost
      from nodes a,paths b
    where a.nodeId=b.fromNodeId),
    rec(nodeName,path,fromNodeId,toNodeId,cost) as(
    select nodeName,cast(nodeName as varchar2(40)),
    fromNodeId,toNodeId,cost
      from tmp
    where nodeName = 'ISL'
    union all
    select b.nodeName,a.path || '->' || b.nodeName,
    b.fromNodeId,b.toNodeId,
    a.cost+decode(b.nodeName,'QT',0,b.cost)
      from rec a,tmp b
    where a.toNodeId = b.fromNodeId
       and a.nodeName !='QT')
    CYCLE fromNodeId SET IsLoop TO 'Y' DEFAULT 'N'
    select path,cost from rec
    where IsLoop ='N'
      and nodeName ='QT'
    order by cost;
    PATH                    COST
    ISL->MUL->QT              50
    ISL->HYD->KHI->QT         60
    ISL->HYD->MUL->QT         80
    ISL->QT                   80
    ISL->HYD->KHI->MUL->QT   100

  • How to create relationship between two records using MDM Java APIs

    Hi,
    I am trying to create relationship between two records using Java Apis. Please guide me in doing this.
    Regards,
    Niraj

    Hi Niraj,
    There is ModifyRelationshipsCommand:
    http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/data/commands/ModifyRelationshipsCommand.html
    Retrieve Relationship command:
    http://help.sap.com/javadocs/MDM/current/com/sap/mdm/schema/commands/GetRelationshipListCommand.html
    Also, please refer similar thread, MDM Java API and relationships.
    Hope it helps..
    Regards,
    Mandeep Saini

  • How to ...synchronization between two databases

    Hi,
    I want to set up automatic synchronization between two databases. For example, database DB1 and DB2 have table t1 and t2 with the same columns. If someone updates a record in table t1, I want automatically update the record in t2 or vice-versa.
    How can I make an automatic system like that?

    1) What is the business goal you're trying to satisfy? Failover, reporting, replication, geographic co-location, etc. each have their own set of technologies. Explaining what you're trying to accomplish from a business perspective will help us identify which technology (or technologies) to focus on.
    2) Are you synchronizing a single table? Or multiple tables? Or all the tables in a schema? Or all the tables in a database?
    3) Is there a stable network connection between the boxes?
    4) What version of Oracle do you have (10.2, 10.1, 9.2, 9.0.1, etc)? What edition (standard, express, enterprise, etc)?
    5) How quickly after a change has been made on DB1 does the change need to reflect on DB2?
    6) Am I correct in understanding that you want to be able to change the same row of data on either DB1 or DB2? So the replication needs to go in both directions?
    Justin

  • How to draw a line(shortest distance)  between two ellipse using SWING

    how to draw a line(should be shortest distance) between two ellipse using SWING
    any help will be appreciated
    regards

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class ELine extends JPanel {
        Ellipse2D.Double red = new Ellipse2D.Double(150,110,75,165);
        Ellipse2D.Double blue = new Ellipse2D.Double(150,50,100,50);
        Line2D.Double line = new Line2D.Double();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.green.darker());
            g2.draw(line);
            g2.setPaint(Color.blue);
            g2.draw(blue);
            g2.setPaint(Color.red);
            g2.draw(red);
        private void connect() {
            double flatness = 0.01;
            PathIterator pit = blue.getPathIterator(null, flatness);
            double[] coords = new double[2];
            double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
            double min = Double.MAX_VALUE;
            while(!pit.isDone()) {
                int type = pit.currentSegment(coords);
                switch(type) {
                    case PathIterator.SEG_MOVETO:
                    case PathIterator.SEG_LINETO:
                        Point2D.Double p = getClosestPoint(coords[0], coords[1]);
                        double dist = p.distance(coords[0], coords[1]);
                        if(dist < min) {
                            min = dist;
                            x1 = coords[0];
                            y1 = coords[1];
                            x2 = p.x;
                            y2 = p.y;
                        break;
                    case PathIterator.SEG_CLOSE:
                        break;
                    default:
                        System.out.println("blue type: " + type);
                pit.next();
            line.setLine(x1, y1, x2, y2);
        private Point2D.Double getClosestPoint(double x, double y) {
            double flatness = 0.01;
            PathIterator pit = red.getPathIterator(null, flatness);
            double[] coords = new double[2];
            Point2D.Double p = new Point2D.Double();
            double min = Double.MAX_VALUE;
            while(!pit.isDone()) {
                int type = pit.currentSegment(coords);
                switch(type) {
                    case PathIterator.SEG_MOVETO:
                    case PathIterator.SEG_LINETO:
                        double dist = Point2D.distance(x, y, coords[0], coords[1]);
                        if(dist < min) {
                            min = dist;
                            p.setLocation(coords[0], coords[1]);
                        break;
                    case PathIterator.SEG_CLOSE:
                        break;
                    default:
                        System.out.println("red type: " + type);
                pit.next();
            return p;
        public static void main(String[] args) {
            final ELine test = new ELine();
            test.addMouseListener(test.mia);
            test.addMouseMotionListener(test.mia);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(test);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    Graphics g = test.getGraphics();
                    g.drawString("drag me", 175, 80);
                    g.dispose();
        private MouseInputAdapter mia = new MouseInputAdapter() {
            Point2D.Double offset = new Point2D.Double();
            boolean dragging = false;
            public void mousePressed(MouseEvent e) {
                Point p = e.getPoint();
                if(blue.contains(p)) {
                    offset.x = p.x - blue.x;
                    offset.y = p.y - blue.y;
                    dragging = true;
            public void mouseReleased(MouseEvent e) {
                dragging = false;
            public void mouseDragged(MouseEvent e) {
                if(dragging) {
                    double x = e.getX() - offset.x;
                    double y = e.getY() - offset.y;
                    blue.setFrame(x, y, blue.width, blue.height);
                    connect();
                    repaint();
    }

  • Is there any way to enable eventlog replication between two nodes in windows 2008 failover cluster.

    Is there any way to enable eventlog replication between two nodes in windows 2008 failover cluster.
    Thanks Azam When you see answers please Mark as Answer if Helpful..vote as helpful.

    Hi,
    As far as I know there don’t have the log replica function between failover cluster node, if you want to have the Unified log management you can refer the following related
    KB:
    Configure Computers to Forward and Collect Events
    http://technet.microsoft.com/en-us/library/cc748890.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Using VMware Not ping between two nodes.

    Dear All,
    I am installing the Linux and Installing the RAC using VMWare. Shared disk and all things were done. But not ping between the two nodes.
    Regards
    Prasannavenkatesh.K

    I have previously made entry in /etc/hosts file.
    now i am able to ping all the nodes no problem
    thnks
    now i have a problem in installing oracle crs in RAC1
    I login to RAC1 as the oracle user and start the Oracle CRS installer
    and while the specify the cluster configuration screen, i came across the error
    "The installer has detected the existence of 10g oracle
    clusterware on the remote node rac2 however, 10g oracle doesn't exist in the local node If
    u wish to upgrade and existing 10g release 2 ,then u must start the installer on a mode "
    thnks in anticipation
    prassana

  • How to draw a line on ADF page between two nodes  for mapping.

    Hi everyone,
    Does anyone have a solution that how can I wiring two points by drawing a line on ADF pages.
    My scenario is user want to do a mapping between two xml files. We will build an ADF faces page. This page have two parts, left part contains one tree(base on the source xml), right part is the destination tree(target xml). User can drag an node from left and drop to right. Meantime, a line will be created to connect two node, it would be perfect that when user scroll down the page, or extend the tree node, the line between source and target will be remain connection two node.
    Does anyone have a solution for this, thanks in advance.
    Hongfu.

    so you want to do something like. xsl mapper in soa
    http://www.haertfelder.com/images/pSoaBPEL3.png
    i can think of using javascript.. not sure... neeed extra programming..

  • How can I remove all content between two tags using Find/Replace regular expressions?

    This one is driving me bonkers...  I'm relatively new to regular expressions, but I'm trying to get Dreamweaver to remove all content between two tags in an XML document.  For example, let's say I have the following XML:
    <custom>
    <![CDATA[<p>Some text</p>
    <p>Some more text</p>]]>
    </custom>
    I'd like to do a Find/Replace that produces:
    <custom>
    </custom>
    In essence, I'd like to strip all of the content between two tags.  Ideally, I'd like to know how to strip the CDATA content as well, to return the following:
    <custom>
    <![CDATA[]]>
    </custom>
    I'd much appreciate any suggestions on accomplishing this.
    Many thanks!

    Thanks much for your response.  I found David's article to be a little thin with respect to examples using quantifiers in coordination with the wildcard metacharacters; however, I was able to cobble together a working expression through trial and error using the information he presented.  For posterity, here’s the solution:
    Find:
    <custom>[\d\D]*?</custom>
    Replace:
    <custom>
    <![CDATA[]]>
    </custom>
    I believe this literally translates to:
    [] = find anything in this range/character class
    \d = find any digit character (i.e. any number)
    \D = find any non-digit character (i.e. anything except numbers)
    *? = match zero or more times, but as few times as possible (i.e. match multiple characters per instance, but only match one instance at a time, or none at all)
    I’m still not sure how to effectively utilize the . wildcard.  For example, the following expression will not find content that ends with a number:
    <custom>.*?[\D]*?</ custom >
    I'm presuming this is because numbers aren't included in the \D metacharacter; however, shouldn't numbers be picked up by the .*? expression?

  • Password synchronization between two domains

    Hey everybody,
    we have currently the situation, where we comes to password synchronization between Domain A and Domain B. Trust relationships are not possible caused we need separated authentications between productive network and user tools.
    So we would sync from Domain A (windows 2008 R2) --> Domain B (windows 2008 R2)
    Domain B would also replicate per Okta to Office365 Cloud.
    Now my question, could anyone point me in the right direction, what tools are usefully on the market to accomplish these issues.
    Sorry for my limited english.
    Best and thanks

    You can try using FIM with PCNS to sync passwords from Domain A to Domain B: https://technet.microsoft.com/en-us/library/jj590203(v=ws.10).aspx
    As for Office 365, you can simply implement an ADFS platform and federate it so that your users will be using their AD passwords. It is also possible to sync passwords with DirSync.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • How to find the phase difference between two signals using Hilbert transform

    hi, 
        I am new to LabView.... I am trying to find phase difference between two signals. I sucessfuly found out the phase difference between two predefined waves using single tone measurement. .... But I really want to know how can I measure phase difference between two signals( not predefined... ie we don't know the initial conditions) using hilbert transform or any transformation techniques (without using zero cross detection).. I tried by using hilbert transform based on algorithm... bt I am getting error.... plz help me
    Attachments:
    phase_differece.vi ‏66 KB

    you could try something similar to this, for each table pair that you want to compare:
    SELECT 'TABLE_A has these columns that are not in TABLE_B', DIFF.*
      FROM (
            SELECT  COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
          ) DIFF
    UNION
    SELECT 'TABLE_B has these columns that are not in TABLE_A', DIFF.*
      FROM (
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
          ) DIFF;that's assuming, column_name, data_type and data_length are all you want to compare on.

  • Can i play a game between two ipads using bluetooth

    Can I play games betwwen two ipads using bluetooth

    It depends on the game. The app has to be specifically written to allow play between two devices via Bluetooth.
    Regards.

  • Subject: How to do join between two tables using something like SE16

    SE16, SE11 provide form based interface query information from a single table. Is there a way to do join between two tables without creating an infoset erc? I am looking for something similar to sql join but in SAP BI 7.0
    Thanks.

    Hi
    Pls look into below links. Hope this helps you.
    1. http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb45bf455611d189710000e8322d00/content.htm
    2. http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb45a5455611d189710000e8322d00/content.htm
    Regards
    Sirigiri

  • Data synchronization between two offices

    Hi everyone,
    After building a database for our growing company, we have a problem with our data and its synchronization. Our company has a rather small, but growing, book warehouse and sells books online. We have been able to deal with orders and stock because sales were not that large.
    But today we sell more and more books and the addition of a database means we need to synchronize our data from the warehouse database to the main office one, mainly to be able to know what kind of stock we have. I think we will have to go with a batch syncing scheduled twice a day for now. We have been dealing with Talend open studio so far and enjoy the product.
    Do you think Talend will be able to stand that type of operation? What kind of software could be used in this case?
    Thanks all!

    Hi there,
    I don't know Talend and thus cannot say anything about the product.
    However, based on your requirement description I'd say you better go for a system with one single database.
    Only that way you can check your current stock when you need it.
    Moreover a single database solution is far less complex and reduces a ton of problems you will always face with distributed databases.
    just my two cents...
    Lars

  • SSAS cube sync between two servers using analysis service execute DDL task in SSIS

    hi folks:
      I have two AS servers: TOBIDW and TOBIDW2. TOBIDW2 is the production server where users use Excel to connect . TOBIDW has been identified as a backup Cube server in case if TOBIDW2 is not available.   My job is to create a SSIS package that syncs
    cube db from TOBIDW2 to TOBIDW everyday (one way).
       The standard SSIS dev process  for us   is to develop  in the dev environment and deploy  to production env.  The XMLA script has been extracted using Sync wizard of SSMS on production cube server.  Inside this
    XMLA, the connectionstring is using integrated security = SSPI. 
    When deploy to production, what username/password I should use to replace the integrated security? 
    Thanks
    <Synchronize xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Source>
    <ConnectionString>Provider=MSOLAP.5;Data Source=TOBIDW2;Integrated Security=SSPI;Initial Catalog=ORDERDW</ConnectionString>
    <Object>
    <DatabaseID>ORDERDW</DatabaseID>
    </Object>
    </Source>
    <SynchronizeSecurity>CopyAll</SynchronizeSecurity>
    <ApplyCompression>true</ApplyCompression>
    </Synchronize>
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi cat_ca, 
    You don't need to replace Integrated Security=SSPI with other Windows username and password. Integrated Security means it uses the Windows user that launches the process (the dtexec.exe that runs your SSIS package) to connect to the server TOBIDW2 you defined
    in your connection string. 
    Actually for SSAS connection string, you don't normally need to specify user name and password because SSAS only takes Windows Authentication and Integrated Security takes care of it for us automatically using SSPI. The only case when you need to manually
    enter user name and password (Windows user) is when you configured a HTTP Pump to sit in front of your SSAS server and use HTTP://servername/ to access your SSAS server. This is because IIS server could be configured to take Basic Authentication which requires
    explicitly supply Windows user name and password for authentication. In that case your connection string should look similar to this:
    Provider=MSOLAP;Data Source=http://serverName/;Initial Catalog=myDataBase;
    User Id=domain\user;Password=myPassword;

Maybe you are looking for

  • Sync/Async bridge

    Hey My task is to have an Idoc sent to a Web Service. I have heard that this can be solved using a sync/async bridge in BPM, but from what I can read (help.sap.com) it always say that the first receive step is from a synchronous application. My quest

  • Is this a good way for loading and handling an xml file?

    I'm new to xml files, but it seems to me that a good way to handle them may be this: - create an xmltype table with a unique xmltype column - load the xml file in the xmltype column of the table - writing a procedure for scanning the whole column of

  • I opened a new account.. I want to CLOSE the old o...

    I wanted to close an old account I haven't used for a lonnnng time. It had my stage name, and I wanted a personal account with NO REFERENCE at all of my stage name. The Q&A told me to open a new account, so I did. Then the new account has my personal

  • How can I change view options for ALL playlists?

    How can I change view options for ALL playlists? With one single click or trick? I have a lot playlists and don't want to change every single one of them separatly. Thanks for your help. (I use Windows 7)

  • PowerBook G4 12" version vs. OSX software versions

    I am (still) trying to install the original OS back onto a G4 12" Powerbook that I have "re-drived" and am unsure if the disks I have been supplied (by my client) are the correct ones. What would the OSX version number be on an original OSX CD for a