How to look up a TxDataSource bound in weblogic JNDI

HI,
How can i look up a TxDataSource bound in weblogic JNDI. When i access it using
javax.sql.XADataSourse ds = (XADataSourse)context.lookUp(jndiName)
..it gives me classcast exception.
and if i lookup it using javax.sql.DataSource like below
javax.sql.DataSourse ds = (DataSourse)context.lookUp(jndiName)
then while executing my sql on the connection object it throws some other excepiton
like below
java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
[weblogic.rjvm.PeerGoneException: ; nested exception is:
java.io.EOFException]
at weblogic.jdbc.rmi.SerialStatement.executeQuery(SerialStatement.java:92)
at TestTransactionMgr.main(TestTransactionMgr.java:46)
How can i solve this problem.. Actually my application needs to handle distributed transactions so i need to implement XADataSource.
can somebody help me iin this.
Thanks & Regards
Akhil Nagpla

Hi Akhil did u get the solution for distributed database /
I am also working on same but i dint get the solution yet. Please if u have any solution for the same do mail me to [email protected] and [email protected]
here goes my problem !
we have 2 oracle databases.
I am using Stateless EJB and container managed transaction !
And inside a ejb method i am getting 2 different connection from 2 different datasources ok !
Since am using container managed transaction it starts transaction automatically when the method begins,
and the transaction ends when the method exit out ok !
Now i insert into 2 databases and when the method exits it gives an error listed below !
i am using NON emulated datasource with class name "com.evermindsql.DriverManagerDataSource"
and looking up this datasource in the EJB with name specified in location attribute of datasource !
"com.evermind.server.rmi.OrionRemoteExcepttion: Transaction was rolled back: javax.transaction.SystemException: could not commit: error code 29540- for additional error code check the oracle log file"
For distributed database we configured DBLINK also !
If u can give more info regarding DBlink it will be better ! Even after we set DBlink we are getting error !
Please tell us how to configure the database !
Oracle 9iAS
Oracle 9i DB
regards
Sreenath.V

Similar Messages

  • How can i look up a TxDataSource bound in Weblogic JNDI

              HI,
              How can i look up a TxDataSource bound in weblogic JNDI. When i access it using
              javax.sql.XADataSourse ds = (XADataSourse)context.lookUp(jndiName)
              .it gives me classcast exception.
              and if i lookup it using javax.sql.DataSource like below
              javax.sql.DataSourse ds = (DataSourse)context.lookUp(jndiName)
              then while executing my sql on the connection object it throws some other excepiton
              like below
              java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected
              Exception - with nested exception:
              [weblogic.rjvm.PeerGoneException: ; nested exception is:
                      java.io.EOFException]
              at weblogic.jdbc.rmi.SerialStatement.executeQuery(SerialStatement.java:92)
              at TestTransactionMgr.main(TestTransactionMgr.java:46)
              How can i solve this problem.. Actually my application needs to handle distributed
              transactions so i need to implement XADataSource.
              can somebody help me iin this.
              Thanks & Regards
              Akhil Nagpla
              

              HI,
              How can i look up a TxDataSource bound in weblogic JNDI. When i access it using
              javax.sql.XADataSourse ds = (XADataSourse)context.lookUp(jndiName)
              .it gives me classcast exception.
              and if i lookup it using javax.sql.DataSource like below
              javax.sql.DataSourse ds = (DataSourse)context.lookUp(jndiName)
              then while executing my sql on the connection object it throws some other excepiton
              like below
              java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected
              Exception - with nested exception:
              [weblogic.rjvm.PeerGoneException: ; nested exception is:
                      java.io.EOFException]
              at weblogic.jdbc.rmi.SerialStatement.executeQuery(SerialStatement.java:92)
              at TestTransactionMgr.main(TestTransactionMgr.java:46)
              How can i solve this problem.. Actually my application needs to handle distributed
              transactions so i need to implement XADataSource.
              can somebody help me iin this.
              Thanks & Regards
              Akhil Nagpla
              

  • ClassCastException while looking up RMI objects bound to weblogic.JNDI under WLS 6.1

    We deploy a servlet (in a single .war archive) establishing a RMI connection to
    an external Java object bound into weblogic JNDI (WLS 6.1).
    We get a ClassCastException on invoking JNDI lookup:
    Servlet failed with Exception>
    java.lang.ClassCastException: $Proxy67
         at com.thyssenkrupp.tks.tnt.admin.rmi.ClientServlet.init(ClientServlet.java:81)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:698)
         at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:641)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:586)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:366)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:240)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Curiously we don't observe these problems when we include all the classes of the
    remote application in the classpath of the WebLogic Server. Actually we want to
    avoid including external classes in weblogic.classpath for (hot) deployment reasons.
    It also seems that problems don't occur when accessing the remote object from
    an independent client application.
    We expect this to be a classloader conflict within WLS 6.1
    Does anybody know a solution to our problems?
    Thanks for suggestions
    Andreas Koerner

    There was a similar bug that was supposedly fixed in WL 6.1 SP 2. I had
    filed a bug on this myself, and was given a patch for SP1, you should be
    able to ask for the patch for CR060416.
    Peter Mularien
    Deploy Solutions, Inc.
    Andreas Koerner wrote:
    >
    We deploy a servlet (in a single .war archive) establishing a RMI connection to
    an external Java object bound into weblogic JNDI (WLS 6.1).
    We get a ClassCastException on invoking JNDI lookup:
    Servlet failed with Exception>
    java.lang.ClassCastException: $Proxy67
    at com.thyssenkrupp.tks.tnt.admin.rmi.ClientServlet.init(ClientServlet.java:81)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:698)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:641)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:586)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:366)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:240)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Curiously we don't observe these problems when we include all the classes of the
    remote application in the classpath of the WebLogic Server. Actually we want to
    avoid including external classes in weblogic.classpath for (hot) deployment reasons.
    It also seems that problems don't occur when accessing the remote object from
    an independent client application.
    We expect this to be a classloader conflict within WLS 6.1
    Does anybody know a solution to our problems?
    Thanks for suggestions
    Andreas Koerner

  • Help how to look up ejb3 deployed in ear using jndi

    Hi,everyone:
    I'm trying to use jndi to look up ejb3 depoyed in ear-file. The structure of ear file is like: taas.ear\app.jar , the "app.jar" is where the ejbs are deployed.
    If i write code:
    jndiContext.lookup("ServiceProviderDaoImpl/local");There will be exception:
    javax.naming.NameNotFoundException: ServiceProviderDaoImpl not boundHowever, if i deploy the ejbs directly in a app.jar which is not in a ear-file, then same same code will work fine.
    I cannot figure out how to write the correct code to look up the ejbs.
    I use jboss 5.0.1GA.
    Could anyone help me? Thanks a lot.

    Usually the lookup name is:
    earname/ServiceProviderDao/local
    Replace "earname" with the name of your ear of course, without the '.ear' extension.
    Use the JBoss JMX console and then the jndiView service to see under what names your EJBs are bound (under "global namespace" I think the label was).

  • How to look for the Table Name

    Hi Friends,
    Sometimes we need to download the table for the desired information if the same is not available from a particular report. How to look for the table name? Is there a report or a particular feild, where we can find the name of the particular table?
    Thanks for the assistance.
    Regards

    Hi Friend,
    If you want to see the structures then go to SE11. Sometimes it happens that you cannot find the table names but only fields. In such case, if you want to find the Table names which is not available, then go to SE90.
    Abap Dictionary > Fields > Table Fields.
    Now Enter the Field name in Right Hand Side of the screen then Execute. You will see the all tables by which that Fields are used.
    Regards,
    Jigar

  • How  to  look for  fi doc  number in cj88

    HI  expert:
          when I  run cj88.   the system generate FI  doc number.   how to look for FI doc number.
    can you tell me !
    thank you !!!!

    Hi,
    You can see the FI Doc. thru' given instruction
    Go to T-code CJI3 then fillup the WBS no. in which you want to see the Settlement document.
    Execute then filter up document type AA  double click on this & click on FI document.
    Hope it will solve your problem.
    Regards,
    Vishal Kr. Sharma

  • How to look for kMAT material in Testing client?

    Hi PP members:
    How to look for KMAT material in Test client,
    Note: I went to mm60 and entered material type: KMAT it did not populate any
    materials
    Is there any way where I can find the materials, If yes please let me know
    thanks
    Suren

    Hi Saritha:
    When I went to SE16, and entered MTART as KMAT it giving the following
    It is replying me back "No table entries found for specified key"
    Also want to bring to your kind attention I left MATNR field blank as I donot know
    the VC materials
    thanks

  • How to look for business partner number in GTS

    Hi Experts,
    How to look for the business partner number in GTS when we have the Customer Id number in r/3?
    Please let me know the path in GTS.
    Edited by: Anurag87 on Dec 9, 2010 2:17 PM

    Hello,
    just simple in GTS in transaction BP find by "3 External number" (which is yours R/3 number).
    Or in se16 table /SAPSLL/PNTBP type in field BPVSY you external number from R/3 system.
    Cheers,
    Gabriel.

  • How to look for a keyword in SAP MaxDB Library 7.6

    Hi,
    how to look for a keyword in SAP MaxDB Library 7.6 ( http://maxdb.sap.com/doc/7_6/7e/c3fb0e72fcf84580f7ee9fcec672b7/frameset.htm)
    Thank you.

    http://maxdb.sap.com/documentation/
    =>
    Section u201CDownloadu201D - HTMLHelp file < 7.8 or 7.7 version >
    HTMLHelp file
    .chm, full text search, print-optimized, 6.3 MB
    < download it or open it >
    < If downloaded, Then start on your server:
           maxdb-chmdoc-en-78_740.chm   >
    and type a keyword in field u201CType in the keyword find:u201D and search.
    Itu2019s working fine.
    Regards, Natalia Khlopina

  • How to look for sales order number if I know outbound delivery number?

    How to look for sales order number if I know outbound delivery number?

    Hi ,
        If you want to see the Sales order Number from Outbound delivery or invoice,go to their respective T-codes,say for example,
    for delivery,Goto Tcode: VL02N / VL03N.There you will find Document Flow Icon,click on that,or press F7.
    You will get a window,there you can see the Sales order Number before your outbound delivery Number
    With Thanks and Regards,
    Priya

  • How  to look at mail queue

    I have installed Collaboration Suite 9.0.3, and am curious to know how to look at the mail queue on the OCS server, and more specifically, how do I delete emails in the queue? Somebody apparently found us during the installation of this server before I could lock it down with spam rules, and I have a ton of junk emails stuck in the queue that won't go anywhere. How do I get rid of those messages? They are literally using up the server resources after about 5 hours of the server trying to send them.
    Thanks,
    Michael

    Well, I guess that's part of the problem too. I'm not sure I have emails in the queue. I have the OCS server set up with the relay host set to another server on the network running sendmail. If I stop the smtp_out service on the OCS server, and then start it again, I see a bunch of messages being sent to the relay server to be delivered, most of them spam as far as I can tell. The sendmail server is set to reject those messages, so it does not try to deliver them and therefore does not put them in the queue on that server. However, regardless of restarting smtp_out, restarting Unified Messaging, restarting OCS, or restarting the entire server, those messages continue to remain in what I'm assuming is the queue on the OCS server. Does that make any sense? From what I can get from the documentation, they must be sitting in the mailstore database somewhere, and I'm wondering if there is a query I can run to at least look and see what is there, and preferable delete them. Otherwise, I guess I have to wait 5 days for the server to finally give up.
    Any ideas?
    Thanks,
    Michael

  • How to look at the delta (daily load) records from R/3 system to BW master

    How to look at the delta (daily load) records from R/3 system to BW master on a particular date, let us say,
    today delta happened from R/3 to 0vendor  in BW , how to view what are all the records came to BW - 0vendor (from R/3) in today's delta.
    Regards
    Siva

    Hi,
    youi can see the data in the PSA.
    Just go to the request in monitor tab and in the monitor and in the left top click on the PSA button.
    In the nest window give the selection on the number of records you want to see from that if you want to see all the records give the number which get laoded in that request.
    this will show you the data loaded in that request.
    Hope it clears
    thanks

  • How to look at your internet history on your hard drive on a mac

    how to look at your internet history on your hard drive on a mac

    Using Safari ..
    From the Safari menu bar click History > Show History

  • How to look at standard Busniess content for AP

    Hi Gurus,
    We are on ECC 6.0 and BI 7.0
    Can you please tell me how to look at the stantard business content deliverd by SAP so that I can know what cubes and queries are delivered.
    Thanks
    Prasad

    http://help.sap.com/saphelp_nw70/helpdata/en/ee/cd143c5db89b00e10000000a114084/frameset.htm
    In ECC --> RSA5
    SAP R/3 --> FI --> FI-AP

  • How to look at sid tables generated for an ods?

    Hi all,
    There  is atrns code : listschema which enables to have a look of the sid tables generated for infocubes.
    Is there any trsn code where we can see the list of sid tables generated for ods. if not let me know the procedure how to look at the sid tables generated for ods.
    regds
    hari

    hi,
    i think u will try like this:
    go to transaction code SE11
    TYEP UR NAME LIKE THIS:
    EX: /BIC/AODS_CUS00XXXX
    BI: MEANS business defined
    C: customer
    0 : SAP defined
    A: Active data table of ods
    TYPE LIKE THIS : /BIC/ODS NAME * (STAR)
    YOU MAY GET VALUES:
    THANKS, KR

Maybe you are looking for