How more than one MDB can be made to run in single transaction

Hi All,
I am working on EJB 2.0 with Application server as Websphere 5.0 and Messaging middleware as WebSphere MQ5.3
I am facing a design issue, I need to use more than one MDB in single transaction unit. Since an MDB can only run in transaction started by itself I am looking for some alternative approach
The problem in detail is as below:
Consider there is an MDB M1 listening on Queue Q1
Bean M1 reads Message (say msg1) from Q1, writes another message into Q2.
We have a mainframe system which reads message from Q2 does some processes and write it's response into Queue Q3.
Now we have another MDB M2 in same application server listening on Q3.
The requirement is if there is any ERROR in message at Q3, transaction started by MDB M1 should be rolled back and hence the message (i.e msg1) should be put back on queue.
Since trancation started by MDB M1 and M2 are independent I do not have any control to rollback M1 from M2.
Pls suggest me what alternative approach I can use.

I think if you are using container managed
transaction and have set the trans attribute to
"required" then MDB M-1 and MDB M-2
should have same container transaction.
wrong !
There is never a client transaction context available when a message-driven bean is invoked because a transaction context does not flow with a JMS message. [EJB spec. 2.0 15.4.7]
Nishant Saini
Daffodil Software Ltd.
http://www.daffodilsolutions.com
Nishant , you should have added this to you'r site:
Why India ?
India 's abundant human resources: a bunch of clueless developers !
:-)

Similar Messages

  • Combo box or similar where more than one selection can be made

    Hi. I need to create a combo box field or similar where more than one selection can be made. Does anyone know if this is possible? I know this can be done with the check box tool but the client wants a drop down box. Thanks in advance.

    I don't quite understand some of this but of course you can bind more than one object into the RMI Registry. If you use different names the clients will use the object corresponding to whatever name they looked up. If you rebind different objects to the same name, the clients will use the object that was there at the time they did the lookup.
    Clustering is a problem for RMI/JRMP because stubs are not location-transparent: they refer to the originating JVM. If you need this kind of functionality I would use RMI/IIOP and do some CORBA magic in the ORBs at both the clustered servers. CORBA references are location-transparent so a service can be logically 'moved' from one JVM to another.

  • How we can lock No more than one user can use the table  at a single time

    Hi Abapers,
    0)  which  function modules to lock & unlock a table.
    1) When you execute the program, we can check if there is any lock on this table. If yes, the user should be able to only view the table contents and not modify.
    2) If there is no lock, then lock the table and go into change mode.
    3) On exiting from the program, unlock the table using the function module.
    4) more than one user can't modify the table just display.
    Note: If there is any lock, display message saying table is locked.
    Plz help me for this requirement.
    Thanks
    Nani

    Hello Nani
    Have a look at the lock object EMMARAE (<i>Lock MARA and MARM/MAKT exclusively</i>) in transaction SE11.
    Inspect the F1 help for field <b>Lock mode</b>:
    DE ENQMODE
    Short Text
         Lock mode
    Definition
         Defines how to synchronize table record access by several users.
    The following modes exist:
         Exclusive lock
             The locked data can be read or processed by one user only. A request
             for another exclusive lock or for a shared lock is rejected.
         Shared lock
             Several users can read the same data at the same time, but as soon
             as a user edits the data, a second user can no longer access this
             data. Requests for further shared locks are accepted, even if they
             are issued by different users, but exclusive locks are rejected.
         Exclusive but not cumulative lock
             Exclusive locks can be requested by the same transaction more than
             once and handled successively, but an exclusive but not cumulative
             lock can only be requested once by a given transaction. All other
             lock requests are rejected.
    If you want to lock a standard table search whether the table is used in lock objects (<i>Where-Used-List</i>). If it is a customer table you have to create your own lock object (including two function modules: one for enqueuing and the other for dequeuing).
    The lock modules can be found in menu <b>GoTo -> Lock Modules</b>.
    Given these lock modules the logic should be quite clear after starting the program:
    1. Request lock -> if successful, continue in Change mode; -> if failed, continue in Display mode
    2. Before leaving the report remove lock (note: no problem if no lock has been set in the beginning).
    Regards
      Uwe

  • How to make more than one person can access the database at one time

    how to make  more than one person can access the database at one time 

    Please post further f'up's in the Access forum.
    In short: for different reasons it is best practice that each user gets its own local copy of the database. This means that you need to split it into a front-end which only consists of the forms, queries, reports etc. Everything which doesn't need to be
    shared. And a back-end, which only stores the data.
    Take also a look at Allen Browne's article:
    Split your Access database into data and application.
    When you've splitted your database, you may often consider to use SQL Server as back-end. Here you may read Armen Stein's
    The Best of Both Worlds: Access-SQL Server Optimization.

  • More than one instance of same Declarative Component in a single JSF page

    Hi,
    I have problem in using more than one instance of same Declarative Component in a single JSF page.
    Only one instance is visible/rendered.
    If I drag and drop more than one instance of same Declarative Component in a single JSF page, only one is displayed.
    Not sure why is so....have I missed on some configuration?

    What version of JDeveloper are you using? What declarative component?
    In general when creating JSF UI components, care must be taken to avoid certain pitfalls that happen when one uses that component more than once in a page...so depending on which component you are using, one might surmise that more or less care was taken on that component when building it.
    If it was well tested though...like if it was an ADF Faces component, then that is probably not the problem.

  • I want to acquire data for multiple channels using PCI 6120 that works on traditional DAQ. I cannot access more than one channel, can someone help me or if someone has data acquisition vi for PCI 6120, please send me over . Thanks

    I have PCI 6120 card and I want to acquire data for more than one channels. I'm using traditional DAQ to get it. But it does not work for more than one channels. If someone has a data acquisition vi for PCI 6120. Or some suggestion how to aquire data please let me know.
    Thanks

    Hello DSPGUY1,
    You can definetly acquire from several channels. For your convenience, I have appended below the content from help that tells you how to configure it:
    "channels specifies the set of analog input channels. The order of the channels in the scan list defines the order in which the channels are scanned during an acquisition. channels is an array of strings. You can use one channel entry per element or specify the entire scan list in a single element, or use any combination of these two methods. If x, y, and z refer to channels, you can specify a list of channels in a single element by separating the individual channels by commas, for example, x,y,z. If x refers to the first channel in a consecutive channel range and y refers to the last channel, yo
    u can specify the range by separating the first and last channels by a colon, for example, x:y."
    Hope this help.
    Serges Lemo
    Applications Engineer
    National Instruments

  • How do I tell FiIrefox to only restore a sesson of more than one tab, and disregard the restore of a single tab session (ie. closing the browser)

    I am on the beta channel of Firefox (currently 17.0, by the about window) and I cannot seem to find a way to limit the size of a browsing session that is automatically restored when re-opening the browser. In the past, Firefox would only save sessions of more than one tab when closing the entire application, and ask me about restoring said session when restarted. Now, Firefox seems to treat a session of just a single tab the same, which is a preference I dislike, given that I use a blank start page to great effect.
    I am using a number of addons, including Tab Mix Plus, which specifically modifies tab behavior (although I have it configured to use Firefox's default session manager), but the problem persists even with all addons disabled.
    I cannot seem to find an option in about:config to change this behavior. Is this a permanent change within Firefox, and if so, is there or will there be an option to specify the number of tabs that constitute a session that will be automatically saved?

    Make sure that Firefox closes properly to prevent session restore from restoring a crashed session.
    *"Hang at exit": http://kb.mozillazine.org/Firefox_hangs
    *"Firefox hangs when you quit it": https://support.mozilla.org/kb/Firefox+hangs
    Use "Firefox/File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") to close Firefox if you are currently doing that by clicking the close X on the title bar.

  • How can I run more than one VST on a PC slave running Logic 5.5?

    I have moved from PC to Intel Mac (good!) and wish to run several non Intel VST apps from a slave PC running Logic 5.5 (ie Trilogy, Atmosphere).
    My question is (and forgive my stupidity if the answer is obvious) how can I address each virtual instrument from the Mac? Currently I operate MidioverLAN CP which enables my PC computer to receive midi but I seem only to be able to access one instrument at a time, not permitting me to run several apps at once.
    many thanks in advance for any kind help

    Logic 5.5 is not an ideal VST host, as by default, only one virtual instrument is in Live mode, and you can't rig up environment solutions without a large latency (which makes it unusable).
    There is a workaround involving putting a bypassed IO plugin on your instrument tracks, and then you can use environment cabling without the large latency (it tricks Logic into putting all instruments in Live mode). Then you'd cable your physical input through a channel splitter and onto the audio instruments to assign each a MIDI channel as has been discussed to death on this forum.
    If there isn't a reason you must use Logic 5.5 PC to do this, then there are much better PC VST hosting apps and I recommend looking into them...

  • How to get Airport Express to authenticate the PPPoE connection so that more than one computer can get online

    Hello,
    I have to use a PPPoe Connection with my ISP and have some troubles setting up the Airport Express. I can only use the Airport in Bridge Mode and DHPC and authenticate the PPPoE on the mac individually. With this solution, no second computer can be set up to use internet at the same time.
    I want the Airport Expres to authenticate and pass on "free internet" so that I can connect as many devices as I wish in a normal manner (without PPPoE). However, as soon as I put all the relevant information into the Airport Express, no Internet is coming through anymore. I can connect the computers to the Airport, but there is no interet and the Airport Utility will tell me the same in its settings.
    What can I do? A support member in the apple store told me there is no way to authenticate with the Airport Express but could not tell me what the Airport Express' PPPoE setting was there for in the first place. My ISP told me many customers use Airport Express Routers and that there should not be any problem.
    I am stuck:(
    Thanks for your help in advance

    The AirPort Express can support PPPoE regardless of what the Apple Store employee told you.
    To configure the Express to do so you will need to use the AirPort Utility:
    AirPort Utility > Select the Express > Edit
    Internet tab > Connect Using: PPPoE
    Enter the appropriate PPPoE information that your ISP has provided you in the fields on this tab.
    Click on Update and allow the Express to restart.
    The important thing about PPPoE is that only the device that is directly connected to the Internet should be configured of providing the PPPoE credentials, all other devices should be configured for using DHCP. Note: I am assuming that your AirPort Express is the only router in your current network configuration and that it is directly connected to an Internet modem and not another router upstream of it.

  • When a single-page form expands to more than one page, can you reference the new individual "pages" that have been created by the expanding table?

    Don't think this is possible but would love to be wrong.
    Bullet Points:
    1) In my demo form (simple hierarchy: form1.page1.table1.row1), 8 occurrences  (instance "0" through instance "7") of the repeating row1 can be visible
         before it causes a page break and adds another "page".  No issues there.
    2) I'm thinking about trying to control the end-users navigation abilities to only on-screen "previous page" and "next page" buttons.
         (So no scrolling from page to page; keep them where we want them.) Only way I can see making this work is if the form is designed
         and coded to only allow one page to be visible at a time --- nesting things correctly in a parent object then hide all necessary subforms
         and only make the appropriate subform visible.
    3) But when working with tables,  when occurrence 9 gets added (aka instance 8), it triggers an on screen "Page 2" to be added.
         End user can now scroll between Page 1 and Page 2. 
    4) Once Page 2 has been added, is there a way to reference Page 1 (as we see it on screen) and set it to be hidden?
    5) Is what we are seeing on screen as "Page 1" and "Page 2"  actually this.resolveNode("page1[0]") and this.resolveNode("page1[1]") ?
         Tried messing around with referencing it this way but didn't seem to work.  Maybe I had a typo but if we never set the subform named "page1"
         to allow multiple instances, I'm guessing it's not referenced this way.
    Any thoughts would be great.  Thanks so much to this community.
    Brian

    If you're looking at learning a bit more about database design (looking at your description of what you've done in creating a separate table for each category of item sold sounds like you're approaching it as though it was a flat-file rather than a relational database), there's a few books that I could direct you to:
    Beginning Database Design (ISBN 978-1590597699)
    Database Design for Mere Mortals (ISBN 978-0201694710)
    Databases Demystified (ISBN 978-0072253641)
    Absolute Beginner's Guide to Databases (ISBN 978-0789725691)
    I've also got an older book that's always sitting by my desk called Dreamweaver MX Databases (ISBN 978-0782141481), which I still reference regularly - chapter 3 on coding practices and chapter 5 on database design provide very good overviews of the subject.
    There's also a Database Development for Dummies, but I'm not a huge fan of the series where they're tackling technical subjects.
    Without knowing the data you're modeling, it's quite difficult to make generalisations, but I'd probably be looking at a single table called 'Product' (which contains all the product records), and which had in it a boolean for 'new item' and for 'on sale' (you could then use SQL to filter out new and/or sale items when you create your recordset). I'd then have a look up table called 'Categories' which held the values 'necklace', 'handbag', 'belt', and 'purse' which the Product table could then reference to identify.
    Breaking your data down into a logical structure like this is called 'normalisation' (see http://en.wikipedia.org/wiki/Database_normalization) - although it's a bit technical. There's a simpler practical explanation of a similar query to yours at TechRepublic (http://articles.techrepublic.com.com/5100-10878_11-5288500.html), which uses MS Access, but don't worry about that as it's teaching a concept which is applicable no matter what the database server.

  • Can only open firefox once, have to restart to open more than one browser. can't upload any pictures the box doesn't pop up, my browser settings are diff now

    Firefox just changed out of nowhere. I can only open firefox once... I used to have atleast 2 browsers up using them both on different sites, but now I can't have but one firefox browser up (not tabs, but firefox pages) Also when I am trying to upload images on ebay or any other site nothing happens... nothing pops up. I click it over and over and nothing even pops up. This is exactly what happens with the firefox browser in my first question... I can click the firefox icon a million times and nothing comes up. My tabs are all gone and it doesn't show anything like I had before this all changed? Did I reset everything some how? I do not recall clicking anything to go back... I do remember clicking an update because it kept poping up so I did it and that is the last thing I remember before this happened! UGHHH!

    As I asked previously are you able to have tabs open as a window by using the right clicking option ?
    When you close Firefox you should use
    *'''Firefox button -> File -> Exit '''
    Are you doing that ?
    I suspect what may be happening is Firefox is hanging as it closes down.
    * see [[Firefox hangs or is not responding - How to fix#w_firefox-hangs-when-you-quit-it]]_firefox-hangs-when-you-quit-it
    * this explains how to check & if necessary kill the process [["Firefox is already running but is not responding" error message - How to fix it#w_end-firefox-processes]]_end-firefox-processes
    A related possible problem is that you may have built up many copies of the restore files. These are stored in the Firefox profile. The easiest method of finding the profile location istouse
    *use '''Firefox button -> Help -> Troubleshooting Information <br /> -> [Show Folder]'''
    *see [[Profiles - Where Firefox stores your bookmarks, passwords and other user data]]
    You need to look for the files ''sessionstore.js'' and numbered duplicates of that. Delete them.
    * see http://kb.mozillazine.org/Firefox_hangs#Multiple_sessionstore.js_files

  • Is more than one host can be shared in one datastore?

    In Exsi , maximun number of host can be shared in 1 datastore or not.

    yes, we can host multiple VMs ,if there is free space on that particular datastore.

  • How to return more than one string?

    Hi,below is my code:
    @WebMethod(operationName = "CheckBooking")
    public String CheckBooking(@WebParam(name = "ID")
    String ID) {
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:Flight");
    // Statement stmt = con.createStatement();
    String b="Select Destination, Date from Flight_Booking WHERE BookingID=?";
    PreparedStatement ps=con.prepareStatement(b);
    ps.setString(1,ID);
    ResultSet a = ps.executeQuery();
    //Print the data to the console
    while(a.next()){
    return a.getString(1);
    catch( Exception e ) {
    e.printStackTrace();
    return "a";
    Actually, I would like to select Destination and Date from the database, but if I set the return result as string, then only Destination will be return,how can I modify it so that both of the Destination and Date also will be return?As I know, .Net has a return type called Dataset, in Java what should I write?
    Actually,I am writing this web services to consume it on a table from .Net,so what is the most suitable to code it so that more than one string can be return?

    Create either a list or an array and assign your values to it and return it.
    arrays
    lists

  • HT201077 Can more than one person upload photos to the shared Photo Stream?

    Is there any way that more than one person can stream their photo on the same Photo Stream Album?

    That's just the way it is right now.  But if you would like to see this changed you can tell Apple here: http://www.apple.com/feedback/icloud.html.

  • I have Firefox 7.0.1 and would like to go forward and back more than one page at a time- how do I set this?

    I used to have Firefox 6 that let me jump forward or back more than one page

    You can right click on the back or forward button and jump to your required page.

Maybe you are looking for

  • How do I set the default pdf viewer?

    My Adobe Acrobat Pro trial ended, I actually uninstalled the program, but now when I go to websites with pdfs, Firefox (or something!) tells me I need to open Adobe and accept the user blah blah... I tried having Acrobat Reader open (which is still o

  • HUM with Serial Numbers

    Hi, i did the pgi with wrang qty (that is Hu no should have 10 qty but after pgi we found only 6 there) so we did the reversal in vl09 and now when i going to take the pgi again it is not picking the rigt qty. it is picking 6 qty again.. in outbound

  • Crystal 11 in VB6 - Distributing runtimes....

    Post Author: Tonst CA Forum: Deployment Using Crystal Developer Edition 11.0 SP4 (I think, about screen shows 11.0.0.2495)Using VB6, have crviewer.dll and craxdrt.dll referenced in my project. Using the CrystalActiveXReportViewer control on one of my

  • Anything similar to Smart Objects for bitmap images in Fw?

    In Ps you're able to place a bitmap image on a layer and convert it to a Smart Object, allowing you to resize that image non-destructively. Is there a way to achieve this in Fw?

  • Is 9.1 generally safe to install?

    I had a bad experience with an iTunes upgrade a while back and I'm always worried about updates now. Anyone losing access to songs or anything?