Another query about XAResource

Hi All,
I have another query about the start/end behavior of the XAResource and its effect on a JMS transaction when the JMS server acts as a resource manager.
Suppose I start an XAResource supplied by a JMS server using an XID and pop some messages from a Queue in this transaction. Now before I end this transaction my client application dies or is disconnected from the server.
First off this transaction has not been committed or rollbacked so the transaction or the XID would still be registered on the server.
In this case what should be the steps for joining this transaction and doing the needful (say commit or rollback).
What flag should be used to re-start this resource?
Is there any specs defined for the above or as many other things in XA for JMS servers are, is this also vendor specific?
Thanks in advance for your answers.
cheers
Adolf

Hi Adolf,
XAResource is used to provide a two phase commit.
1 prepare
2 commit
now say a client fails before prepare, then the server detects that the client has gone down and so closes the connection which causes the whole transaction to roll back. Next time the clients has to begin it afresh.
if the transaction has been prepared, the prepared transaction can be actually commited by the TM. this stage is for all the components of the dustributed system to say that they are ready for commiting.

Similar Messages

  • Query about XAResource.end() API in JMS context

    Hi All,
    I have a small query regarding the behavior of an XAResource supplied by a JMS server.
    Suppose I start a transaction using XaResource.start() method and I create a publisher and registered durable subscriber on the XASession that supplied the above mentioned XAResource. After that I send some messages and receive some messages from a Topic that already had some messages for the concerned Subscriber.
    Now I end this transaction by calling XaResource.end() with the flag TMSUSPEND.
    My question is that can the Publisher and Subscriber objects created between the start() and end() methods of the XAResource object be used now after the transaction has been suspended.
    Also now if I resume this transaction can I use these publisher and subscriber objects again without re-creating them.
    It would be great if some of the bright people on this forum can share some info on this.
    cheers
    Adolf

    Now I end this transaction by calling XaResource.end()
    with the flag TMSUSPEND.
    My question is that can the Publisher and Subscriber
    objects created between the start() and end() methods
    of the XAResource object be used now after the
    transaction has been suspended.This is dependend on the JMS implementation. If it falls back into a local transaction context after suspending the current XA tx, then yes, otherwise no.
    Also now if I resume this transaction can I use these
    publisher and subscriber objects again without
    re-creating them.IMO, yes.
    However, chapter 8 of the JMS spec (XA/ASF) is intended to use within a J2EE environment. Thus, most of the behavior of JMS XA/ASF is specified in the EJB spec, not in the JMS spec. If you consult both, you'll get the whole picture. Whether JMS XA/ASF works with a specific app server is dependent on the app server's implementation of this part. For example, some use ASF (connection consumers) with callbacks for message/tx association (like the J2EE ref impl), some use ASF without callbacks (like JBoss, WebSphere) so there has to be an automatic association with XAResource.start. Some don't use ASF at all but a message consumer (like WLS). And so on. JCA 1.5 with JMS pluggability uses callbacks.
    It's very tricky and time consuming to integrate a JMS server XA/ASF wise into an app server. Every app server is different. Sometimes you'll have to implement proprietary interfaces to plug into it.
    We have done that. How it works is here:
    http://www.swiftmq.net/products/kernel/jmsxaasf/index.html

  • Another query about installing BT Infinity2 and lo...

    History.
    We occupied a new build house in 1998.  It was fitted with a BT Master Socket (Line Box) which is situated in a front corner of the Living Room.  We wanted to have the 'phone in a different corner of the room and also wanted to install some more electrical sockets and television aerial sockets, so before we moved in we set about doing that.  While we had holes in the walls and floors lifted we took the opportunity to install some telephone extension sockets.
    The Telephone Installation.
    Using a BT extension kit and BT junction boxes.  (and connecting all six wires of the cable into the appropriate locations)
    From Line Box in Living Room to Bedroom 3, which is immediately above -  one cable within the cavity wall to a junction box under the floor of Bedroom 3.
    From that junction box -  one cable to Bedroom 3 telephone wall plate and
    one cable to another junction box under the landing floor.
    From the landing floor junction box - one cable within the wall back down to an inner corner of the Living Room to a telephone wall plate   and 
    one cable within a wall down to the Kitchen telephone wall plate and
    one cable under the floor to Bedroom 1 telephone wall plate.
    All extensions have worked well since then.
    My Line Rental has always been with BT and except for a brief period with Talk Talk my calls have also been with BT.
    We later obtained AOL Dial Up which worked fine then later AOL Broadband. When we obtained the Broadband service we fitted BT Filters to each of the extensions in use and had no problems. The AOL Router and desktop computer are in Bedroom 3 plugged into that extension. Lately, the AOL Broadband has become impossibly slow so we have ordered BT Infinity 2 which is due to be installed next week. 
    Question 1.
    I understand that the normal installation installs a Broadband Filter plate, which includes a Broadband socket,  in the Line Box between the BT line and the telephone plug socket.  Is it possible for the extension wall plate in Bedroom 3 to be changed to a Line Box to accomodate said Filter plate without any other work being necessary?
    Question 2.
    If the above is possible, can the original Line Box in the Living Room be left in situ and useable as an extension ?
    Question 3.
    If the two above are possible can we then remove all the Line Filters from the extension sockets or will one always be necessary in the original Line Box in the Living Room as the new Filter fitted in Bedroom 3 is "downstream" of the incoming BT line?
    Question 4.
    What does backwiring mean?
    Solved!
    Go to Solution.

    Well it's installed and working.
    I have to admit that after reading some of the threads on this site I was rather apprehensive as to what to expect and what could or could not be  done. 
    I received two email reminders/confirmations from BT about the forthcoming engineer visit.
    The engineer telephoned on the morning of the appointment to confirm that he was en route and he arrived on time.
    I explained my wiring set up and he advised that this was not a problem as he could install wireless.  I commented that BT advised ethernet cabling for the fastest speed.  He replied that in his experience the speed was subject to many variables and that he personally used wireless and that it was just as fast)
    He fitted a replacement Master Socket (didn't just alter the already fitted one), connected up the Hub and Modem, went off to the street cabinet, returned and confirmed that my daughter's laptop was connected to the Hub, and that was it. He gave us the standard advice about the speed that we could expect and that it may vary considerably for the first few days.  I cannot recall the actual speed quoted but do know that it was many times faster than we had been forced to endure from our previous provider.    BT call centre had advised us that the engineer would be able to supply a wireless adapter to replace the one I was using in my laptop, but that was wrong information as he advised us that in his experience this had never been the case.
    After he had left we simply deinstalled the Netgear from my laptop and re-connected the Netgear adapter I already had to the Hub and that was my laptop connected.
    We bought another Netgear Wireless Adapter for the Desktop and installed & connected that to the Hub.
    My wife and daughter both have Kindle Fire devices which happily talk to the Hub by Wi-Fi  and my daughter's Smartphone also talks to it, so everyone is happy. 
    The only problem that we encountered was when I switched off the power to the Hub and Modem whilst tidying up the cabling. When I powered up again we had lost Broadband and the Lan1 light on the Modem was not lit. The troubleshooting guidance advised re-starting the Hub, but that didn't solve the problem.  Our instructions advised that if this occurred on the day of installation that we should wait until after midnight on that day to ascertain whether Broadband had re-connected.
    The following morning I re-read the troubleshooting guide in the brochure and tried re-starting the Hub but it still made no difference. We called the helpline number who advised us to press the "re-set" button on the Modem for 20 seconds then the re-start button on the Hub for 10 seconds.  (The troubleshooting guide made no mention of re-setting the Modem. )    That worked.
    We've had one slight problem since then when I tried mounting the Modem on the wall instead of it lying on the carpeted floor and moved the Hub to the end of the window sill behind the curtain. Shortly after that we lost the wirless connection although all the relevant lights on the Modem and Hub were lit.    The connection returned when I moved them back to where they had been previously. I'm still trying to figure that one out.

  • How to use one query results in another query

    hi,
    in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
    How I can do this?
    Result I want to get is:
    In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
    Can I do this?
    Regards,
    Andrzej

    Hi Andrzej,
    please check out this thread: Set parameters values depending on other parameters
    I had a discussion about query results as input for another query in there.
    For creating a workbook, just click on the save button after you ran your query in the bex.
    Siggi
    Message was edited by: Siegfried Szameitat

  • Query about multiple connection pools under one database

    Hi,
    I have s query about connection pool, now we have a requirement,
    we have two schemas in one db, some data store in one schema, some in another schema,
    all tables are the same, but data is different, we want to retrive all data under two schemas,
    so we need two connection pools under one database,
    I have set two system DSN, and each connection pool was mapping to one DSN,
    but after I importing tables into RPD, when I view data, there is a dialog let me select connection pool. so If this, when we drag columns in answer, it will definitely get wrong.
    so how to realize this function about multiple connection pools under one database and we can get data normally.

    Hi,
    Try this step
    1)Better to create two different DSN for the same database with different user id and password
    2)now create multiple connection pool in the same database in u r RPD physical layer .
    also refer this link : for imporving performance
    http://obiee101.blogspot.com/2009/01/obiee-multiple-connection-pools.html
    http://gerardnico.com/wiki/dat/obiee/connection_pool
    Thanks
    Deva

  • My ipod and itunes both are skipping to another song about in the middle of the song. It doesn't happen on all songs...only some songs. I have reset the ipod, I have done a restore, I have reloaded itunes, I have updated the ipod but still am unable fix

    My ipod and itunes both are skipping to another song about in the middle of the song. It doesn't happen on all songs...only some songs. I have reset the ipod, I have done a restore, I have reloaded itunes, I have updated the ipod but still am unable to figure out why. It did not used to do this. I can't figure out any pattern to the songs it does it on versus that it doesn't do it on. Some of the songs are purchased, some are imported, etc. We are running Windows 7.

    how long have you had your ipod? mine did the same but after a while you need to get a new one because of the battery...

  • Can we use Result from another query in Webi using Bex uery universe?

    Hi,
    Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
    I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
    I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
    I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
    Has anyone run into the same issue and if this is possible and what should be the solution?
    Thanks in advance!
    Edited by: BO_Haiyan on Oct 6, 2010 3:47 PM

    In that situation:
    Create two queries : Oracle and BW query.
    @ Report:
    As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
    Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
    In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
    Hope it helps you.
    Thank You!!

  • Is it possible to update a query with another query?

    I'm trying to update a query with another query (see attached
    code). Here's my setup: I've got a table in an Access database in
    which I enter a string into a form and update. This string
    corresponds to a single record in another table of the same
    datasource. The first table has only one record to provide the
    second, which has many and will have more. Basically what I'm
    wondering is: Is this a valid thing to do in coldfusion? If not
    please help with an alterate method. I'm still a novice at
    coldfusion.
    The overall effect I'm going for is to display the one record
    as a featured truck profile on the web site:
    www.truckerstoystore.net.
    I currently get an error when I try to display the page with the
    current query setup.
    Check this page to see the error:
    www.truckerstoystore.net/currentTOW2.cfm
    Help on this issue is very much appreciated.
    ------------------------------------------------------------------------------------------ -----------------------------------------------------------------------

    I think this is what you are after
    <!--- this query will get all the records from the DB
    --->
    <cfquery name="cTOW" datasource="tow">
    SELECT *
    FROM currentTOW
    <!--- Do you need to find a particular record in the
    database --->
    <!--- If so, then you need a 'where' clause in here
    --->
    </cfquery>
    <!-- Loop the cTOW query for each record returned -->
    <cfloop query="cTOW">
    <!--- For the record returned from the cTOW query you now
    need to update the table --->
    <!-- Update the table -->
    <cfquery name="currentTOW" datasource="tow">
    UPDATE Your tblName
    SET
    Dataname = cTOW.DataValue
    </cfquery>
    </cfloop>
    thats it
    PS: I think your original query needs modifying. To return
    the exact records that you want to update from the original table.
    ie: Primary and foreign key relationship

  • Populating variable from another query..

    Hi,
    I have a requirement whereby I have a variable (for eg. on the Accounting Document Number) in query Q2.The values of this variable have to be derived by executing another query eg. - Q1
    So I defined a variable on the infoobject, defined it as based on Q1 and am using that in Q2.
    However the issue is I don't want to restrict query Q2 with that variable.. but just want to read the values and then be able to further processing on that variable. However hard as I try it seems that I can only use that variable as Filter in Q2. Any other options I can use.
    I tried to use that variable in a structure but it system does not accept it.
    Any ideas would be appreciated.
    thx

    Hi ATW,
    Looks to me, this is a RRI (Report-To-Report Interface) requirement.
    Try following options ->
    1.  RRI
    Consider - Q1 is a 'Sender Query' - This will a 'summary level' query and Q2 would be 'Receiving Query' - This will be 'Detailed level' query.
    Do Sedning / Receiving  setting in the Tcode RSBBS
    Execute Q1 -> Right click on any row -> GOTO -> Q2, it will execute second query with the details on for the row you have selected.
    2.  Pre-Query & Main Query
    Here Q1 will be your 'pre-query' which will run for a given date range.  (or any other selection criteria), and it will have 'Accounting Document Number' in the 'ROWS'. The output of Q1 will work as a filter to Q2 (the output of the query Q1 will NOT be visible.)
    This output then will work as a filter for the second query Q2.
    Let me know if this helps.
    Regards,
    Rashmi

  • Result of an SQL query as a Column name of another query

    Hi Friends,
    Can we use a result of a SQL Query as a column name of another table to retrieve data. If so please help me.
    For eg :
    I have a table where is store numbers;
    select col1 from table1 where col1='5';
    and i have another table where .. this value of col is a column name..
    select ( select col1 from table1 where col1='5') from table2;
    Thanks in advance.

    Hi,
    ORAFLEX wrote:
    Hi Friends,
    Can we use a result of a SQL Query as a column name of another table to retrieve data. If so please help me.
    For eg :
    I have a table where is store numbers;
    select col1 from table1 where col1='5';
    and i have another table where .. this value of col is a column name..
    select ( select col1 from table1 where col1='5') from table2;
    Thanks in advance.Do you really mean that?
    select col1 from table1 where col1='5';That query will always return either '5' or nothing. Whatever you're trying to accomplish with that, you can do with an EXISTS query.
    Perhaps you meant to reference two different columns in that query:
    select col1 from table1 where col2='5';In that case, sorry, no, you can't do that without resorting to dynamic SQL.
    If the same column is used throughout the query (but could change every time you run the query), then the dynamic SQL might be pretty easy. In SQL*Plus, for example, you could use substitution variables, defined in another query at run-time.
    If there are only a few possible values that the sub-query could possibly return, and you know what they all are, then you can fake a dynamic query like this:
    SELECT     CASE     ( SELECT  col1
                FROM       table1
                WHERE       col2     = '5'
              WHEN  'BONUS'     THEN  bonus
              WHEN  'COMM'     THEN  comm
              WHEN  'SAL'     THEN  sal
         END     AS col1
    FROM     table2
    ;Sorry to give such a vague answer, but it's the best I can do with the information I have.
    It would help if you posted a little sample data (CREATE TABLE and INSERT statments for both tables), and the results you want to get from that data. If you want to pass a parameter to the query, give the results you want for a couple of different parameters.

  • Query about local storage

    Hi,
         i had a query about local storage.
         I've a machine that hosts weblogic and tangosol. i've an ejb that accesses a distributed cache i.e NamedCache cache = CacheFactory.get("MyCache")
         i modified tangosol-coherence.xml and set local-storage to false ( for distributed cache) and replaced the file in coherence.jar.
         i'm using an overflow scheme and the back map uses a disk scheme.
         i also start a separate standalone instance of tangosol and i set the system property of local storage to true for the standalone instance.
         i start the standalone instance first and then weblogic.
         The idea is ensure that the tangosol instance in weblogic or the weblogic JVM should not participate in storing data (hence local storage false).
         only the JVM for the standalone instance should store data (hence local storage true -system property).
         i wanted to know whether the property "local-storage" is pertinent to a member(machine) or to a JVM?
         the reason for this doubt: as i'm using a disk scheme, tangosol creates a file for an overflow (e.g lh014402~.tp). i can see two such files when ideally i would have wanted only one for the tangosol instance.
         -rw-r--r-- 1 zephyr users 8364032 2005-06-23 17:02 lh014402~.tp
         -rw-r--r-- 1 zephyr users 8364032 2005-06-23 17:02 lh014403~.tp.
         can you please let me know if we can configure tangosol in such a way that we can two separate instances running with local stroage false for one and true for the other?
         Awaiting your reply
         Thanks
         Vinay

    I would suggest leaving the default 'local-storage' value set to 'true' in the tangosol-coherence.xml and just use the JVM argument to control the local storage of each individual node. Then start the stand alone instance normally (I assume you are using the com.tangosol.net.DefaultCacheServer) and start the WebLogic instance with the following:
         java [...] -Dtangosol.coherence.distributed.localstorage=false [...]
         Hope this helps.
         Later,
         Rob Misek
         Tangosol, Inc.

  • Can I use the result of a query in another query of the same cube?

    Hello everybody;
    I have the following case. In query "A", I have used in rows a structure, whit a last formula named “Total A”, in another query "B", I need to used the result of “Total A”.
    Can anybody help me?
    Thanks in advanced.
    Mariana Serrano

    Hi Mariana,
    You can change local structures into reusable structures in any existing query by selecting the structure and, choosing Save as... from the context menu and then entering a technical name and a description in the Save Structure as... dialog box.
    You can change reusable structures that you are using in a query into local structures by selecting the structure and choosing Remove Reference from the context menu.
    Also go through this link:
    http://help.sap.com/saphelp_sem40bw/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Best Regards,
    DMK
    *Assign point if it helps...

  • Query on results from another query

    Post Author: Duncan1980
    CA Forum: Crystal Reports
    Is it possible to query on the results from another query.  I have a query that produces a list of document numbers.  I want to use the output from that query as the filter criteria in a another query in the same Universe. 
    The output from the first query can be as much as 2000, so it would be very time consuming to cut and paste these into a filter.
    Both reports are built, but can not figure out how to link the first report output to the filtering criteria on the second report.  I
    I am using business objects XI release 2 web intelligence 11.5.3.417 enterprise.

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

  • Results from another Query - not available

    HI,
    My environment is Business Objects XI 3.1 SP2 Edge series , i have  below quereis with web Intelligence Reports
    1. not available  the functions/options  Results from another Query(Any) or Results from another Query(ALL) at Query Level.
    2. not getting list of Values for pronpt until i refresh values for prompt?
    Please suggest me is there any fix packs available for the same to availle that functionality.
    Best Regards,
    Reddeppa K

    not getting list of Values for pronpt until i refresh values for prompt?
    There is option called  "Automatic refresh before use"  for the object properties available in the universe designer.
    Please check the box for the object you are using for populating the list of values and export the universe.
    not available the functions/options Results from another Query(Any) or Results from another Query(ALL) at Query Level.
    There is a limitation for the query on query functionality that the both the queries can-not be from the OLAP universe.
    I guess the query which needs to be filtered should be built on universe from the relational data base.
    Regards,
    Rohit

  • Big Troubles on designing Query about special customers' counting

    Hello buddies:
    I meet a problem on designing Query about special customers' counting. Let me describe the requirment first.  I want to create a query with BEX , and there is a key figure with very special logic.
    That is: to list the counts of the customers which has more than one sales records in a time period from sales data. 
    For example :
    when the user excute the query , he or she must input a time period ( 2007.01~2007.03 e.g)
    then the query output as follow:
    District          Cust-sount
    North-Zone       100
    South-Zone      120
    The Main trouble are :
    1. Threr are no document number in the detail of sales data document records. so I could not count the sales times with document number.
    2. The time period is not fixed value, it depends on the user's input, so I can not define the counting logic in the update rule or in the query with fixed time period.
    Anybody who met similar requirement pls show me your hand and give your solutions, thanks very much.
    Jason

    Hi,
        Your solution sounds a good way to count the distinct customers. but in my case, one salse line item must not be recognize as one sales record, instead,  one customer's all sales line items occurs in one day must be  recognize as one sales record ( or we say that one sales behavior).
    for example:
    customer     product    quantity   date
    cust001       prod001        10       2007.06.06
    cust001       prod002        20       2007.06.06
    the two line items above means one sales record for the customer "cust001".
    so I could not simply use the CKF : (( Counter ) *FV2 ) > 1 .
    Best Regards,
    Jason

Maybe you are looking for

  • Touch-pad "click" not working after waking-up from

    Hi, I hope the subject is kind of a give away. Basically, I've finally gotten around to sorting out ACPI for my Dell 9600 laptop. I've configured, via KLaptop, for the machine to go into Standby when I close the lid. This works ok except that when I

  • M93p FRU / part no. for second HDD in SFF

    Hello all; I'm in the Toronto area in Canada and am having a very hard time searching for the FRU / Part No. and ordering something that seems to be very well documented at Lenovo in regards to installation. I have spoken with Lenovo Support (who sug

  • Serial UID in base class or interface is sufficient

    Let's say i have 3 classes extending from a base class. Is it okay if the base class has serial UID defined as anyways those 3 other classes are extending from it. Or is it compulsory to define serial UID in every class? Same applies for interface.

  • Is Neteller virtual credit  card is working with App store

    Hello, Im from india and I wanna buy some apps from Apple App-store. I don't have any credit card so I registered fro entropay and Neteller virtual credit card So, my questioon is Neteller virtual credit card is working with iTunes store or not?

  • Iphone doesn't work in my USB ports but everything else does, and iPhone works everywhere else!

    My iPhone 3gs stopped working in the USB ports.  Camera wizard doesn't even show up. Phone doesn't charge through it either, but if I plug my phone ANYWHERE else (computers and wall outlets) it works fine.  When I plug keyboards and mice into my comp