Can a Tuxedo service send a message to itself?

Hello,
is it possible for a Tuxedo service to send a request to itself?
The scenario is this:
- The same Tuxedo service is provided by multiple processes (for scalability). The processes are single-threaded.
- While handling a request in a transaction (XA transaction is started outside the process), the service code determines that some cached data needs to be refreshed. This refresh needs to be done outside the current transaction.
- The service send an non-transactional async request to itself (the same process). [How?]
- The transactional request completes.
- The non-transactional request is handled and refreshes the cache.
- The next transactional request is handled (by the same process), and uses the refreshed cache data.
Is this possible? The challenge seems to be that the same process gets the non-transactional request. With multiple instances of the service, any instance could normally get the request (eg. when using tpacall()).
Thanks...
Roger

Hi Roger,
A couple of comments:
1) There isn't any standard way of forcing a request to go to a specific server when the service is offered by multiple servers. The traditional way of handling the need to make a request to a specific server is to explicitly advertise the service with a synonym name that is unique to the server. So to call the BAL service in a particular server with a PID of 1433, the server would advertise the BAL server as BAL_1433 or something similar, and then any requests that had to be made to that particular server would be made to BAL_1433 instead of BAL. Unfortunately this is rather cumbersome and doesn't scale particularly well. One feature we are adding to Tuxedo in an upcoming release is client server affinity. With this feature an application could specify that all requests are routed to the first server that handles a service. Thus subsequent requests that are made to services while in a "session" with the server would always be routed to that server. While this client/server affinity might be a solution in the future, it's not really designed for the scenario you mention, i.e., performing an asynchronous out of band request to the same server.
2) In your scenario under the point where you ask "how?", you could use the above approach, although the call would have to be a tpacall with TPNOTRAN set (which you already indicated) but would also have to set TPNOREPLY as it appears you are planning on performing a tpreturn before processing the asynch request.
3) Obviously another solution would be to make the server multi-threaded and handling the refresh of the cache in a separate thread and not use a tpcall/tpacall to initiate the cache refresh.
4) Although not likely to be an option, the Tuxedo CORBA infrastructure will support what you are trying to do. By activating an object in a process with a process activation policy, you could make a request to that object reference and be guaranteed the request would return to that same server.
5) Finally one other possible solution, although probably inelegant and may not scale as well would be to use data dependent routing and only have a single server offering the service in each group.
As an aside, we are planning on adding a distributed data caching mechanism to Tuxedo in a future release. Yeah, I know that doesn't help right now, but it is certainly something to look forward to! :-)
Regards,
Todd Little
Oracle Tuxedo Chief Architect

Similar Messages

  • New iphone can't receive or send text messages

    I can't receive or send test messages. I tried turning airplane mode on and off. I also don't seem to have a data plan added to my service. I looked at my contract and it just shows family talk. I thought they automatically add this to iphone contracts.

    It doesn't display an error message. It sends it out, but the recipient never receives it. I think the Best Buy person screwed up my service some how. She didn't sign me up for a data plan or a text message plan for this account. I was supposed to keep my same plan. It should still send texts though (at a higher non-text plan rate).

  • Hi! I brought an iPhone 4 off my friend at work. The day I brought it, it was working fine but now I can't seem to send any messages or make phone calls. The network is showing up fine but each time I try to make a call it says "call failed" help any1?

    Hi! I brought an iPhone 4 off my friend at work. The day I brought it, it was working fine but now I can't seem to send any messages or make phone calls. The network is showing up fine but each time I try to make a call it says "call failed" I can't seem to send any messages either? I can use the Internet fine and everything else on the phone. Can anyone help?

    Hi chelsinator,
    You can reset the phone and it won't cause any problems or cause you to lose any data - Hold down the Home and Power buttons at the same time and continue to hold them down until the Silver Apple appears.
    The other thing you should do is to reset your network settings: Settings>General>Reset>Reset Network Settings. You will have to set up your Wifi again, but that oftentimes clears things up.
    Cheers,
    GB

  • How to use canon pixma MX377. I can't receive and send fax messages

    Can please anyone send me complete instruction manual in english for my pixma canon MX377 machine because I can't receive and send fax messages. I'm connected to a PBX extension line or a xDSL splitter. Every time i called a person on the machine, I can hear him but he can't hear me. Thank you very much.

    Hi rgc,
    The PIXMA MX377 user's manual is available in an online format and can be downloaded from the Canon Asia website.  The following link will take you to the Manuals page for the PIXMA MX377:
    http://support-asia.canon-asia.com/P/search?model=PIXMA+MX377&filter=0&menu=manual
    Once on the page, please scroll through the list and select the manual that corresponds to your operating system (Windows or Mac), then click the DOWNLOAD NOW button on the following page that appears to download and view the manual.
    This didn't answer your question or issue? Find more help at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • I can't make a call but i can received calls and send text messages its say you cannot make a call check the phone settings!

    i can't make a call but i can received calls and send text messages its say you cannot make a call check the phone settings!

    It is not a cell phone.

  • Help!!! I can't receive or send text messages...only imessaging

    How can I get my new iPhone 4s to send and receive text messages?

    Hi, I have a ipod touch 3g with the latest ios 5.  I can't seem to send text messages via the green "message" icon.  The imessage icon is on but it doesn't work....would you know of anything else I can do to allow messages to send and receive??  thanks

  • Is my iPad limited to iMessages? I can't seem to send text messages to non iPhone/iMessage users...grrrr

    Frustration is setting in after using my new mini iPad. My text messages seem to be limited to iMessages!?  Horrible since my friends and family are not all iphone users!  Is my iPad limited to iMessages? I cant text my daughter who has the Droid or others that don't have iMessage users!!!

    The phone number on the iPad is not active for cell voice, only for cellular data. You are not paying anything for voice or SMS (texting services) on your iPad, only for cell data. Texts to non-iOS devices would have to be SMS and use the cell voice system which is not present on your iPad.
    There are apps, such as TextFree, which will assign you a virtual phone number and allow you to emulate sending SMS messages from and to your iPad.

  • I can make calls and send text messages on my new iPhone 5, but incoming calls and texts still go to my old (non-Apple) phone. Is this a problem with the phone set up, or is it a problem with my old carrier or my new carrier?

    I can make calls and send texts on my new iPhone 5,  but all incoming calls and texts are received by my old (non-Apple) phone.

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • I can't receive or send text messages, other than iMessage

    i cant receive or send text messages other than i message. HELP.

    Me neither. It is really annoying. Did you ever get it figured out?

  • Define Web Service - Send Asynchronous Message

    Hi All,
    I have to send an asynchronous message from a java web application to XI. For this I tried to used the Define Web Service option in XI. However the documentation says that this tool can be used only for Synchronous interfaces. Is this the case even now? What would be an alternate approach to accomplish this?
    Thanks,
    Sandeep

    Hi,
    As explained above , no need to have the webservice only in the case of Sync communication , you can also achieve this by way of generating the WSDL from ID -- tools and added the Quality of service = EO.
    Please see the below links to get more details
    ThirdPart(WebService) <=> XI <=> SAP(Async)
    Check this SAP Help-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    Async  web service.
    Communication between SAP System & Webservice Using Proxies - /people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
    Also see the below links about webservices
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    Regards
    Chilla..
    <i>Points rewarded if it is helpful..</i>

  • Why can't I receive/ send multimedia messages?

    Why can't I send/receive mulitmedia messages?  I keep gettng an error message that says the message has failed or is expired. Help!

        It's imperative that messages are up and running! What device do you currently have? Are other data services up and running? (MMS run over data unlike SMS which run over voice service)
    YosefT_VZW
    Follow us on Twitter @VZWSupport

  • Can't input text, send in message window

    When creating an outgoing email in Mail (both new and replies), I can only type about 5 characters in the main message area before I get a "clonk" system error sound. At the same time, I cannot enter anything in the Subject field. The system is not frozen, as I can still input addresses. But when I click Send, I get the same system error sound.
    I have two accounts set up on my iMac. Both accounts have .Mac email accounts using OS X Mail, but I only have this problem with one account on this computer (i.e., I can send email fine from the second account.)
    Any help will be appreciated.
    iMac (Flat Panel)   Mac OS X (10.4.8)   iMac (Bondi Blue Rev. A)

    This problem in Mail is usually caused by some Launch Services cache or preferences corruption. The following article describes how to manually reset Launch Services -- the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
    Resetting Launch Services
    If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, this other article provides links to some utilities that can be used for troubleshooting and cache cleaning:
    Resolving Disk, Permission, and Cache Corruption
    It seems that the most appropriate utility for solving this particular problem is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
    Side effects of System cache cleaning
    As an example, this is how you should proceed with OnyX:
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Click Maintenance. In the Reset section, check LaunchServices database.
    4. You may uncheck any other pre-checked options if you wish.
    5. Click the Execute button.
    6. Restart the computer.

  • Why is it, after all the years with this service, my wife can't get service, send a text without a long delay from the high school she works at 4 miles away??? The phone works great in the middle of corn fields but in the dead center of town, at the high

    I have been with Verizon since they started in Peoria, IL and yet to this day I don't understand why when my wife goes to work at a high school, dead in the middle of town, she has no service, can't send a text without a huge delay and can't receive phone calls?  I can be out of Peoria in the middle of a corn field and I get calls without a problem, yet but within the city no service at Peoria High School or very limited.  This causes the phone to drop from LTE and then eats the battery.

    Service isn't guaranteed inside of buildings especially buildings filled with steel, concrete and electrical wiring. High School buildings definitely have all three.

  • I can't send mail via hotmail. I can read new mail, but can not reply or send new messages.

    I am using a mac powerbook, 2004 running MAc os x. Yes, I know it is old. But I only use if for e-mail. this week, I can't send or reply to messages via firefox or any other browser. I can't succesfully download updates. Can you advise?
    thanks
    Sharon

    Go to Mail Preferences- Accounts and confirm you are providing Gmail what they require to send and receive mail. And DON'T specify Secure Socket Layer. Some mail accts don't like SSL
    Good Luck to you.

  • Can't open or send text messages. Need help please.

    My sprint 700p will not let me access my messages. I can open the messaging app. but if i try to open the message the phone resets itself. I tried to see if i could recieve a text but when I get a incoming text the phone resets itself again. I've tried hard and soft resets still the same. Right now I'm willing to try anything reasonable to restore my texting capablities.
    Post relates to: Treo 700p (Sprint)

    Whenever you preform the hard reset do you restore your data back to the device?
    Try hard resetting your device and then see if the messaging application resets when someone sends you a message if it doesn't then it is the messaging application that has become corrupted.
    The best method of getting rid of this problem is to locate your backup folder and remove it.
    The folder is located in C:/program files/palm/[username]
    The username folder is going to be a variation of your hotsync ID. (You can find this in Palm desktop and the hotsync application of your device)
    Inside that folder is a folder that says backup..rename this to backup.old once it is renamed then hotsync your other data back to the device.

Maybe you are looking for

  • How do i fix "Merge to HDR.jsx could not be found" cs6?

    how do i fix "Merge to HDR.jsx could not be found" cs6?

  • Help needed: FRM-10221 on 10g r2 (10.1.2.0.2) forms and report service

    hi, somehow i managed to install 10g r2 f&r service on an x86 machine with rhel4 es update3. moving on, i was given working fmb and mmb ver 5 files (edited using developer2000 and run against 8.0.x db) by a collegue. i've also get 10g dev suite insta

  • MM workflow

    Hi Is it possible to find out the workflow for creation of purchase request, approval and creation of purchase order followed in our organization through sap system without users/functional peoples intervention. Please provide inputs Regards Lavanya

  • Automatically set finder icon size

    Hi, there is a apple script or something that can automaticcaly change icon size for folders and documents in finder? My target is to show the max number of icon inside the finder window... thanks

  • Kinit mounts root filesystem as read only [HELP][solved]

    hello I've being messing around with my mkinitcpio trying to optimize my boot speed, i removed some of the hooks at the beginning i couldn't boot, but then now i can boot but the root filesystem mounts as read only, i tried everything my fstab looks