A single TX for message consumption and CRUD operation

consider the following scenario?
message producer inserts message into a queue (MQ queue, or a TIBCO JMS Server), MDB running on WebSphere application server consumes the message, parses it and calls a stateless session EJB , which in turn inserts it into the DB.
Can the message consumption (by MDB) and DB insert (by session bean) be part of the same transaction? Meaning, if the DB insert fails, the rollback would result in the message remaining in the queue, so another MDB instance would pick it up.

Yes, in fact that is the spec-required behavior for JMS MDBs with container-managed
transactions and tx attribute REQUIRED. Of course, the stateless session bean would also
have to have container-managed transactions and a tx attribute that will result in the MDB's
transaction being used (e.g. REQUIRED, SUPPORTS, etc.)
In that case, the message delivery itself is considered to be a unit of work within the global
transaction. If the transaction does not commit, the message will be redelivered.
--ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Can we create a single bdc for raw materials , and for some other transacti

    hi
    can we create a single bdc for raw materials , and for some other transaction? how?

    Hi Jyothsna
    For one transaction you will have to build your bdc table according to the recording for that transaction and then call that transaction using the bdc table. For another transaction , you will again have to build the bdc table with the details of that transaction.
    You cannot call all at one shot.
    Cheers
    shivika

  • On my settings menu under messages there is a tab that says receive at and has 2 addresses my phone number and my email. It says i can be reached for messages at and shows both of these. What does that mean?

    On the settings menu under messages there is at tab that says receive at. What is this? When you select it it states you can be reached for messages at and has my phone number and email. What messages is it referring to?

    iMessages.

  • Single migo for multiple vendors and multiple material

    Dear MM Experts,
    I have 2 open purchase orders as per below
    PO no 01 :- Material : A , Vendor : X
    PO no 02 :- Material : B , Vendor : Y
    Can we make the single goods receipt for both purchase orders even having different vendor and material.
    If yes then How ? and if no then Why ?
    Please advice me.
    Thanks & Regards,
    Sandeep.

    I have not read about or seen any reason why you should not do receipts of many vendors in one MIGO transaction.
    The error message can be set to warning or even switched off entirly. SAP would certainly not allow to switch an error to a warning if that could harm accounting documents. At least they would have issued an OSS message outlining what problems can ocur and that they dont take responsibility if make it a warning.
    It is not a usual process. at least in my environment each vendor sends individually. But I can imagine to pick the goods from different vendors myself and bring it into the plant. so it can be worth to do a single receipt.
    I found one OSS note that mentions (for me) a valid reason for error message by default:  the info in the screen may confunse the users.
    Note 300711 - Header data of MIGO refers to 1st item
    Symptom
    During goods receipt for several purchase orders with, for example, different vendors, the header data of Transaction MIGO does not change after you have entered the 2nd purchase order. The system still displays the vendor of the first item.
    The system shows this behavior for all fields of the header area which are actually order item data.
    Solution
    This function corresponds to the design of Transaction MIGO
    The item data which is displayed in the header area (as for example, the vendor) refers always to the first item.
    It is displayed in the header area to make the work easier for the person who entered the data since this data is often identical for all items and a check of the header area is quicker. If you work with different 'header data' per item you must check the data on the detail of the individual items.

  • Using a Single Library for Entire Site and When to Use Subsites

    I'm hoping a discussion I am having with my coworkers can be solved.  We are trying to decide two things:
    Should the entire office be under a single site or should each division have their own site?  Our Office has 5 divisions that contain 17 Branches, one site for business functions and one top-level site for the entire office.
    Is it standard practice to create one huge library managed by metadata or should there be multiple libraries?  I tend to think one library will be too hard to manage with regard to metadata and site columns and that libraries should be based on business
    functions or subject domains (i.e., SOPs, Quality Documents, Business Documents, Technical Documents, etc).
    Currently, several workflows, libraries and lists have already been created under our business functions site.  In order to house everything under a single site, we would need to change the name of the site and move everything under it.  I'm not
    sure if changing the name of the existing site will cause problems.
    I group these two items together because they really seem related.  With everything under a single site, individual libraries, lists and workflows could get out of hand as everyone tries to manage their own division.  But then so would a single
    library for everyone.  The problem with more than one site is that data cannot flow freely between sites (via workflows) and search would be less effective so some are against separate sites.  So knowing one question may affect the answer for the
    other.
    Any thoughts on our library and site structure would be appreciated.  Thanks.

    As always the usual SharePoint consultant cop-out answer of 'it depends' is correct.
    Having said that there are certain trends that are quite relevant:
    It isn't common to use a single site collection for all sites. It can be done but it often leads to a state where you have a single monstrous site collection which is harder to backup, recover and maintain (see the boundaries and limits documents). The
    default behaviour in most cases is to have a central 'shared' site collection then one per <group> where Group is a team that works on the same content, has broadly the same area of interest and access. That might be one for HR, one for the Support team,
    one for the Sales team etc.
    In terms of libraries there's a wide variation. If there' no difference in views, security and metadata then keeping the library count down is generally a good thing. However using multiple libraries can make life easier and better for users by allowing
    more useful views, more secure by locking down libraries rather than using item level permissions (always a nightmare) and allowing more useful alerts and so on.
    SharePoint architecture is a science but it's a really, really hard one to formulate into If/Then rules. So, broadly answering your questions I would lean towards multiple site collections and I generally agree with you on point 2, although if there's only
    a small number of documents and simple structure then a single library might still make sense.

  • Single Report for production scrap and Movement type 551 scrap

    Hi All,
    Can we include the scrap information from production and scrap from movement type 551 into a single BW report?.......My assumption is we cannot include it into a single report coz production scrap will have a different material information and scrap from movement type 551 will have a different material information..please correct me ig i am wrong......
    Regards,
    Shravani

    hello,
    you can have a single report by two options
    1. have a variable on movement type.If you choose 551..U will get materials of tht movt type.
    also if the select teh movt type for prodcution, it wil display its materials.
    or
    2. U have to place  movt type in the rows.Place movt type and then material in the rows.
    Then u will get for each movt type..its corresponding materials.No variable selection needed here.
    Regards,
    Dhanya

  • How to generate single signature for code signing and timestamp

    Hi we are developing Win 7 VC++ app using Crypto APIs.
    Here code signing is done using Cryptsignhash() method, that generates the signature. Later for time stamping CryptRetriveTimestamp() method is used which also generate the time stamp signature. Thus we wanted to know
    whether there is any single Crypto API available that can do code signing and timestamping together and shall generate single signature. At verification side it should be also possible to separate code signing and timestamp signatures prior to verification.
    Any help is highly appreciated. Thanks.

    On 4/17/2015 1:21 AM, Babu12345 wrote:
    *Hi we are developing Win 7 VC++ app using Crypto APIs. *
    *Here code signing is done using Cryptsignhash() method, that generates the signature. Later for time stamping CryptRetriveTimestamp() method is used which also generate the time stamp signature. Thus we wanted to know whether there is any single Crypto API
    available that can do code signing and timestamping together and shall generate single signature.
    No. Normally, you don't counter-sign the actual data - you counter-sign and time stamp your signature. You don't want to transmit the whole data (which could be a) large and b) confidential) to a third party. This is why it's a two step process.
    Igor Tandetnik

  • User Access for Messaging Server and Calendar Server

    This is the first time i have setup JES. What i did was install Messaging, Calendar, Directory and Administration server. I did a configure after install option and followed the post install instructions for all of those servers.
    I then started the administration console and added a user via the crete user option under "users and groups". Next i tried to logon as the user i just created via webmail and pop (exchange) and get an error message stating that the user does not exist. I did a search on the user via that admin server console and i did find the user and the "mail account" option was selected. I also verified the password was correct.
    My main question is what am i doing wrong?
    My goal is to create a email and calndar server using JES. I also want webmail.
    Do i need to configure Identity Manager to create users for mail / calendar? Or do i create the users using the directory server / administration console?
    Also i didnt setup delegated administrator. I didnt think i needed it becasue i will configure all of this using on administrator. If i dont need multiple administrators do i need delegated admin.
    Here is some background information.
    Sun W2100Z
    4GB RAM
    Solaris 10 01/06 x86
    JES 2005 Q4
    Thanks for any assistance.

    You can not use the Administration console for creating Messaging users. Look-up "provisioning users" in the Messaging admin guide. If you're using schema 1, use Delegated Administrator. If you're using schema 2, use commadmin.
    HTH,
    Roger S.

  • Single CAT5 for IP phone and Desktop

    I have Avaya Definity voice switch with VoIP option. My LAN is all Cisco. I need to come up with a way to use single ethernet cable for both Avaya 4620SW phone and PC. The phone does have 2 ports. I created voice VLAN on my CAT6K with L3 and my data VLANs. I have read about "set port auxiliaryVLAN" option, but when implement it, my phone doesn't reach its voice VLAN. Any ideas?

    in your dhcp sever as a sson option 176 for the voice subnet.
    MCIPADD is your gatekeeper ip address or what avaya calls CLAN.
    here's a good app notes on the subject.
    http://www.avaya.com/gcm/master-usa/en-us/resource/assets/applicationnotes/linux-dhcp.pdf
    http://support.avaya.com/elmodocs2/4600/233507_2_2.pdf

  • Creation of a Single button for both Update and Insert

    Hi,
    I want to create a button which performs both Insert and Update function. As of now i have 2 seperate buttons. Can I combine them in to one by writing a procedure which checks for the data in the database...If the record exists, then it should update the record, if not it should insert...Please guide me
    Regards,
    Pa

    Hi,
    If I am inserting in to the table a new record, how do I check for that column in the table...
    It should work this way..
    I have a list of users in a page, if I click on any user name, it will redirect me to another screen which will allow me to create a record for the selected user name. I want to check the selected user name in the table. If it is already existing then need to update, else insert.
    Regards,
    Pa

  • Using a single connection for jsp, servlets and classes

    Hi! I'm building a web site that uses JSP, Servlets and some classes. I use database access in all my pages. I want to open a connection and use it for all the pages while the user is in my site, so I don't need to open a connection with every new jsp or servlet page. My software must be capable of connection with various databases, like SQLServer, Oracle, Informix, etc... so the solution must not be database (or OS or web server) dependant.
    Can you help me with this? Some ideas, links, tips? I'll REALLY appreciate your help.
    Regards,
    Raul Medina

    use an initialiation servlet with pooled connection which can be accessed as sesssion object.
    Abrar

  • How to create stored procedure for insert update and delete operations with input output paramters?

    I  have the follwing table is called master table contain the follwing fields,
    So here i need to create  three Stored procedures 
    1.Insert operations(1 o/p paramter,and  14 input paramters)              - uspInsert
    2.Update operations(1 o/p paramter,and  14 input paramters)          - uspUpdate
    3.Delete Operations(1 o/p paramter,and  14 input paramters)          
     - uspdelte
    The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
    Location 
    Client Name
    Owner 
    ConfigItemID
    ConfigItemName
    DeploymentID
    IncidentID
    Package Name
    Scope 
    Stage
    Type 
    Start Date
    End Date
    Accountable 
    Comments
    So can u pls help me out for this ,bcz i knew to stored procedure's creation.

    I  have the follwing table is called master table contain the follwing fields,
    So here i need to create  three Stored procedures 
    1.Insert operations(1 o/p paramter,and  14 input paramters)              - uspInsert
    2.Update operations(1 o/p paramter,and  14 input paramters)          - uspUpdate
    3.Delete Operations(1 o/p paramter,and  14 input paramters)            - uspdelte
    The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
    Location 
    Client Name
    Owner 
    ConfigItemID
    ConfigItemName
    DeploymentID
    IncidentID
    Package Name
    Scope 
    Stage
    Type 
    Start Date
    End Date
    Accountable 
    Comments
    So can u pls help me out for this ,bcz i knew to stored procedure's creation.
    Why you have to pass 14 parameters for DELETE and UPDATE? Do you have any Primary Key?  If you do NOT have primary key in your table then in case you have duplicate information, SQL will update both or delete them together. You need to provide DDL of
    you table. What are the data types of fields?
    Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.

  • How to use a single page for create and update mode.

    Hi,
    I need to develop a single page to be used for both create and update modes.
    I am going to use a variable MODE
    and i will set this in the emp summary page.
    Based on the button clicked by the user i have to render the JSF page.
    For tis if the user selects a perticular and cliks on update thn i will pass the empno to the next.
    so there in the next i will appy a ViewCreiteria on my View Obj to fetch only that row so that only that emp will be displayed ion update mode.
    This is working fione for me.
    So now the issue is
    when the user clicks on CreatEmp button.
    i need to enable my VO for insert operations.
    for this i wrote the code like this in the beforePhase event
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding valBinding = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bContext = (BindingContext) valBinding.getValue(ctx);
    DCDataControl dcControl = bContext.findDataControl("DataControl");
    Application app = ctx.getApplication();
    ApplicationModule am = (ApplicationModule) dcControl.getDataProvider();
    System.out.println("After Appmodule initiation");
    // get the VO reference and initiate the query
    System.out.println("Before Page VO initiation");
    PrismDmPageSectionViewImpl vo = (ViewImpl)am.findViewObject("View");
    //ViewRowImpl row = (ViewRowImpl) vo.createRow();
    /* TO CREATE AN EMPTY ROW*/
    Row row=vo.createRow();
    System.out.println("New Row is created");
    //vo.createKey(row);
    vo.insertRow(row);
    vo.setCurrentRow(row);
    By doing this a new empty page is rendered.
    But when i fill up the values and click on ok.. i am getting the error like this..
    JBO-27023: Failed to validate all rows in a transaction.
    JBO-27027: Missing mandatory attributes for a row with key null of type View3
    JBO-27014: Attribute Id in View3 is required
    JBO-27014: Attribute PageeId in View3 is required
    Please point me out where i am missing.
    Thanks

    Hi,
    In my opinion you are over complicating things.
    This is what I do for using the sme page as both create and update without all this code.
    1) Create a browse page containing a an adf table with a select one component bound to your view object.
    2) Create an additional edit page containing only an edit form containing fields of your view object that your users must enter in order to add or edit rows.
    3) Link the pages in the JSF diagram with an "edit" navigation case from browse to edit page and a "return" navigation case from edit to browse (make sure that redirect option is NOT set on both cases)
    4) Remove the submit button from the edit page and add two application module bindings for the commit and rollback operations as command buttons in the form footer facet. Make sure that both buttons has an action of return and that their disabled property is set to false. You will probably change their labels to ok and cancel respectively.
    5) Drop a create action for your view object from the data control palette inside your page as a command button and set the action property to edit also.
    3) Set the action property of the view button to edit
    This should basically work without any code from your part. -- at least it does so for me -- if you like to make it a bit more funcy you may add am action listener inside your buttons and set a requeScope variable for example #{requestScope.editing} to true or false depending on the button clicked. Then add a title to your page with a value like #{requestScope.editing == true ? 'Editing record' : 'Adding a new record'}..
    Hope that helps.
    Thanassis

  • SIngle reference for PXI 6509 Input and Output

    Hi ,
    I am using 96 channel PXI 6509 as a DIO, In this 96 channels i need to assign 1st port for input, 2nd port for output  and 4th and 5th for input so on. its is not a big deal using labview but labview creates seperate reference( Task in) for input and ouput.
    I need to have a single reference for both input and output ( like we have in NI DCpower for SMU)
    Can any one suggest me how i can achive this?
    Thanks and best regards,

    I would accomplish this with an Action Engine that handles all of your tasks.  Alternatively, make a class that handles all of the tasks.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Better Design for EJB 3 and Java Web Dynpro

    Hi all,
    When using EJB Model on CE, to each method a Request and Response are generated. To a CRUD i've 4 methods.
    I've a Foo (JPA Entity).
    public Foo create(Foo)
    public Foo update(Update)
    public void remove(Foo)
    public List<Foo> findBy...
    I think that i could use a Single view for both create and update method. But i will need a separated context objects to each function.
    Request_<Bean>_create
    Request_<Bean>_update
    What is better in this case? a single method createOrUpdate on my EJB? Or a View to each operation?
    Best regards

    Hi all,
    Just to share my decision:
    My EJB continue with the methods.
    public Foo create(Foo)
    public Foo update(Update)
    public void remove(Integer)
    public List<Foo> findBy...
    Was generated one Request to each method.
    Request_<Bean>_create
    Request_<Bean>_update
    I've mapped the both on my Component controller and have created on view to edit and create a new record.
    When the record already exists i'm initializing the Request_<Bean>_createElement with record data, when is a new i've just initialize the new Foo object and put on currentElement of update.
    On the generic save method of controller, a test is done to decide if the Request<Create> or Request<Update> model Object.
    Best regards

Maybe you are looking for

  • The Software that came with my book does not work. CISCO CCENT / CCNA ICND1 by wendell odom

    Hello this is my first post on cisco support and hope I can get some help. I recently purchased the book CISCO CCENT / CCNA ICND1 by wendell odom and when I used the CD to install the Pearson Practice exams, it does not work. I tried everything! It e

  • Deployment Error: DCs get activated but not deployed

    Hello All, I am new to NWDI. I did some code modifications in my DC. When i check in my activity, it gets activated, but not getting deployed. At first i was getting authentication problem, that is resolved now. Now i get this CMS log: 20140819135816

  • While reversing in fb08

    while reversing doct m getting error balancing field "profit center" in line item 001not filled. plz solved it.

  • Material Qty Calclation

    Dear Experts, Can we use ingredient specification calculation in batch for by product because by product is producing so its with -ve sign. no batch determination takes place in process order. and that qty takes according to BOM not according to  bat

  • How to restore iphone 5c vibration

    Anyone have a problem with losing iphone 5c vibe feature?