Timesten replication with multiple interfaces sharing the same hostname

Hi,
we have in our environment two Sun T2000 nodes, running SunOS 5.10 and hosting a TT server currently in Release 7.0.5.9.0, replicated between each other.
I would like to have some more information on the behavior of the replication w.r.t. network reliability when using two interfaces associated to the same hostname, the one used to define the replication element.
To make an example we have our nodes sharing this common /etc/hosts elements:
151.98.227.5 TBMAS10df2 TBMAS10df2-10 TBMAS10df2-ttrep
151.98.226.5 TBMAS10df2 TBMAS10df2-01 TBMAS10df2-ttrep
151.98.227.4 TBMAS9df1 TBMAS9df1-10 TBMAS9df1-ttrep
151.98.226.4 TBMAS9df1 TBMAS9df1-01 TBMAS9df1-ttrep
with the following element defined for replication:
ALTER REPLICATION REPLSCHEME
ADD ELEMENT HDF_GNP_CDPN_1 TABLE HDF_GNP_CDPN
CHECK CONFLICTS BY ROW TIMESTAMP
COLUMN ConflictResTimeStamp
REPORT TO '/sn/sps/HDF620/datamodel/tt41dataConflict.rpt'
MASTER tt41data ON "TBMAS9df1-ttrep"
SUBSCRIBER tt41data ON "TBMAS10df2-ttrep"
RETURN RECEIPT BY REQUEST
ADD ELEMENT HDF_GNP_CDPN_2 TABLE HDF_GNP_CDPN
CHECK CONFLICTS BY ROW TIMESTAMP
COLUMN ConflictResTimeStamp
REPORT TO '/sn/sps/HDF620/datamodel/tt41dataConflict.rpt'
MASTER tt41data ON "TBMAS10df2-ttrep"
SUBSCRIBER tt41data ON "TBMAS9df1-ttrep"
RETURN RECEIPT BY REQUEST;
On this subject moving from 6.0.x to 7.0.x there has been some changes I would like to better understand.
6.0.x reported in the documentation for Unix systems:
If a host contains multiple network interfaces (with different IP addresses),
TimesTen replication tries to connect to the IP addresses in the same order as
returned by the gethostbyname call. It will try to connect using the first address;
if a connection cannot be established, it tries the remaining addresses in order
until a connection is established.
Now On Solaris I don't know how to let gethostbyname return more than one interface (the documention notes at this point:
If you have multiple network interface cards (NICs), be sure that “multi
on” is specified in the /etc/host.conf file. Otherwise, gethostbyname will not
return multiple addresses).
But I understand this could be valid for Linux based systems not for Solaris.
Now if I properly understand the above, how was the 6.0.x able to realize the first interface in the list (using the same -ttrep hostname) was down and use the other, if gethostbyname was reporting only a single entry ?
Once upgraded to 7.0.x we realized the ADD ROUTE option was added to teach TT how to use different interfaces associated to the same hostname. In our environment we did not include this clause, but still the replication was working fine regardless of which interface we were bringing down.
My both questions in the end lead to the same doubt on which is the algorithm used by TT to reach the replicated node w.r.t. entries in the /etc/hosts.
Looking at the nodes I can see that by default both routes are being used:
TBMAS10df2:/-# netstat -an|grep "151.98.227."
151.98.225.104.45312 151.98.227.4.14000 1049792 0 1049800 0 ESTABLISHED
151.98.227.5.14005 151.98.227.4.47307 1049792 0 1049800 0 ESTABLISHED
151.98.227.5.14005 151.98.227.4.48230 1049792 0 1049800 0 ESTABLISHED
151.98.227.5.46050 151.98.227.4.14005 1049792 0 1049800 0 ESTABLISHED
TBMAS10df2:/-# netstat -an|grep "151.98.226."
151.98.226.5.14000 151.98.226.4.47699 1049792 0 1049800 0 ESTABLISHED
151.98.226.5.14005 151.98.226.4.47308 1049792 0 1049800 0 ESTABLISHED
151.98.226.5.44949 151.98.226.4.14005 1049792 0 1049800 0 ESTABLISHED
Tried to trace with ttTraceMon but once I brought down one of the interfaces did not see any reaction on either node, if you have some info it would be really appreciated !
Cheers,
Mike

Hi Chris,
Thanks for the reply, I have few more queries on this.
1.Using the ROUTE CLAUSE we can use multiple IPs using priority level set, so that if highest priority level set in thr ROUTE clause for the IP is not active it will fall back to the next level priority 2 set IP. But cant we use ROUTE clause to use the multiple route IPs for replication simultaneously?
2. can we execute multiple schema for the same DSN and replication scheme but with different replication route IPs?
for example:
At present on my system, I have a replication scheme running for a specific DSN with stand alone Master-Subscriber mechanism, with a specific route IP through VLAN-xxx for replication.
Now I want to create and start another replication scheme for the same DSN and replication mechanism with a different VLAN-yyy route IP to be used for replication in parallel to the existing replication scheme. without making any changes to the pre-existing replication scheme.
for the above scenarios, will there be any specific changes respective to the different replication schema mechanism ie., Active Standby and Standalone Master Subscriber mechanism etc.,
If so what are the steps. like how we need to change the existing schema?
Thanks In advance.
Naveen

Similar Messages

  • How to use multiple Interfaces for the same BS?

    Hi @ ,
    Is it possible to have a scenarion where i am using multiple interfaces in the same BS based upon some conditional field in the message.
    I amnot able to get the solution I know with condition editor I can have multiple receivers but in my scenarion based upon message fiels i have to decide which BAPI to be used and wht mapping and then post it to the same System
    Any help will be highly rewarded
    Regards

    Hi-
    Yes it is possible you can use multimapping for mapping the interfaces.
    To know more about multimapping see
    http://help.sap.com/saphelp_nw04/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm
    Some more helpful links
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • Lightroom CC issues with multiple export at the same time

    Back before Lightroom updated to the CC version, I was able to use export presets to send 4 different versions of the photos I'm working on at the same time (A Full Size for client at certain size, full size for myself, web-sized with watermark and a thumbnail). Since updating to the CC version, I'm only able to start the export process on two of these versions before the system simply becomes crippled and I cannot even navigate through Lightroom without it chugging along.
    For reference, I'm running a 2014 rMBP with 16GB of RAM, LR is the only app open at the time and it's showing that I have roughly 6GB of RAM free when attempting this export.
    TL;DR: LR5 worked wiht multiple exports at the same time, but LRCC now chugs after 2 exports are started

    Re: "Selecting video in Messages, now starts Face time for video. Face time is one to one only."
    Apple "Messages" supports two different types of video conferencing. It's become more than a little confusing. If you (or the person on the other end) ONLY have accounts set up for Apple's "iMessage" service (associated with your Apple ID and "iCloud") you may see the video symbol, but when you click on it you will be connected via FaceTime which is limited a 1-to-1 video conference.
    However, if you have set up an AIM account in Messages (you may already have an AIM account ID if you once used iChat for video, audio and screensharing) and the person at the other end also has an AIM account you will be connected via AIM and will be able to do screen sharing and multi-person video conferences just like the old iChat, i.e. you'll have iChat Theater features, up to 4-way conferencing, etc.
    It can get very confusing if, for example, you've signed up for AIM using a .me or .cloud email address. But once you have it set up and learn to recognise the way Messages switches between AIM and iMessage all the old iChat features work just fine in Messages.

  • WLC-2106 and multiple interfaces on the same network

    Hi there,
    I recently created a TAC request to the Cisco support regarding our WLC-2106, but they could not help me. Basically I just learned that you can create new interfaces for the wireless LAN controller and then dedicate them to a given wireless network (SSID). This way I could more effectively utilize network bandwidth also. Problem is that all of the interfaces have to be in a different network segment in order to work, which is not what I want. I specifically want to have several interfaces on the same network segment.
    Has anyone tried to accomplish the same?

    Basically what I've misunderstood is that all the traffic generated by our wireless clients have been going through the single 100Mbit/s ethernet port on the wireless LAN controller (management interface), and to mitigate this I thought I could create new interfaces (ports) and dedicate those to given WLAN networks.. I see now that this is not supported. Not inside the same network at least.
    So, by reading further and consulting my best friend Google I learned about a setting called "AP Mode". Changing that from Local (the default) to H-REAP the APs should not route their traffic anymore through the management interface on the wireless controller, but instead route all the client traffic directly to the local LAN. This way you effectively remove the 100Mbit/s bottle-neck when all the APs were using the management interface both for configuration and client data traffic.
    It seems you also have to enable H-REAP Local switching from a given WLAN network in addition to changing the AP Mode of your access points to H-REAP. I'm still in the testing phase here so should anyone have any insight to this, I'd be greatful to hear more.

  • Active active with multiple csm in the same 6500

    How can I achieve active/active configuration with csm in a 6500? Can I do it with 2 csm in the same chassis or I need two chassis, each with one csm?

    you can't have active-active setup with CSM.
    The CSM uses only 1 FT group and all vservers are linked to it.
    So once CSM is active and the other one standby.
    If the FT group fails on the active, the standby takes over and it takes a full control - not partial as needed for active-active.
    It does not matter if you have 1 chassis or more.
    The new ACE module offers the possibility to do active-active.
    Gilles.

  • Sharing Lightroom 4 catalog with multiple users on the same Windows Machine

    Hi:
    I just started out using Lightroom 4 for managing family photos. What I want to do is to share the LR catalog so that my kids and wife can access the database from their own accounts. I tried sharing the directory with the catalog and all the photos. But when I open lightroom from my kids's account, I keep getting an "unexpected error openning the catalog".
    I am using Windows 8, 64bit
    The catalog was created in my account (adminstrator)
    the other accounts are normal accounts
    I have searched around but all the questions ask about sharing on network drives. But I just want to share the catalog on the same machine on local harddrive. I made sure that all the other lightrooms are closed in the other accounts (everyone else is signed off) before I tried to open it from my kid's account.
    Any ideas?
    thanks a lot for your help,
    Herman

    It sounds like the other user accounts don't have permission to access the catalog. You could mess with permissions and try to get everyone access to the catalog, or an easier way might be to just move the catalog and the images to their own volume formatted as FAT 32. FAT 32 volumes don't user permissions, thus everyone would have read/write access by default.

  • Sharing common mail account with multiple users on the same Mac

    My parents recently switch to an iMac from a PC where they were using AOL. They had the PC set up with two users accounts and they did all their mail/internet using AOL.
    With the new iMac, I wanted to set it up in the same way as the PC so I set them up with two user accounts and showed them how they can use Fast User Switching to switch back and forth. This works well for them because my father has mostly business stuff on the computer and my mom has mostly projects and they like to keep them separate.
    Where they are getting into problems is that I have them both set up with Mail under their respective accounts to access their common AOL account. What seems to be happening is that in some cases one user will get a new mail whereas the other user might never see it. I had them configured using IMAP which I thought would be okay since the mail is stored on the server but now I am not so sure.
    I'm thinking that it might help to set Keep copies of messages for offline viewing in the advanced tab to Don't keep copies of any messages, but I wasn't sure. Is a setup like this possible? Or is it just a recipe for trouble?

    What you’re observing is probably an AOL issue, not a Mail issue. AOL automatically purges mail from the server after some time (just a few days if the messages have already been read). There is nothing you can do about it other than moving/copying those messages somewhere else to avoid losing them.
    You may also want to read the following article. It’s somewhat outdated, but still useful to understand how AOL’s IMAP access works:
    Accessing the AOL Mail System using IMAP - An Unofficial Guide

  • Change Apple ID on one device only. Currently have multiple devices sharing the same apple id.

    Hi
    I currently have three devices sharing one Apple ID. Ipad (Work) Iphone (Wife) & Ipod Touch (Son)
    I have purchased an iPhone for Christmas and want to migrate the ipod to a new Apple ID. I haven't created the an ID for the phone yet but just wondered what the easiest solution would be? Would it be a case of creating a new ID on the phone, then signing into the iPod with this ID. I understand whatever has been downloaded to the Ipod will no longer be available, but wondered if there were any solutions to this problem.

    You can have media from more than one account on an iOS device. Note that
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.
    I would set up the iPhone by:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    Then on the iPod yocan either erase it and set it with the new ID or:
    Use the new ID on iPod but only for:
    Settings>Messages>Send and Receive
    Settings>FaceTime
    Settings>GameCenter
    and Settings>iCloud if you want to have separate Contacts Calendar and some other things.    
    Continue to use the same/common Apple ID for Settings>iTunes and App stores so you can share purchases if you want to

  • Problem with multiple threads accessing the same Image

    I'm trying to draw into one Image from multiple threads. It works fine for a while, but then suddenly, the image stops updating. Threads are still running but the image won't update. I'm using doublebuffering and threads are simply drawing counters into Image with different speed.
    It seems like the Image gets deadlocked or something. Anyone have any idea what's behind this behavior or perhaps better solution to do such thing.
    Any help will be appreciated.

    Sorry Kglad, I didn't mean to be rude. With "No coding
    errors" I meant the animation itself runs with no errors. I'm sure
    you could run the 20 instances with no freezing (that's why I put
    the post :) ) But I'm affraid it is an animation for a client, so I
    cannot distribute the code.
    Perhaps I didnt explain the situation clearly enough (in part
    because of my poor english...).-
    - By 20 instances I mean 20 separated embedded objects in the
    html
    - The animation is relatively simple. A turned on candle, in
    each cycle I calculate the next position of the flame (that
    oscilates from left to right). The flame is composed by 4
    concentric gradients. There is NO loops, only an 'onEnterFrame'
    function refreshing the flame each time.
    - It's true that I got plenty variables at the _root level.
    If that could be the problem, how can I workaround it?
    - It is my first time trying to embed so many objects at the
    same time too. No idea if the problem could be the way I embed the
    object from the html :(
    - The only thing I can guess is that when a cycle of one of
    the object is running, the other 19 objects must wait their turn.
    That would explain why the more instances I run, the worst results
    I get. In that case, I wonder if there's a way to run them in a
    kind of asynchronous mode, just guessing...
    Any other comment would be appreciated. Anyway, thanks a lot
    everybody for your colaboration.

  • How can I create a hashmap() with multiple values for the same key?

    I am trying to write an application that will us something like a Map() with multiple values but some have the same key. Is this possible?

    i had the same question. just create a List, add all the values u want to it, and then put the List into the map like u would a normal single value. e.g.
    List list = new ArrayList();
    list.add(value1);
    list.add(value2);
    map.put(key, list);
    i bet u r doing the same course as i am =)

  • Dbconsole with multiple instances on the same server?

    Hi!
    I have a LINUX server running 2 separate instances - csp1 and csp2. I have a repository in csp1 and the dbconsole running for csp1. Now I need to find out if / how I can get the dbconsole running for the csp2 instance. This is Oracle standard edition 10.2.0.4. Both instances share the same Oracle Home and Listener. A second Oracle Home has the companion CD (http server) installed in it and has no instances associated with it.
    Does anyone have information on how to do this? Here are some of my questions:
    1) Do I need separate repositories for each instance or can the repository in csp1 be used for both instances?
    2) Can the ports be shared or do I need to assign new port #'s for the 2nd instance? How / where do I do this?
    Any hints, tips, suggestions, etc. are greatly appreciated!
    Dave Venus

    1) Do I need separate repositories for each instance or can the repository in csp1 be used for both instances?
    Yes, in the free version of EM in 10g ie DB console,that's the restriction. You can't use it for more than one database. It has to be done explicitly for that another database whom you want to manage via it. So as per the answer, yes you do need a seperate repository for your second db. The other db will be in the same Oracle home and surely its em repository can work with the existing listener.But it does require its own set of config files which will be in a sperate folder under Oracle Home with its sid.
    2) 2) Can the ports be shared or do I need to assign new port #'s for the 2nd instance? How / where do I do this?
    As I mentioned in my last reply, you wouldn't be able to share the port that is already in use. You do need to have a seperate port configured. Normally when you would install the repository oracle would pick up itself a port number. The valid port range , if I remember correctly is from 5500 onwards ( I don't remember the last limit). Even afterwars, you can change the port using "emca" command.
    Edit:
    I forgot to mention that some time back, here on the forums, I had a discussion with a guy who mentioned that there is a workaround possible to add a target in the current Targets.xml for the second database. I did try it out but still that didn't give me two instances. The most recent one which I added only was accessible.
    Update:
    I did find that thread,here it is. See if this helps you,
    Re: control two database with one database control
    HTH
    Aman....
    Edited by: Aman.... on Oct 28, 2008 7:14 PM
    Added Edit
    Edited by: Aman.... on Oct 28, 2008 7:28 PM
    Added thread

  • Erratic behavior with multiple calls to the same RFC

    Hi,
    I am running into a strange problem invoking a custom RFC from a .NET application. I would appreciate it if someone has any insight into it.
    The steps to call the RFC are straightforward:
    1. Open the connection to SAP server
    2. Make the call
    3. Close the connection
    As you can imagine, the code is also quite simple. 
    In my simulation program, I have a button on a UI form that one can click and execute the above steps.
    The problem I am running into is that, on multiple calls, sometimes the parameter values that show up on the SAP side are not right. When the input parameter (a structure) is viewed in the ABAP debugger, the field values are all getting exchanged. For example, first name field contains values for the last name. Also, some fields that are supposed to have values do not have any.
    Just before the RFC call is made, when we look at the structures on the .NET side, the field values are the way they are supposed to be.
    I have not been able to establish a pattern. Sometimes, it takes two clicks to reproduce this problem. Sometimes it takes five.
    One of the team members thinks that this starts occurring right after one call fails for some valid reasons. However, I am not yet convinced.
    Having written many custom .NET applications using RFCs an BAPIs, I am fairly conversant with the technology. However, this one just baffles me. It appears something is getting messed up at the RFC layer itself. Does anyone have any idea on what could be happening?
    Thank you in advance for your help.
    Pradeep

    Indeed this is interesting .
    The problem is caused by an incompatible change from .NET Framework 1.1 to 2.0. Howerver, the documentation on the 1.1. API was not clear enough to decide if the incompatible change was adequate or not. Now in detail:
    NCo runtime uses the reflection API Type.GetProperties to read and cache all properties of a Proxy structure. NCo assumes that the order of the returned properties is the same on each call and especially that it is the order of the properties as they appear in source code. This was the behavior in .NET 1.1. It has changed in 2.0, see e.g. the internet forum discussion in http://www.thescripts.com/forum/thread455492.html .
    Calling Type.GetProperty(<PropertyName>) or Type.SetProperty(<PropertyName>)  in your code moves the mentioned properties up in the list returned by Type.GetProperties() later inside of NCo.
    We found the following work-arroud:
    When using late-binding, call a dummy Type.GetProperties()  before any GetProperty or SetProperty.

  • ACE isssue for rserver with multiple IP on the same NIC

    Dear all,
    I'm doing to configure an ACE with bridged mode to load balance incoming traffic to 3 TMG servers following this network diagram:
    The system design require to have 4 IP address on the same NIC, and 3 VIP for each pool of the IP as presented in the diagram (rserver: 172.22.14.52 & 62 & 72 - VIP: 172.22.14.82). The attached configuration of the ACE was tested successfully, but we discover that some NIC crash after a non-specific period (Server cannot ping their default gateway: Destination unreachable). I need then to restart the server to get things going well.
    After troubleshooting many things, I discover that when I remove the service policy on the ACE interface, the problem disappears and server continue to work correctly.
    Is it possible that this problem is due to having on the ACE arp table 3 IP address having the same mac? and how I can solve it?
    Thanks, Abdelaziz

    This is for help the show arp result. I see that the four IP address of each server have the same mac address but only the first IP is LEARNED. Is it normal?
    ================================================================================
    IP ADDRESS      MAC-ADDRESS        Interface  Type      Encap  NextArp(s) Status
    ================================================================================
    172.22.14.51    00.c0.dd.16.90.4c  vlan2014  LEARNED    15067  13964 sec    up
    172.22.14.52    00.c0.dd.16.90.4c  vlan2014  RSERVER    15051  173 sec      up
    172.22.14.53    00.c0.dd.16.90.4c  vlan2014  RSERVER    15057  177 sec      up
    172.22.14.54    00.c0.dd.16.90.4c  vlan2014  RSERVER    15059  178 sec      up
    172.22.14.61    00.c0.dd.16.ae.60  vlan2014  LEARNED    15058  13677 sec    up
    172.22.14.62    00.c0.dd.16.ae.60  vlan2014  RSERVER    15050  172 sec      up
    172.22.14.63    00.c0.dd.16.ae.60  vlan2014  RSERVER    15064  181 sec      up
    172.22.14.64    00.c0.dd.16.ae.60  vlan2014  RSERVER    15061  179 sec      up
    172.22.14.71    00.c0.dd.16.93.b8  vlan2014  LEARNED    15065  13700 sec    up
    172.22.14.72    00.c0.dd.16.93.b8  vlan2014  RSERVER    15048  171 sec      up
    172.22.14.73    00.c0.dd.16.93.b8  vlan2014  RSERVER    15062  179 sec      up
    172.22.14.74    00.c0.dd.16.93.b8  vlan2014  RSERVER    15068  291 sec      up
    172.22.14.253   88.43.e1.75.9a.80  vlan2024  LEARNED    15019  9328 sec     up
    172.22.14.254   88.43.e1.75.96.00  vlan2024  GATEWAY    14463  36 sec       up
    172.22.14.250   00.23.5e.26.1e.71  bvi3      INTERFACE  LOCAL     _         up
    ================================================================================

  • I'm having problems in a GOOP applicatio​n with multiple instances of the same object running simultaneo​usly.

    I?ve written an application to control a system with multiple lamps. Each lamp in the system has its own power supply. Each lamp object contains a reference to its power supply. The application contains an array with the references to all the lamps in the system. Each lamp is in charge of monitoring itself and setting its power supply?s voltage according to the applications commands, therefore each lamp needs that its ?run me? method will run as long as the application is running i.e. the run method has to be reentrant. Because there are multiple lamps and because the ?run me? methods for each lamp run simultaneously, to over come this problem each lamp has a met
    hod ?run? that calls ?run me? with ?RUN VI? invoke node with the ?Wait until done? set to false. When I run the application, it seems to work but if I check the AO there is no change in the output, and the lamps seem to be reading their input from the same channel. I can?t seem to find the problem, I think that the fact that the method is reentrant causes some sort of mix-up in the separate object references. Also because the method is reentrant I can?t debug it (with one lamp it seems to work ok). Does anyone have any idea what could be causing this problem.
    P.S I'm having problems attaching my sample program to this message. You can contact me at [email protected] to recive the sample program I wrote.

    Jean, Thanks for your answer, I've tried checking the invoke node that calls the "Run VI" method but it doesnt return an error any of the times its called even that the Vi that it called is still running. I also tried your solution of changing the object's "Run" method to a template but that doesnt work either. I can't seem to post the sample progam that demonstrates the problem, is it possible to send it to you by email, contact me at [email protected]
    Attachments:
    Sample_program.zip ‏926 KB

  • Problems with multiple connections in the same transaction

    Hi all !
              I'm have two questions regarding the way weblogic handles multiple
              connections.
              1) first, I don't understand why weblogic always create a new Managed
              Connection when I'm asking for 2 connection handles on the same connection
              factory and with the same connectionRequestInfo. Isn't it supposed to share
              connections ?
              For instance, the following snippet of code results in the creation of 2
              managed connections:
              ConnHandle conn1 = myCF.getConnection(myRequInfo);
              ConnHandle conn2 = myCF.getConnection(myRequInfo);
              The class corresponding to myRequInfo does implement the equals and hash
              method, so that weblogic's connection manager could use them to check that
              the queried connections are the same, and thus could share a single
              ManagedConnection between multiple connection handles. Apparantly it does
              not do that...
              2) OK, I just let weblogic create the 2 managed connections, but... My use
              of the connections is as part of a transaction. Here is what happens:
              ConnHandle conn1 = myCF.getConnection(myRequInfo);
              // a new managedConn1 is instanciated. the following happens (just a
              description)
              // xar1 = managedConn1.getXAResource()
              // xar1.start(NOFLAGS)
              // I use the conn1 handle
              conn1.close();
              //xar1.end(SUSPEND)
              ConnHandle conn2 = myCF.getConnection(myRequiInfo);
              // a new managed connection managedConn2 is instanciated.
              // xar2 = managedConn2.getXAResource();
              // xar2.start(RESUME)
              // I use conn2 handle
              conn2.close();
              // xar2.end(SUSPEND);
              // my bean returns from the remote invocation
              // the client of the bean asks to commit (using UerTransaction.commit on the
              client side)
              // xar2.end(SUCCESS)
              // xar2.commit(onePhase=true);
              // managedConn2.cleanup();
              And that's all. So, as one can see, managedConn1.cleanup was never called.
              When looking in the weblogic console, I can see that I have one connection
              with 0 handle and one with 1 handle, deemed as still being in a transaction.
              So, the conenction manager apparantly loses a managed connection during the
              transaction. And it's very very bad because after a couple of transactions,
              I'm running out of managed connections (I had set a limit of 10).
              Any one has seen such a weird behavior ? Is this a problem on my side, or
              weblogic's ? Thanks for your help.
              Sylvain
              

              I ran another test. This time I have a bean that makes use of a connector
              once per method invocation. The bean method invoked is "sayHello" and it
              gets a connection to the EIS, perform an operation on it and release it. The
              connector I developed uses XA transactions.
              My test client just calls 3 times myBean.sayHello().
              I can distinguish two cases:
              1) first, the client doesn't do transaction demarcation. In this case, since
              the sayHello method is marked as requiring transaction, the folowing happens
              in the bean:
              // **** first invocation of the bean
              connHandle = myCF.getConnection();
              // managedConn1 is instanciated
              // xar1 = managedConn1.getXAResource()
              // xar1.start(NOFLAGS);
              // managedConn1.getConnection gives a connection handle
              connHandle.doSomeWork();
              connHandle.close()
              // xar1.end(SUCCESS);
              // the bean returns from its invocation
              // xar1.commit(onePhase=true)
              // managedConn1.cleanup()
              // **** second invocation of the bean
              connHandle = myCF.getConnection();
              // managedConnectionFactory.matchManagedConnection is called. It returns the
              managed connection (managedConn1) that is in the passed set
              // xar1 = managedConn1.getXAResource()
              // xar1.start(NOFLAGS);
              // managedConn1.getConnection gives a connection handle
              connHandle.doSomeWork();
              connHandle.close
              // xar1.end(SUCCESS);
              // the bean returns from its invocation
              // xar1.commit(onePhase=true)
              // managedConn1.cleanup()
              // **** third invocation of the bean
              connHandle = myCF.getConnection();
              // managedConnectionFactory.matchManagedConnection is called. It returns the
              managed connection (managedConn1) that is in the passed set
              // xar1 = managedConn1.getXAResource()
              // xar1.start(NOFLAGS);
              // managedConn1.getConnection gives a connection handle
              connHandle.doSomeWork();
              connHandle.close
              // xar1.end(SUCCESS);
              // the bean returns from its invocation
              // xar1.commit(onePhase=true)
              // managedConn1.cleanup()
              2) second case : the client performs transaction demarcation. In that case,
              the connection manager instanciates 3 managed connections, calls start/end
              on each XAResource corresponding to each managed connection, calls commit
              once, but also calls cleanup only once, leaving 2 lost managed connections
              The client looks like this:
              UserTransaction utx = context.lookup("javax/transaction/UserTransaction");
              utx.begin();
              MyBean myBean = ctx.lookup(".......");
              myBean.sayHello();
              myBean.sayHello();
              myBean.sayHello();
              utx.commit();
              on the server the following happens:
              // **** first invocation of the bean
              connHandle = myCF.getConnection();
              // managedConn1 is instanciated
              // xar1 = managedConn1.getXAResource()
              // xar1.start(NOFLAGS);
              // managedConn1.getConnection gives a connection handle
              connHandle.doSomeWork();
              connHandle.close()
              // xar1.end(SUSPEND);
              // the bean returns from its invocation
              // **** second invocation of the bean
              connHandle = myCF.getConnection();
              // managedConn2 is instanciated
              // xar2 = managedConn2.getXAResource()
              // xar1.isSameRM(xar2) is called. returns true
              // xar2.start(RESUME);
              // managedConn2.getConnection gives a connection handle
              connHandle.doSomeWork();
              connHandle.close()
              // xar2.end(SUSPEND);
              // the bean returns from its invocation
              // **** third invocation of the bean
              connHandle = myCF.getConnection();
              // managedConn3 is instanciated
              // xar3 = managedConn3.getXAResource()
              // xar2.isSameRM(xar3) is called. returns true
              // xar3.start(RESUME);
              // managedConn3.getConnection gives a connection handle
              connHandle.doSomeWork();
              connHandle.close()
              // xar3.end(SUSPEND);
              // the bean returns from its invocation
              // the client invokes commit on the UserTransaction
              // xar3.end(SUCCESS);
              // xar3.commit(onephase = true);
              // managedConn3.cleanup();
              And so, managedConn1 and managedConn2 got lost in the way...
              What's more puzzling, it's that when monitoring my connector with the
              console, I can see that there are 3 connections. 2 declared as still having
              one handle used and being in transaction, and one not in transaction and
              with 0 active handle. BUT when monitoring the JTA part of the server, I can
              see that there has been 1 transaction that committed, and no connection is
              "in flight" as the console says. So, on one side the console says 2 managed
              connections are still part of a transaction while on the other it says that
              no transactions are currently in flight.
              Thanks for any kind of help on this very bizarre behavior.
              Sylvain
              

Maybe you are looking for

  • Quoting/threading phenomena in mail.app -- due to problems in incoming messages?

    Folks: Mail 5.1 on MacOS 10.7.x I began using Mail.app when I installed 10.7, shortly after the initial release. No problems with respect to unformatted email or replying to short, trivial length formatted message.  For complex, on-going discussions 

  • GDM sets brightness to 0

    When starting GDM, my screen fades to black. I have auto-login enabled, so I can just hit the brightness key on my laptop and bring the brightness back up. If I disable auto-login, I'm not able to see the screen, but I also can't use the brightness k

  • G5 computer flashing on and off... broken??

    I was on the phone with Apple for something and they said to press command + option + P + R. Then my computer started making a really weird noise and the power light was blinking on and off three times then stopping... then repeating over and over. H

  • Playlist for Apple TV

    Can you create a playlist for videos with a loop or random play? Mac Book Pro   Mac OS X (10.4.9)  

  • Error printing : Tree connect failed (NT_STATUS_DUPLICATE_NAME)

    We have a Kyocera printer that uses a queue on Windows server of Equitrac. To configure the printer perform the following configuration in system preferences: Printer and fax Add a printer "+" Customize Toolbar Add the Advanced Menu Select Type: Wind