Passing transaction context to weblogic container

I am developing a java application which is doing some database
updates. It invokes a few EJBs deployed on weblogic server 4.5. Those
beans also do some database updates. I want all the database
operations in a single transaction. The beans are configured to be
bean managed transactions and use weblogic connection pool (weblogic
pool driver)
I want to create a transaction context in the java application and
also want to make EJBs participate in the same context.
Is this really possible to achieve?
Thanks
Jagdish

Hi Bob,
In TestStand 3.0 and later you can pass the sequence context as a CAObjHandle in CVI. The easiest way to get an example of this is to create a blank sequence and insert an Action step. Right-click on the step and select specify module. On the module tab specify a name for the function. Next on the Source Code tab click Create Code... This will prompt you for a location and name for a project file and a c file. It will then create code for you that demonstrates how to pass the sequence context and use it.
If you're using an older version of TestStand then the parameters you can pass are fixed. I would suggest looking at one of the shipping examples. The Register step in the following example demonstates how to pass the sequence context and use it: C:
\Program Files\National Instruments\TestStand 3.1\Examples\Demo\C\cpu.seq
(This path will be different depending on your version of TestStand.)
I hope this helps!!
Regards,
Sarah Miracle
National Instruments

Similar Messages

  • Transaction Context Propagation

    Can transaction context be propagated from one WebLogic Server to another? If yes, what is then the relationship between the two Transaction Managers in each server?
              

    Zhenxin,
              Transaction can be propagated between multiple instances of the server.
              In releases 5.1 and below, all databse access in this case was delegated to 1 jdbc connection in 1 pool on 1 server, and the database transaction manager was used.
              In 6.0 and above, the transaction is co-ordinated by the TM in one instance of the server, which calls on the remote instances during the pre-commit and commit phases.
              I believe that currently the 1st server to be invoked in the transaction is the one who gets the commit responsibility, but this is an implementation detail that may
              change in future.
              I hope that helps.
              Regards,
              Peter.
              Got a Question? Ask BEA at http://askbea.bea.com
              The views expressed in this posting are solely those of the author, and BEA
              Systems, Inc. does not endorse any of these views.
              BEA Systems, Inc. is not responsible for the accuracy or completeness of the
              information provided
              and assumes no duty to correct, expand upon, delete or update any of the
              information contained in this posting.
              Zhenxin Wang wrote:
              > Can transaction context be propagated from one WebLogic Server to another? If yes, what is then the relationship between the two Transaction Managers in each server?
              

  • How OSB pass Initial Context parameters to EJB

    For security reasons I have to pass a ticket (through initial context) to legacy system from OSB for calling EJB, below is a code
    Hashtable env = new Hashtable(2);
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, connectionUrl);
    env.put(javax.naming.Context.SECURITY_PRINCIPAL, ticket);
    env.put(javax.naming.Context.SECURITY_CREDENTIALS, "");
    InitialContext ctx = new InitialContext(env);
    Object homeRef = ctx.lookup("com.cih.services.contact.interfaces.IContactServiceRemote");
    IContactServiceRemoteHome home = (IContactServiceRemoteHome) javax.rmi.PortableRemoteObject
    .narrow(homeRef, IContactServiceRemoteHome.class);
    IContactServiceRemote ejb = home.create();
    Please let me know how we can pass Initial context parameter from Business service or proxy service to legacy system.
    Thanks

    Hi Russ
    Yes, I've done this too. Basic SQL though will not allow the updating of a table inside a function, so we have to get clever. The trick is to use the PRAGMA AUTONOMOUS TRANSACTION command. Here's an example:
    FUNCTION UPDATE_MYTABLE(P_VALUE IN NUMBER)
    RETURN VARCHAR2 IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    UPDATE SCHEMA_OWNER.MY_TABLE SET MY_VALUE = P_VALUE;
    COMMIT;
    RETURN('Done');
    END UPDATE_TABLE;
    When the update has been completed the Discoverer worksheet will respond with 'Done'.
    Everyone: don't forget to grant EXECUTE on this function to all of the necessary users, including the EUL owner, and also don't forget to import the function using the Admin edition so that it is available for the users. You will also need to make sure that all necessary users have been granted the UPDATE privilege on the table.
    I hope this helps
    Regards
    Michael

  • IllegalStateException - SSB loosing transaction context

    I have a following scenario
    1. MDB1(txn not supported) calls SSB1 (txn att = required)
    2. SSB1 calls some other SSBs and Enity beans with txn attt = required.
    3. SSB1 catches checked exception and calls rollback
    catch ( MyCheckedException e){
    this.getSessionContext().setRollbackOnly();
    throw e;
    Note that setRollbackOnly() is called from SSB1 which is in transaction but still
    I get following error on weblogic console that setRollbackOnly() is called from
    a bean which is not participating in transaction. This behavior is not consistent
    it happens some time. I re-started the server and weblogic started executing txns
    properly.
    My question is when a pair of MDB and SSB is used does SSB LOOSES it's transaction
    CONTEXT in some situation?
    I would really appreciate and early help as it is critical for the project
    thanks
    ========== weblogic log ===============
    <Jul 31, 2003 12:57:34 PM PDT> <Info> <EJB> <EJB Exception during invocation from
    home: com.cobaltgroup.products.lc.queue.ejb.EmailMessageTaskBean_tatdyp_HomeImpl@7
    f44f3 threw exception: java.lang.IllegalStateException: Illegal attempt to call
    EJ
    BContext.setRollbackOnly() from an EJB that was not participating in a transaction

    Deyan,
    I assumed that Saurabh's statement that SSB1 has Required attribute is true.
    The Spec says:
    "17.6.2.8 Handling of setRollbackOnly() method
    The Container must handle the EJBContext.setRollbackOnly() method
    invoked from a business method executing with the Required, RequiresNew,
    or Mandatory transaction attribute as follows:
    - The Container must ensure that the transaction will never commit.
    Typically, the Container instructs the transaction manager to mark the
    transaction for rollback.
    I'd guess that TX gets rolled back as soon as control returned
    to the container from dispatched method called setRollbackOnly().
    As you can see, the Spec allows it and it does make sence
    taking in account cost of holding TX.
    Slava
    "Deyan D. Bektchiev" <[email protected]> wrote in message
    news:[email protected]...
    Slava,
    According to the EJB spec the transaction should not end just because at
    some point it was marked for rollback, only that it should never commit.
    The EJB should still be able to call setRollbackOnly without any problems.
    It look more like the transaction context is either never created or
    lost somehow.
    And if there is no transactional context
    SessionContext.getRollbackOnly() will throw the same exception (EJB 2.0
    Section 7.6.1 for stateful and Section 7.8.2 for stateless session EJBs).
    So I'd start by making sure that the EJB is not marked with BMT and
    "Required" TX attribute -- in that case the EJB will use BMT and the TX
    attribute is ignored.
    Another way to see that there is a transaction is to use
    System.out.println(weblogic.transaction.TxHelper.getTransaction); to
    print the current transaction and verify that there is actually one.
    Regards,
    Dejan
    Slava Imeshev wrote:
    Hi Saurabh,
    It could happen because by the time SSB1 received the exception the TX
    has
    been rolled back already.
    The code in the catch block should look like the following:
    catch ( MyCheckedException e){
    if (!this.getSessionContext().getRollbackOnly()) {
    this.getSessionContext().setRollbackOnly();
    throw e;
    Regards,
    Slava Imeshev
    "Saurabh Kumar" <[email protected]> wrote in message
    news:[email protected]...
    I have a following scenario
    1. MDB1(txn not supported) calls SSB1 (txn att = required)
    2. SSB1 calls some other SSBs and Enity beans with txn attt = required.
    3. SSB1 catches checked exception and calls rollback
    catch ( MyCheckedException e){
    this.getSessionContext().setRollbackOnly();
    throw e;
    Note that setRollbackOnly() is called from SSB1 which is in transaction
    but still
    I get following error on weblogic console that setRollbackOnly() is
    called
    >>>
    >>>
    from
    a bean which is not participating in transaction. This behavior is not
    consistent
    it happens some time. I re-started the server and weblogic started
    executing txns
    properly.
    My question is when a pair of MDB and SSB is used does SSB LOOSES it's
    transaction
    CONTEXT in some situation?
    I would really appreciate and early help as it is critical for the
    project
    >>>
    thanks
    ========== weblogic log ===============
    <Jul 31, 2003 12:57:34 PM PDT> <Info> <EJB> <EJB Exception during
    invocation from
    home:
    com.cobaltgroup.products.lc.queue.ejb.EmailMessageTaskBean_tatdyp_HomeImpl@7
    >>
    >>
    f44f3 threw exception: java.lang.IllegalStateException: Illegal attemptto
    >>>
    >>>
    call
    EJ
    BContext.setRollbackOnly() from an EJB that was not participating in a
    transaction

  • Transactional Context

    hi guys
    Have a quick question on transactional context
    Question:
    Will the transactional context be passed on from a LSB mediator to other java
    components (simple java classes).
    The LSB is delgating control to managers which are simple java classes. These
    managers are inturn executing sql queries. We need that the LSB and the simple
    java class execute within the same transactional context. i.e if the manager throws
    an exception, the LSB should roll back all the previous sql statements. The manager
    doesnt do any transaction management (by retrieving UserTransaction) and simply
    executes the sql calls.
    Do you think that these calls will be covered by the same transaction context.
    thanks for your time
    anand

    "anand raman" <[email protected]> wrote in message news:3f65cd27$[email protected]..
    Question:
    Will the transactional context be passed on from a LSB mediator to other java
    components (simple java classes).
    The LSB is delgating control to managers which are simple java classes. These
    managers are inturn executing sql queries. We need that the LSB and the simple
    java class execute within the same transactional context. i.e if the manager throws
    an exception, the LSB should roll back all the previous sql statements. The manager
    doesnt do any transaction management (by retrieving UserTransaction) and simply
    executes the sql calls.
    Do you think that these calls will be covered by the same transaction context.Yes, they will, provided a it' s a CMT LSLB and it has Required transaction
    attribute.
    Regards,
    Slava Imeshev

  • Using oracle's connection pools and transactional context

    Hi!
    I have an implementations of existing interfaces ( let's call this layer as
    data access layer) which abstracts the connection and transactional session
    from the calling application. This implementaion makes use of Oracles JVM
    inside the oracle database (8.1.7) to create and maintain the connection
    pools and the transactional session (transactional context). I would like
    to create differenent implementation, if the calling application is a
    session bean running inside the weblogic application server. is there way I
    can still use the connection pools and transactinal context that I got from
    the oralce if the calling application is a session bean running inside the
    weblogic app.. server?
    do I have to change any configuration settings in weblogic?. there might
    be two scenarios..
    the data access layer (the classes which deal with the connection pools and
    transactions) might be running inside the oracle's JVM..
    the data access layer might be running inside weblogic application server...
    thanks...
    Srinivas

    Certainly this from SPAM. Now from anothe user :). Note sure whether I should mark you as you as SPAM as you're posting questions which are available in stackoverflow
    http://stackoverflow.com/questions/26531161/biztalk-and-odp-net-connection-pools-and-connection-strings
    Details provided in the other forum should provide you the answer.
    I don’t want to duplicate this thread just for the sake of giving reply.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Hosting a CORBA object with a Weblogic Container

    Hi,
    I'm trying to host a CORBA object within a Weblogic (8.1) container
    using the weblogic built-in ORB and only using CORBA-compliant APIs.
    When I try to obtain the RootPOA using:
    org.omg.CORBA.Object obj = orb.resolve_initial_references("RootPOA");
    The container throws the exception:
    Unexpected System Exception:org.omg.CORBA.ORBPackage.InvalidName
    Usually this means that the POA was not registered as an initial
    service, but that just can't be the case since I know the weblogic EJB
    container uses the POA.
    Btw- the handle to the orb was obtained using:
    // Initialize the ORB.
    String args[] = null;
    Properties Prop;
    Prop = new Properties();
    Prop.put("org.omg.CORBA.ORBClass",
    "weblogic.wtc.corba.ORB");
    ORB orb = (ORB)new InitialContext().lookup("java:comp/ORB");
    Any ideas are greatly appreciated.
    Mike

    Thanks Andy!
    Btw- orbd must be running for resolve_initial_references() to work.
    Seems weird to me.
    After which, I was able to host a callback servant in my weblogic
    container using the native JDK ORB/POA but now I've run into a deeper
    issue. When the client calls back on the hosted callback object, the
    JDK ORB processes the request but then raises an
    IT_GIOP:REPLY_MESSAGE_NOT_CONSUMED exception.
    It's since been brought to my attention that this indicates a
    marshalling error with regards to extra bytes being on the stream after
    the request has been unmarshaled. Either due to a spotty or older ORB
    implementation. The advise is that the JDK ORB is just such an ORB.
    I'd like to try using the JacORB within my weblogic container.
    Has anyone done this that you know of?
    Thanks for the help,
    Mike
    Andy Piper wrote:
    Michael McKnerney <[email protected]> writes:
    Hmmn weird. It seems like it wants a URL or something to connect to which seems wrong.
    The source for list_initial_services says:
    * Get a list of the initially available CORBA services.
    * This does not work unless an ORBInitialHost is specified during initialization
    * (or unless there is an ORB running on the AppletHost) since the localhostname
    * is inaccessible to applets. If a service properties URL was specified,
    * then it is used, otherwise the bootstrapping protocol is used.
    * @return A list of the initial services available.
    So you need an initial host if you use this. However, the root poa is
    already registered, so it looks like you can use that. You will need
    an initial host if you want to bind things into the NS, in theory you
    should be able to use WLS for that.
    andy
    Thank Andy,
    Still no luck, however, the call does not hang it thows and I wasn't catching the
    exception and printing the stack trace.
    Here's my sample code and the stack trace. Do you see what the problem is?
    // Method: ejbFindBigAccounts {
    try {
    String args[] = null;
    Properties Prop = new Properties();
    Prop.put("org.omg.CORBA.ORBClass",
    "com.sun.corba.se.internal.Interceptors.PIORB");
    System.out.println("Initializing the orb...");
    ORB orb = org.omg.CORBA.ORB.init(args, Prop);
    // Test list_initial_services
    System.out.println("Calling resolve_initial_references");
    java.lang.String[] ids = orb.list_initial_services();
    for (int i=0; i<ids.length; ++i)
    System.out.println(ids);
    } catch (Exception e) {
    System.out.println("Caught Exception: " + e);
    e.printStackTrace();
    throw new EJBException (e);
    Output (including stack trace)
    ====================
    Initializing the orb...
    Calling resolve_initial_references
    Caught Exception: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed:
    No
    org.omg.CORBA.COMM_FAILURE: vmCORBAObjectImpl.javacid: SUN minor code: 201 completed: No
    at
    com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
    at
    com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
    at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
    at
    com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
    at
    com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
    at
    com.sun.corba.se.internal.corba.InitialNamingClient.getInitialServices(InitialNamingClient.java:997)
    at
    com.sun.corba.se.internal.corba.InitialNamingClient.cachedServices(InitialNamingClient.java:967)
    at
    com.sun.corba.se.internal.corba.InitialNamingClient.list_initial_services(InitialNamingClient.java:925)
    at com.sun.corba.se.internal.corba.ORB.list_initial_services(ORB.java:2414)
    at
    examples.ejb20.basic.beanManaged.AccountBean.ejbFindBigAccounts(AccountBean.java:328)
    [snip]
    Seeing that its trying to get a connection, does that mean I need to run the jdk orbd? I
    figured the weblogic server would take the place of orbd. Anyway, I ran the same test
    with orbd running and got the same exception and stack trace.
    Thanks, Mike
    Andy Piper wrote:
    Michael McKnerney <[email protected]> writes:
    Btw- I will use the J2SE ORB in the meantime. My understanding is that there can only be
    one ORB per weblogic server, or can the J2SE co-exist with the existing weblogic ORB? (I
    looked at the docs but it was still not clear to me)
    They should be able to coexist if you pass the ORB class in as a
    property to ORB.init() and are not using RMI-IIOP. The WLS
    ORBSingletonClass should be compatible with the Sun one a vice versa.
    -Dorg.omg.CORBA.ORBClass=com.sun.corba.se.internal.Interceptors.PIORB
    Try putting this in ORB.init() instead.
    But now anytime I invoke on an object reference, the call hangs.
    Not sure. can you get threaddumps.
    andy
    [att1.html]

  • Transactional Context Propagation

    Hi,
              Suppose that I a statefull session bean that uses a helper class to delegate
              its business methods. If the transactions are demarcated from the container
              will the transactional context of the caller (of the helper class) method be
              propagated to the helper class?
              Thank you in advance
              

              Hi,
              Is this true also for BMT? I have a problem where the UserTransaction
              object seems not to propagate from one BMT bean to another BMT bean.
              At least the status of the transaction
              (as retrieved by this.sessionContext.getUserTransaction().getStatus())
              is Status.STATUS_NO_TRANSACTION when checked in the method of th called bean.
              regards - Johan
              "Cameron Purdy" <[email protected]> wrote:
              >The transaction is bound to the thread, so yes, under most ordinary
              >conditions, the context would also apply to (or more likely through)
              >methods
              >of other classes called. Example: EJB A calls helper class method HC.foo()
              >calls HC.foo2() calls EJB B. If EJB A were in a transaction, EJB B would
              >be
              >in the same.
              >
              >Peace,
              >
              >--
              >Cameron Purdy
              >Tangosol, Inc.
              >http://www.tangosol.com
              >Tangosol Server: Enabling enterprise application customization
              >
              >
              >"Routis Haralampos" <[email protected]> wrote in message
              >news:[email protected]...
              >> Hi,
              >> Suppose that I a statefull session bean that uses a helper class to
              >delegate
              >> its business methods. If the transactions are demarcated from the
              >container
              >> will the transactional context of the caller (of the helper class)
              >method
              >be
              >> propagated to the helper class?
              >> Thank you in advance
              >>
              >>
              >
              >
              

  • Send message in a non-transactional context

    I've coded a simple Log4j appender to send error messages to a queue (JMSAppender provided by Log4J is not good for me because it use a publish/subscrive model and use topics instead of queues); the appender has to work in a non transactional context, so the appender has to send always the message to queue although the global transaction rollbacks; I've create queue session settings transacted parameter to false and acknowledgeMode to AUTO_ACKNOWLEDGE , but message is not delivered to queue if the global transaction, started by an EJB Stateless Session Bean, rollbacks; in my environment (IBM WebSphere and IBM MQ), queue connection factory is configured no-XA resource.
    Any suggestions?
    Below the source code.
    Thanks in advance
    context = new InitialContext();
    queueFactory = (QueueConnectionFactory) context.lookup(getQueueConnectionFactoryBindingName());
    queueConnection = queueFactory.createQueueConnection();
    queueSession = queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    queue = (Queue) context.lookup(getQueueBindingName());
    queueSender = queueSession.createSender(queue);
    queueConnection.start();Rob

    I've coded a simple Log4j appender to send error messages to a queue (JMSAppender provided by Log4J is not good for me because it use a publish/subscrive model and use topics instead of queues); the appender has to work in a non transactional context, so the appender has to send always the message to queue although the global transaction rollbacks; I've create queue session settings transacted parameter to false and acknowledgeMode to AUTO_ACKNOWLEDGE , but message is not delivered to queue if the global transaction, started by an EJB Stateless Session Bean, rollbacks; in my environment (IBM WebSphere and IBM MQ), queue connection factory is configured no-XA resource.
    Any suggestions?
    Below the source code.
    Thanks in advance
    context = new InitialContext();
    queueFactory = (QueueConnectionFactory) context.lookup(getQueueConnectionFactoryBindingName());
    queueConnection = queueFactory.createQueueConnection();
    queueSession = queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    queue = (Queue) context.lookup(getQueueBindingName());
    queueSender = queueSession.createSender(queue);
    queueConnection.start();Rob

  • Trying to understand context indexes and contains-help

    Hi
    i am using
    Achieving functionality of many preferences using one context index
    to understand context indexes and contains
    and i get the following
    Error starting at line 1 in command:
    begin
    ctx_ddl.create_preference ('nd_mcds', 'multi_column_datastore');
    ctx_ddl.set_attribute ('nd_mcds', 'columns', 'text nd, text text');
    ctx_ddl.create_section_group ('nd_sg', 'basic_section_group');
    ctx_ddl.add_ndata_section ('nd_sg', 'nd', 'nd');
    ctx_ddl.create_preference ('test_lex', 'basic_lexer');
    ctx_ddl.set_attribute ('test_lex', 'whitespace', '/\|-_+');
    end;
    Error report:
    ORA-06550: line 5, column 15:
    PLS-00302: component 'ADD_NDATA_SECTION' must be declared
    ORA-06550: line 5, column 7:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    so i am using the following to check for the error
    http://docs.oracle.com/cd/E18283_01/text.112/e16593/cddlpkg.htm#BABCBFCB
    plus
    oracle text application developer's guide
    plus
    oracle text reference
    but these have not listed that error (i have even googled this in vain)
    background::we were actually using catsearch but because of its downsides i want to implement this
    Is Achieving functionality of many preferences using one context index a good place to start when one does not know about
    context and contains??
    please post any other useful link for contains and context index that even explains
    1) fuzzy
    2) stem
    3) synonym
    4) near
    5) soundex
    6)ndata
    7)lexer
    thanks in advance

    Ndata is new to Oracle 11g. Your other posts indicate that you are using Oracle 10g, so you don't have ndata, so you get an error when you try to use it. If you want to use the 11g features that enable context indexes with contains to do all of the things that ctxcat indexes with catsearch do, then you need to upgrade to 11g.
    The online documentation is searchable. Most things regarding Oracle Text are contained in either the Oracle Text Reference or the Oracle Text Application Developer's guide.
    I suggest that you start with something very simple, then build from there.
    The following is similar to your other post that used catsearch:
    SCOTT@orcl_11gR2> CREATE TABLE mv_cat_seg_reg_prod
      2    (cat_ids       VARCHAR2 ( 7),
      3       act_status    VARCHAR2 (10),
      4       name           VARCHAR2 ( 1),
      5       email           VARCHAR2 ( 1),
      6       address1      VARCHAR2 ( 1),
      7       address2      VARCHAR2 ( 1),
      8       contact_name  VARCHAR2 ( 1),
      9       mobile           VARCHAR2 ( 1),
    10       telephone     VARCHAR2 ( 1))
    11  /
    Table created.
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO mv_cat_seg_reg_prod VALUES
      3    ('1', 'Y', 'A', 'B', 'C', 'D', 'E', 'F', 'G')
      4  INTO mv_cat_seg_reg_prod VALUES
      5    ('2', 'N', 'H', 'I', 'J', 'K', 'L', 'M', 'N')
      6  SELECT * FROM DUAL
      7  /
    2 rows created.
    SCOTT@orcl_11gR2> CREATE INDEX mv_cat_seg_reg_prod_idx
      2  ON mv_cat_seg_reg_prod (cat_ids)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  /
    Index created.
    SCOTT@orcl_11gR2> SELECT token_text FROM dr$mv_cat_seg_reg_prod_idx$i
      2  /
    TOKEN_TEXT
    1
    2
    2 rows selected.
    SCOTT@orcl_11gR2> SELECT *
      2  FROM   (SELECT SCORE (1), name, email, address1, address2, contact_name, mobile, telephone
      3            FROM   mv_cat_seg_reg_prod
      4            WHERE  CONTAINS (cat_ids, '1', 1) > 0
      5            AND    act_status = 'Y'
      6            ORDER  BY DBMS_RANDOM.VALUE)
      7  WHERE  ROWNUM < 8
      8  /
      SCORE(1) N E A A C M T
             4 A B C D E F G
    1 row selected.

  • Cannot drop the table because it does not exist in the system catalog. Transaction context in use by another session

    Hi Every one,
    An error has occurred during report processing. (rsProcessingAborted)
    Get Online Help
    Query execution failed for data set 'NonFinTran'. (rsErrorExecutingCommand)
    Get Online Help
    Cannot drop the table '#NonFinTran', because it does not exist in the system catalog. Cannot drop the table '#MultipleNonFinTran',
    because it does not exist in the system catalog. Transaction context in use by another session.
    NOTE: NonFinTran &
    MultipleNonFinTran are
    the Temp table in my storedPoc.
    Please any help me to solve this issue. 
    Thanks & Regards,
    Anil Kumar
    Anil Kumar

    Hi Harsh,
     Below is my Stored Proc
    SELECT @ServerName=datasource from master.dbo.sysservers WHERE catalog='Voyager'    
     SELECT @ServerName3=datasource from master.dbo.sysservers WHERE catalog='AuditLog'    
     SELECT @ServerName2=datasource from master.dbo.sysservers WHERE catalog='Portal'    
     IF @ServerName IS NOT NULL SET @ServerName='[' + @ServerName + '].' ELSE SET @ServerName=''    
     IF @ServerName3 IS NOT NULL SET @ServerName3='[' + @ServerName3 + '].' ELSE SET @ServerName3=''    
     IF @ServerName2 IS NOT NULL SET @ServerName2='[' + @ServerName2 + '].' ELSE SET @ServerName2=''    
     IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#NonFinTran%')     
      DROP TABLE #NonFinTran    
     IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#MultipleNonFinTran%')     
      DROP TABLE #MultipleNonFinTran    
     CREATE TABLE #NonFinTran (FirstName VARCHAR(40), TaxId VARCHAR(40), TrxID VARCHAR(40), Status VARCHAR(255), Field1 VARCHAR(255), Field2 VARCHAR(255),    
       Field3 VARCHAR(255), Field4 VARCHAR(255), Field5 VARCHAR(255), Field6 VARCHAR(255), DateTime DATETIME,     
       BranchID CHAR(3), BankID CHAR(1), FromAccountID VARCHAR(255), FromAccountType VARCHAR(255))    
     CREATE TABLE #MultipleNonFinTran (FirstName VARCHAR(40), TaxId VARCHAR(40), TrxID VARCHAR(40), Status VARCHAR(255), Field1 VARCHAR(255), Field2 VARCHAR(255),    
       Field3 VARCHAR(255), Field4 VARCHAR(255), Field5 VARCHAR(255), Field6 VARCHAR(255), DateTime DATETIME,     
       BranchID CHAR(3), BankID CHAR(1), FromAccountID VARCHAR(255), FromAccountType VARCHAR(255))     
    INSERT #NonFinTran    
     EXEC('SELECT FirstName, TaxID,     
      TrxID, Status, TrxField1, TrxField2, TrxField3, TrxField4, TrxField5, TrxField6, DateTime, '''', '''', '''', ''''    
     FROM ' + @ServerName3 + 'AuditLog.dbo.CCAuditLogEntryView AS Audit, ' + @ServerName + 'Voyager.dbo.CCUser AS CCUser    
     WHERE CCUser.UserID = Audit.UserID     
      AND Audit.Succeeded = 1     
      AND Audit.TrxID IN (''ChangeBillPayDefaultAccountEdit'',''ChangeExpiryUserPassword'',''ChangePasswordEdit'',    
       ''ChangeUserPassword'',''ManageAddressMaint'',''ManageContactMaint'',''ManageSecretQuestionAnswerEdit'',    
       ''ManageTransLimitMaint'',''OtherBankAccountMaintAdd'',''OtherBankAccountMaintDelete'',''OtherBankAccountMaintEdit'',    
       ''WithinAmBankAccountMaintAdd'',''WithinAmBankAccountMaintDelete'',''WithinAmBankAccountMaintEdit'',    
       ''SetAccountMaskPreferenceAudit'',''ChangeLoginIdAudit'')     
      AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @StartDate + '''), 103), Audit.DateTime) >= 0     
      AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @EndDate + '''), 103), Audit.DateTime) <= 0 ')    
     INSERT #MultipleNonFinTran    
     EXEC('SELECT DISTINCT FirstName, TaxID,     
      TrxID, Status, TrxField1, TrxField2, TrxField3, TrxField4, TrxField5, TrxField6, Audit.DateTime as AuditDateTime,    
    (SELECT DISTINCT SUBSTRING(A.BranchCode,3,3)  FROM ' + @ServerName + 'AuditLog.dbo.CCAuditLogEntryView X INNER JOIN ' + @ServerName + 'Voyager.dbo.CCuser U
    ON X.UserId = U.UserId INNER JOIN ' + @ServerName + 'Voyager.dbo.AMHZ_CustomerProfile P ON P.EnrolId = U.TAXID 
    INNER JOIN ' + @ServerName + 'Voyager.dbo.AMHZ_AccountListing A ON A.CIFNO = P.CIFNO
    WHERE X.UserId = Audit.UserId AND A.AccountNo = SUBSTRING(Audit.TrxField1,11,16) AND P.CIFNO = A.CIFNO
    AND (SUBSTRING(A.BranchCode,3,3) <> NULL OR SUBSTRING(A.BranchCode,3,3) <> '''')
    AND CHARINDEX(''AccountID='', Audit.TrxField1, 1) > 0),
      SUBSTRING(TrxField1,14,1), CASE WHEN CHARINDEX(''AccountID='', TrxField1, 1) > 0 THEN     
      SUBSTRING(TrxField1,11,16) ELSE '''' END, CASE WHEN CHARINDEX(''AccountType='', TrxField2, 1) > 0 THEN SUBSTRING(TrxField2,13,3) ELSE '''' END    
     FROM ' + @ServerName3 + 'AuditLog.dbo.CCAuditLogEntryView AS Audit, ' + @ServerName + 'Voyager.dbo.CCUser AS CCUser    
     WHERE CCUser.UserID = Audit.UserID     
      AND Audit.Succeeded = 1     
      AND Audit.TrxID IN (''SetAccountAttributesAudit'',''SetAccountFriendlyNameAudit'',    
      ''AccountProfileMaintULDelete'',''AccountProfileMaintLHAAdd'',''AccountProfileMaintLSCAdd'')
      AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @StartDate + '''), 103), Audit.DateTime) >= 0     
      AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @EndDate + '''), 103), Audit.DateTime) <= 0 ')  
      SET @stmt = '    
     SELECT * FROM    
     SELECT BranchName,
     CASE WHEN SUBSTRING(FromAccountID,1,6) IN (''519901'',''559409'')  THEN ''DC''  
    ELSE       
     CASE FromAccountType WHEN ''01'' THEN ''SA '' WHEN ''02'' THEN ''CA '' WHEN ''03'' THEN ''FD ''     
        WHEN ''SA'' THEN ''SA '' WHEN ''CA'' THEN ''CA '' WHEN ''FD'' THEN ''FD '' ELSE FromAccountType + '' ''    
     END 
     END +     
    case when Len(FromAccountID) =16 Then  
       CASE FromAccountType WHEN ''VC'' THEN   
       SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,4)      
    WHEN ''MC'' THEN SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,4)  END  
         when Len(FromAccountID) =15 Then 
    CASE FromAccountType WHEN ''VC'' THEN   
       SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,3)      
    WHEN ''MC'' THEN SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,3)  END  
         ELSE FromAccountID   
    ENd  
     AS FromAcctNo,    
     CASE TrxId  
     WHEN ''AccountProfileMaintLHAAdd'' THEN ''Link Account/Card''    
     WHEN ''AccountProfileMaintLSCAdd'' THEN ''Link Account/Card''    
     WHEN ''APMFamilyFirstAdd'' THEN ''Link Family First Account''    
     WHEN ''AccountProfileMaintULDelete'' THEN ''Unlink Account/Card''    
     WHEN ''BalInqFD'' THEN CASE  WHEN Field3 IN (''APMLink=SUCCESS'') THEN ''APMLink Success'' ELSE ''Fixed Deposit Balance Inquiry'' END  
     WHEN ''BalInqCASA'' THEN CASE  WHEN Field3 IN (''APMLink=SUCCESS'') THEN ''APMLink Success'' ELSE
         CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Balance Inquiry'' 
        ELSE ''Current Account Balance Inquiry'' 
       END 
      END    
     WHEN ''StopCheck'' THEN ''Stop Cheque Request''    
     WHEN ''CheckReorder'' THEN ''Order Your Cheque''    
     WHEN ''CheckInquiry'' THEN ''Cheque Inquiry''    
     WHEN ''TransHistFD'' THEN ''Fixed Deposit Transaction History''    
     WHEN ''TransHistCASA'' THEN    
      CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Transaction History'' ELSE ''Current Account Transaction History'' END    
     WHEN ''StmtInqCC'' THEN    
      CASE WHEN FromAccountType IN (''DR'',''03'') THEN ''Debit Card Statement Inquiry'' ELSE ''Credit Card Statement Inquiry'' END    
     WHEN ''StmtInqDA'' THEN    
      CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Statement Inquiry'' ELSE ''Current Account Statement Inquiry'' END    
     WHEN ''StmtReq'' THEN ''Printed Statement Request''    
     WHEN ''StmtInqIAMSTAR'' THEN ''E-AMSTAR Statement Inquiry''    
     WHEN ''Repayment/Transfer Inquiry'' THEN ''Repayment/Transfer Inquiry''    
     WHEN ''Account Inquiry'' THEN ''Account Inquiry''    
     WHEN ''Payment Inquiry'' THEN ''Payment Inquiry''    
     END AS TransType,    
     FirstName AS CustomerName,    
     TaxId, CONVERT(VARCHAR, DateTime, 103) AS Date, CONVERT(VARCHAR, DateTime, 108) AS Time    
     FROM #NonFinTran, ' + @ServerName3 + 'Portal.dbo.TB_Branch AS TB_Branch    
     WHERE     
     BranchId = TB_Branch.BranchCode     
     AND (TB_Branch.InstCode IN (''00001'', ''00003'',''001'',''002''))    
     AND (FromAccountType IN (''SA'', ''CA'', ''FD'', ''01'', ''02'', ''03'')))'    
    EXEC (@stmt)
    IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#NonFinTran%')     
     DROP TABLE #NonFinTran    
     IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#MultipleNonFinTran%')     
      DROP TABLE #MultipleNonFinTran    
    Anil Kumar

  • Problem on web app using root context in weblogic 7.0.2

    I got problem on servlet which running on root context "/" in weblogic 7.0.2. I have remove the default web app (which use the root context) before the web app. The web application was deployed without any error. However, when the servlet run to the line calling HttpSession.setAttribute, the following exception occurs. The weblogic server is running on Solaris 8. anyone can help?
              java.lang.IllegalStateException: Internal Servlet Session Process Error Found!
              at weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1045)
              at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:477)
              at com.chase.infra.appcontrol.servlet.LoginServlet.doPostHK(Unknown Source)
              at com.chase.infra.appcontrol.servlet.LoginServlet.doPost(Unknown Source)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
              at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5451)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
              The weblogic.xml is
              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE weblogic-web-app
              PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN"
              "http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd" >
              <weblogic-web-app>
              <context-root>/</context-root>
              </weblogic-web-app>

    Hie,
              We are facing the same problem; i.e. we are getting the same error message when we are trying to run our struts application on Weblogic 7.0.5 using JDK 1.3.1. This problem occured particularly when we tried to do a load testing using approx 20 concurrent users (a lesser load was supported though). Can you please let us know how this problem was sorted out on your end?
              thanks,
              Debanjan

  • Transaction Context Is Lost in General Ledger

    Hi,
    I got 'Transaction Context is Lost' in General Ledger 'Accounting Setup Manager' while creating new Ledger, in R12.
    I tried restarting machine, but same problem.
    How to fix problem?
    See Attached SHT - http://www.mediafire.com/?fusvfp6q7cv6rdz

    Please post the application release, database version and OS.
    Can you find any errors in the database log file?
    user78995 wrote:
    Hi,
    I got 'Transaction Context is Lost' in General Ledger 'Accounting Setup Manager' while creating new Ledger, in R12.
    I tried restarting machine, but same problem.
    How to fix problem?
    See Attached SHT - http://www.mediafire.com/?fusvfp6q7cv6rdz
    Please see if these docs help.
    11i/R12 How to Debug "Transaction Context Is Lost" or "You are trying to access a page that is no longer active" [ID 456906.1]
    Transaction Context Is Lost in iSupplier portal [ID 761421.1]
    How To Check Session Persistence On BigIP F5, Cisco Ace, Citrix Netscaler or Radware AppDirector Load Balancer Appliances [ID 601694.1]
    Self-Service Pages Are Failing After Changing the s_oc4j_sesstimeout [ID 780612.1]
    Enhancement Request: PLM Login Timeout Can Cause Loss of Data (Passivation) [ID 1108454.1]
    Please also check Apache log files (and the application.log) for details about the error.
    If you cannot find any errors in the logs and you still have the same issue, then please log a SR.
    Thanks,
    Hussein

  • Transaction Context Lost In General Ledger

    Hi,
    Please help me in this thread - Transaction Context Is Lost in General Ledger
    Since, no response upto now, I am posting here.
    Regards

    Please see your other thread -- Re: Transaction Context Is Lost in General Ledger
    And, please do not post duplicates.
    Thanks,
    Hussein

  • Passing a context value to BAPI Import parameter in WebDynpro!

    Hi All,
    I have a small doubt here!
    I am trying to create a sales order using Webdynpro through BAPI.
    There i want to hard code the value of order type like, i want to fix the value before running the porgram itself i.e., statically i want to pass the value.
    What i have done is,
    created a Context variable and has assigned the value in the init() of view like,
    <b>wdContext.currentUIElementsElement().setDocType("ZORD")</b>
    and also changed the value attribute of InputField to the context variable called "DocType".
    But now we need to pass this context value to the BAPI Structure called ORDER_HEADER_IN  i.e, to the class "Bapisdhd1". with out the hardcode value it is working, but i want to pass the value before executing it self. so What i can do, can any body pls give sample line of coding.
    Thanks in advance,
    Regards,
    Sireesha.B

    Hi
    Have you bound instantiated the Bapi class?If not then do like this.
    BapiClass input = new BapiClass();
    wdContext.node<BAPINODE>.bind(input);
    Above code can be written in your Custom Controller or View's doinit.
    Then you write the code for doctype as given in the post above.
    Regards,
    Ajay

Maybe you are looking for

  • Form field info not showing up, unless field is clicked? (again)

    We're using a pdf library called Sync Fusion to automate some fillable fields in a pdf but after the text has been placed it is not visible due to the form field high-lighting. So far we have tried the 3 things below but nothing has solved this issue

  • How to get the the EAS setting

    Hello I have a palm centro and i'm unable to find the Mail > account setting tab. I can see the versamail stuff to add an account but nothing related to setting up outlook. thanks Post relates to: Centro (AT&T)

  • Problem with downloading document from here!!!

    Hi, Anyone got the same situation.  I would like to download documents (pdf, power point,...)  from here.  Unfortunately, Files cannot be completed downloaded.  Consequently, they cannot be opened due to errors.  Anyone got the same situation or can

  • Translation Pattern - X wildcard not working.

    I am trying to translate any calls from a certain CSS to extension 4900-4999 to a single extension (8114). I tried using 49XX as the Translation Pattern, 8114 as the Called Party Transform Mask, and the partiton for this is the first in the CSS list.

  • [SOLVED] Pacman: cant install, remove, update packages

    I'm new to Arch, and yes I've read the Wiki and the sticky post "pacman error: FILENAME exists in filesystem". I can't install or update packages. Just synced the local database. I want to install the package "mc", so I ran: pacman -S mc All required