Transaction over IIOP ?

Hi,
          I read in the e-docs that WLE does not support transactions over IIOP, because
          "the requirement for transaction propagation from the client is in question".
          There is the OTS (currently, we are talking about version 1.2) out for quite a
          while. Why exactly are transactions not supported? Will there be an OTS
          conformant implementation in WLE in the near future?
          My source is http://e-docs.bea.com/wls/docs61/rmi_iiop/API_rmi_iiop.html#1050737
          "While RMI over IIOP does allow CORBA/IDL clients to access EJBeans, the
          following services will not be available:
          * EJB transaction services
          * EJB security services"
          Cheers,
          Jörg
          

I think this may be coming in the next release or perhaps even a service pack.
          Post to the "rmi-iiop" group for exact info.
          Joerg Bartholdt wrote:
          > Hi,
          >
          > I read in the e-docs that WLE does not support transactions over IIOP, because
          > "the requirement for transaction propagation from the client is in question".
          >
          > There is the OTS (currently, we are talking about version 1.2) out for quite a
          > while. Why exactly are transactions not supported? Will there be an OTS
          > conformant implementation in WLE in the near future?
          >
          > My source is http://e-docs.bea.com/wls/docs61/rmi_iiop/API_rmi_iiop.html#1050737
          > "While RMI over IIOP does allow CORBA/IDL clients to access EJBeans, the
          > following services will not be available:
          > * EJB transaction services
          > * EJB security services"
          >
          > Cheers,
          > Jörg
          

Similar Messages

  • Transactions over IIOP?

    Hi,
    I read in the e-docs that WLE does not support transactions over IIOP,
    because "the requirement for transaction propagation from the client is
    in question".
    There is the OTS (currently, we are talking about version 1.2) out for
    quite a while. Why exactly are transactions not supported? Will there be
    an OTS conformant implementation in WLE in the near future?
    My source is
    http://e-docs.bea.com/wls/docs61/rmi_iiop/API_rmi_iiop.html#1050737
    It says: "While RMI over IIOP does allow CORBA/IDL clients to access
    EJBeans, the following services will not be available:
    * EJB transaction services
    * EJB security services"
    Cheers,
    Marcus

    Marcus Wittig <[email protected]> writes:
    I read in the e-docs that WLE does not support transactions over IIOP,
    because "the requirement for transaction propagation from the client
    is in question".
    There is the OTS (currently, we are talking about version 1.2) out for
    quite a while. Why exactly are transactions not supported? Will there
    be an OTS conformant implementation in WLE in the near future?You are referencing the WLS docs but refer to WLE, which is it you
    want?
    OTS will be supported in WLS 7.0. However, the JDK client does not
    support OTS, so client-demarcated transactions (as opposed to
    server-server) will still be problematic. We will almost certainly
    provide the explict OTS bindings for clients so that it can be used
    from C++ clients, however this is somewhat cumbersome for J2EE
    clients.
    andy

  • Transactions over JNDI

    I have to WebLogic 5.1 sp4 servers running non-clustered. From a session
    bean method which is transaction Required I do a bind or lookup from one
    machine to the other. This works fine, but 30 seconds later, I get a
    message
    from the second server (not running the bean) saying that the transaction
    timed out
    Fri Jul 21 14:10:43 EDT 2000:<I> <TX> Transaction (TxC (508234144, xid =
    964202469692_3, timeout = 30, txState = Marked Rollback, root =
    5579374773776952185S120.16.2.69:[9011,9011,9012,9012,9011,-1]/271) rolled
    back after 30 sec..
    Has anyone seen this? Is there a way around this? The problem exists
    whether I
    close the connection or not.
    Thanks-
    -Doug

    Marcus Wittig <[email protected]> writes:
    I read in the e-docs that WLE does not support transactions over IIOP,
    because "the requirement for transaction propagation from the client
    is in question".
    There is the OTS (currently, we are talking about version 1.2) out for
    quite a while. Why exactly are transactions not supported? Will there
    be an OTS conformant implementation in WLE in the near future?You are referencing the WLS docs but refer to WLE, which is it you
    want?
    OTS will be supported in WLS 7.0. However, the JDK client does not
    support OTS, so client-demarcated transactions (as opposed to
    server-server) will still be problematic. We will almost certainly
    provide the explict OTS bindings for clients so that it can be used
    from C++ clients, however this is somewhat cumbersome for J2EE
    clients.
    andy

  • Implicit context propagation from JSP/EJB to RMI over IIOP?

    Is there a way to implicitly send information, such as a UID, over IIOP. We
    don't want/need the overhead of transactions but would like to embed this
    UID in all threads from where they started...through to other VMs on other
    hosts. This is to be used for monitoring the application.
    Any help would be greatly appreciated!!
    Shane

    Shane wrote:
    Does this get propagated to RMI servers as well...not just from EJB to EJB??Yes.
    >
    And, does using SSL create much extra overhead?Yes.
    >
    >
    "Eduardo Ceballos" <[email protected]> wrote in message
    news:[email protected]..
    In WLS 6.0, you can use SSL. With SSL, the identity of the caller ispropagated along with the request.
    Shane wrote:
    Is there a way to implicitly send information, such as a UID, over IIOP.
    We
    don't want/need the overhead of transactions but would like to embedthis
    UID in all threads from where they started...through to other VMs onother
    hosts. This is to be used for monitoring the application.
    Any help would be greatly appreciated!!
    Shane

  • Enums over IIOP issue

    When trying to serialize java5 enum types over iiop (e.g. using the wlogic.jar client), you'll get a Mismatched serialization UIDs-exception (tested with WLS 10.3). This derives from a known bug or an omission in the java5 specification. There's a good description here, unfortunately in german only:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6277781
    You can either use weblogic.jar to avoid IIOP or overwrite the default serializer class as a workaround. But I would like to know if the issue is already adressed at Oracle and if there will be a fix in the near future.
    Regards,
    Thomas

    No information on this issue?

  • RMI over IIOP

    Hi all...
    I am now trying a program with RMI over IIOP. My server is behined a firewall and proxy and client will be running out side the network. So in this situation I want to allow this particular client through the proxy. I am not sure whether the Proxies like ISA, MS Proxy, Wingate, iPlanet and Apache proxy will allow IIOP protocol to route through the proxy. Also How can I ensure security? Does IIOP provides any security?
    Please help me by giving some comments on this.
    Any suggestions are appreciable.
    regards,
    Sankaran

    Like in all normal RMI apps you will need open the firewall ports needed to communicate to the server on the firewall..

  • JMS over iiop -- org.omg.CORBA.UNKNOWN

    I have simple java client which tries to lookup a jms QueueConnectionFactory
    over iiop .
    The code is
    ht.put(
    Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory" );
    ht.put( Context.PROVIDER_URL,"iiop://222.222.222.222:1111" );
    ctx = new InitialContext( ht );
    qConnectionFactory = (QueueConnectionFactory) ctx.lookup( "My queue con
    factory"); < -- this line cause a
    org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    com.sun.corba.se.internal.iiop.ReplyMessage.getSystemException(ReplyMessage.
    java:93)
    at
    com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientR
    esponseImpl.java:83)
    at
    com.sun.corba.se.internal.corba.RequestImpl.doInvocation(RequestImpl.java:32
    1)
    at com.sun.corba.se.internal.corba.RequestImpl.invoke(RequestImpl.java:223)
    at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
    at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at Jms.<init>(Jms.java:75)
    at Jms.main(Jms.java:22)
    Anybody know if looking up JMS con factories is ok on iiop in WLs61sp2 ?
    Thanks

    "golibaar" <[email protected]> writes:
    JMS over IIOP is not supported, not required by the spec and will not work.
    This is a WLS 7.1 feature.
    andy
    I have simple java client which tries to lookup a jms QueueConnectionFactory
    over iiop .
    The code is
    ht.put(
    Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory" );
    ht.put( Context.PROVIDER_URL,"iiop://222.222.222.222:1111" );
    ctx = new InitialContext( ht );
    qConnectionFactory = (QueueConnectionFactory) ctx.lookup( "My queue con
    factory"); < -- this line cause a
    org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    com.sun.corba.se.internal.iiop.ReplyMessage.getSystemException(ReplyMessage.
    java:93)
    at
    com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientR
    esponseImpl.java:83)
    at
    com.sun.corba.se.internal.corba.RequestImpl.doInvocation(RequestImpl.java:32
    1)
    at com.sun.corba.se.internal.corba.RequestImpl.invoke(RequestImpl.java:223)
    at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
    at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at Jms.<init>(Jms.java:75)
    at Jms.main(Jms.java:22)
    Anybody know if looking up JMS con factories is ok on iiop in WLs61sp2 ?
    Thanks

  • ClassLoader problems over IIOP

    I'm currently porting our application from WebSphere to WebLogic and I have got the following issue concerning class loading on the client side:
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.valuehandlerReadException(ORBUtilSystemException.java:6500)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1045)
         at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
         at com.j2fe.general.interfaces._RegistryBeanRemote_Stub.getFacade(Ljava.lang.String;)Lcom.j2fe.general.HibernateFacade;(Unknown Source)
         at com.j2fe.ui.base.model.GSApplication.setAdditionalFacadeProxies(GSApplication.java:505)
         at com.j2fe.ui.base.model.GSApplicationServerConnectionParser$1.run(GSApplicationServerConnectionParser.java:289)
         at javax.security.auth.Subject.doAs(Subject.java:337)
         at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at com.j2fe.ui.base.model.GSApplicationServerConnectionParser.createApplication(GSApplicationServerConnectionParser.java:320)
         at com.j2fe.ui.base.jobs.ConnectAndParseJob.run(ConnectAndParseJob.java:97)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
    Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
         at com.sun.corba.se.impl.io.ObjectStreamClass.readResolve(ObjectStreamClass.java:316)
         at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:403)
         at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
         at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
         ... 10 more
    Caused by: java.lang.reflect.InvocationTargetException
         at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at com.sun.corba.se.impl.io.ObjectStreamClass.readResolve(ObjectStreamClass.java:314)
         ... 14 more
    Caused by: java.lang.ClassNotFoundException
         at weblogic.iiop.ProxyDesc.readResolve(ProxyDesc.java:47)
         ... 17 more
    Caused by: java.lang.IllegalArgumentException: interface com.j2fe.general.HibernateFacade is not visible from class loader
         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:345)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:564)
         at weblogic.iiop.ProxyDesc.readResolve(ProxyDesc.java:45)
         ... 17 more
    Is it a problem for WebLogic to transfere Proxy classes over IIOP? The com.j2fe.general.HibernateFacade-interface is available on client side and can be loaded by the application class loader (which is an Eclipse application).
    The strange thing is that it's possible to do a Class.forName with that class immediately before and after the EJB-call which should get that proxy class from the server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thomas Brandl <> writes:
    Proxy is only supported in 9.x, this looks like a trace from 8.1
    andy
    I'm currently porting our application from WebSphere to WebLogic and I have got the following issue concerning class loading on the client side:
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.valuehandlerReadException(ORBUtilSystemException.java:6500)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1045)
         at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
         at com.j2fe.general.interfaces._RegistryBeanRemote_Stub.getFacade(Ljava.lang.String;)Lcom.j2fe.general.HibernateFacade;(Unknown Source)
         at com.j2fe.ui.base.model.GSApplication.setAdditionalFacadeProxies(GSApplication.java:505)
         at com.j2fe.ui.base.model.GSApplicationServerConnectionParser$1.run(GSApplicationServerConnectionParser.java:289)
         at javax.security.auth.Subject.doAs(Subject.java:337)
         at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at com.j2fe.ui.base.model.GSApplicationServerConnectionParser.createApplication(GSApplicationServerConnectionParser.java:320)
         at com.j2fe.ui.base.jobs.ConnectAndParseJob.run(ConnectAndParseJob.java:97)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
    Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
         at com.sun.corba.se.impl.io.ObjectStreamClass.readResolve(ObjectStreamClass.java:316)
         at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:403)
         at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
         at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
         at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
         ... 10 more
    Caused by: java.lang.reflect.InvocationTargetException
         at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at com.sun.corba.se.impl.io.ObjectStreamClass.readResolve(ObjectStreamClass.java:314)
         ... 14 more
    Caused by: java.lang.ClassNotFoundException
         at weblogic.iiop.ProxyDesc.readResolve(ProxyDesc.java:47)
         ... 17 more
    Caused by: java.lang.IllegalArgumentException: interface com.j2fe.general.HibernateFacade is not visible from class loader
         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:345)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:564)
         at weblogic.iiop.ProxyDesc.readResolve(ProxyDesc.java:45)
         ... 17 more
    Is it a problem for WebLogic to transfere Proxy classes over IIOP? The com.j2fe.general.HibernateFacade-interface is available on client side and can be loaded by the application class loader (which is an Eclipse application).
    The strange thing is that it's possible to do a Class.forName with that class immediately before and after the EJB-call which should get that proxy class from the server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to display a particular transaction over portal as per its id

    hi
    we have a requirement like this...
    we have already developed some 200 iviews and the corrosponding pages...
    now we want to develope an application either in web dynpro or pdk that we will upload over portal. that application will be having an inputfield for entering transaction number and a search button.
    on the click of button our application must be able to search and display the corrosponding transactional iview already developed
    plz guide on how this is possible

    Hi,
    I don't think message input text allows to set URI property and it is available with MessageStyledText.
    So if you want to achieve your requirement then you can take two items one message text input and other one as messageStylesText then if it is readonlymode then hide input text and render MessageStyled text and viceversa.
    In this case you will be able to display links in case of Readonly text.
    Regards,
    Reetesh Sharma

  • Query about transactions over the whole chart of accounts

    hi, i'm a beginner with the SAP SDK, so pleaase be patient , i 'm working to do a SQL-query (yeah, i'm not allowed to use  the COM objects) for all the transactions made on every account and also to retrieve their profit centers, so i have a few questions/validations that i need about the SAP bd-model:
    as far as i know, the tables involved with this query i need are:
    OJDT - journal entry
    JDT1 - journal entry rows
    OOCR - Distribution rules
    OACT - Accounts
    OPRC - Profit Centers
    ..¿or can i just skip the OOCR table and join the tables JDT1 and OPRC using the PrCode field? (the reference says this field is a FK of the OOCR table so that's why i'm not sure about this, even if the field name is fool-proof )
    thanxs for your time!!
    EDIT: this is the query so far,  i have  my doubts about the use of PrcCode(JDT1) as a FK for the OPRC table (because like i was mentioning before, the documentation says it isn't, it's a FK for the OORC table)
    also the DI API Help file says there is also another 4 FK fields (ocrcode2,ocrcode3,ocrcode4,ocrcode5) for the OOCR table, so i'm wondering if this SQL query is fine like this or if i'm missing something else please help mee!
    SELECT
    je1.TransId
    ,je1.Debit
    ,je1.Credit
    ,acc.AcctCode
    ,acc.AcctName
    ,prc.PrcName
    ,prc2.PrcName
    ,prc3.PrcName
    ,prc4.PrcName
    ,prc5.PrcName
    ,je.Memo
    FROM
    JDT1 as je1
    left join OPRC as prc on je1.ProfitCode = prc.PrcCode
    left join OPRC as prc2 on je1.OcrCode2 = prc2.PrcCode
    left join OPRC as prc3 on je1.OcrCode3 = prc3.PrcCode
    left join OPRC as prc4 on je1.OcrCode4 = prc4.PrcCode
    left join OPRC as prc5 on je1.OcrCode5 = prc5.PrcCode
    inner join OACT as acc on je1.Account = acc.AcctCode
    inner join OJDT as je on je1.TransId = je.TransId
    and je.RefDate <= '20101028 00:00'
    GROUP BY
    je1.TransId
    ,je1.Credit
    ,je1.Debit
    ,acc.AcctCode
    ,acc.AcctName
    ,prc.PrcName
    ,prc2.PrcName
    ,prc3.PrcName
    ,prc4.PrcName
    ,prc5.PrcName
    ,je.Memo

    When u have created your company that time u should create with copy anuway
    but it's look to me your COA is not generated with depending accounts

  • Distributed transaction over rpc

    Hi,
    I'm developing a distributed system configured as:
    - an xml-rpc server that provide/store data into a database
    - multiple Swing based client that display/modify the stored data invoking a server remote procedure
    so clients don't access the database but simply extract datas from user inputs and send them as parameters of a remote call.
    The server (remote) method invoked by clients is declared as syncronized and
    I use a single JDBC connection to the database.
    I need to give the client the possibility to ask the server to begin a database transaction, to make some (write) request, and finally to commit or rollback depending on requests's success.
    Do I have to use JTA API?
    Do I have to introduce connection pooling?
    And what do you think about this implementation? any suggestion?
    Thank's for the attention, sorry for my english

    I will try to make a quick typical example: authors
    and books.
    Please, for the last time, tell me if I have to worry
    about my health...
    My swing interface show a tabbed pane to the client
    who want to store a new author:
    in the first tab client fill generic information
    about the author (name,birth,...)
    in the second tab client add a list of books
    When client want to save this data I want to call two
    distinct remote methods,doing two different
    requests:
    1.saveAuthor(<listOfParams>)
    2.savePubblications(<listOfParams>)
    'd like to keep this methods separate because if I
    want to modify only author data or only pubblications
    data (relative to a just saved author) I want to use
    the same panels, collect data from panels in the same
    way, and call the same remote method, calling
    saveAuthor() in the first case and
    savePubblications() in the second.Yes. In those cases saving author alone or publications alone are units of work.
    I'd like to emphasize that the code to save either author or publications is NOT in the Swing UI. They should be separate Java classes that you can write, test, and debug separately, without any UI.
    Do a search for the Data Access Object or DAO pattern. That's what you need here.
    But when I create a new author I want save his data
    and his pubblications all together. For this reason
    I'd like to specify from client when a group of
    requests are to be threatened as one.yes, but in that case you have to provide some kind of button to trigger an event that indicates that both author and publications are to be a combined unit of work. The thing that will demark the transaction is a service object, that in turn will use both the author and publication DAOs in a single transaction.
    each request could be something like this:
    connection.setAutocommit(false);
    2..n write operations
    connection.setAutocommit(true);
    so I thoughtI can't use connection level transaction
    management but something like JTA.No, you can use either JTA or Java hand-coded transactions. You just have to be able to pass the same connection to both DAOs.
    Or implement my "request transaction" system if JTA
    is not for this purpose.You need separate DAOs that know nothing about transactions.
    You need a service layer that does know about transactions and uses DAOs to satisfy user requests.
    %

  • Transactions over multiple application servers

    Hello,
    we have following situation.
    We have a bunch of core services deployed on a central application server and some applications deployed on individual application servers.
    The services are developed as normal remote interfaces.
    The core service interfaces have special annotations, so the service locator knows, that he has to lookup them on other servers.
    Now we have the following case:
    This code is executed in application server 1.
    Service2 is deployed in application server 2 and Service3 in application server 3.
    public void doSomething() {
            ServiceLocator locator = ServiceLocator.getInstance();
            Service2 service2 = locator.getService(Service2.class);
            service2.doSomething();
            Service3 service3 = locator.getService(Service3.class);
            service3.doSomething();
    }Each of the calls to service2 and service3 performs some database operations.
    But, if service3.doSomething() fails, the database operations done by service2.doSomething() are not rolled back. (no surprise)
    What do we have to do, so that the service2 operations are also rolled back on service3 failures?
    Thanks
    Dirk

    Doesn't work... :(
    Here my sample code:
    Service1 (deployed on AS1)
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
        public void doSomething() {
            Logger.getLogger(getClass().getName()).info("doSomething");
            ServiceLocator locator = ServiceLocator.getInstance();
            Service1Entity entity = new Service1Entity();
            entityManager.persist(entity);
            Service2 service2 = locator.getService(Service2.class);
            service2.doSomething();
            Service3 service3 = locator.getService(Service3.class);
            service3.doSomething();
        }Service2 (deployed on AS2)
    @TransactionAttribute(TransactionAttributeType.MANDATORY)
        public void doSomething() {
            Logger.getLogger(getClass().getName()).info("doSomething");
            Service2Entity entity = new Service2Entity();
            entityManager.persist(entity);
        }Service3 (deployed on AS3)
    @TransactionAttribute(TransactionAttributeType.MANDATORY)
        public void doSomething() {
            Logger.getLogger(getClass().getName()).info("doSomething");
            Service3Entity entity = new Service3Entity();
            entity.setUuid("Bang");
            entityManager.persist(entity);
        }Each service has a XA datasource configured. The all access the same database.
    But when I call service1.doSomething(), I get a javax.ejb.EJBTransactionRequiredException from service 2.
    Does somebody has an idea?
    thanks
    Dirk

  • Problem completing transaction over items i want to purchase for games.

    I can't purchased items from in game. It prompts me to check with I-tunes support to complete the transaction

    Do you have Restrictions turned On for In App Purchases...
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Distributed transactions across RMI-IIOP client to RMI-IIOP server do not work

    Hi,
              Based on the links below:
              http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
              http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
              It appears that is possible to have distributed transactions across RMI-IIOP
              clients and RMI-IIOP applications (servers).
              I followed up the "Transactions Sample RMI Code" section but it appears that
              the transaction context is not propagated from client to server. I am also
              surprised by the note:
              Note: These code fragments do not derive from any of the sample applications
              that ship with WebLogic Server. They merely illustrate the use of the
              UserTransaction object within an RMI application.
              The above note suggests that there is no sample code available.
              Is there anyone who successfully had RMI-IIOP applications (servers)
              participating in distributed transactions?
              Is there any sample code that illustrates RMI-IIOP applications (servers)
              participating in distributed transactions?
              If anyone thinks that this should work I will post my code that does not
              work.
              Regards,
              Dan Cimpoesu
              

    But if you look to the diagram:
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1040200
    it suggests that transactional context is passed from clients to RMI-IIOP
    servers.
    Am I wrong?
    Dan
    "Andy Piper" <[email protected]> wrote in message
    news:[email protected]..
    "Dan Cimpoesu" <[email protected]> writes:
    Transactions over IIOP are not supported or implemented in WLS 6.1 or
    previous. This is a feature of WLS 7.0. In 7.0 we implement OTS.
    andy
    Hi,
    Based on the links below:
    http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
    It appears that is possible to have distributed transactions across
    RMI-IIOP
    clients and RMI-IIOP applications (servers).
    I followed up the "Transactions Sample RMI Code" section but it appearsthat
    the transaction context is not propagated from client to server. I amalso
    surprised by the note:
    Note: These code fragments do not derive from any of the sampleapplications
    that ship with WebLogic Server. They merely illustrate the use of the
    UserTransaction object within an RMI application.
    The above note suggests that there is no sample code available.
    Is there anyone who successfully had RMI-IIOP applications (servers)
    participating in distributed transactions?
    Is there any sample code that illustrates RMI-IIOP applications(servers)
    participating in distributed transactions?
    If anyone thinks that this should work I will post my code that does not
    work.
    Regards,
    Dan Cimpoesu

  • Distributed transactions across RMI-IIOP client to server do not work

    Hi,
    Based on the links below:
    http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
    It appears that is possible to have distributed transactions across RMI-IIOP
    clients and RMI-IIOP applications (servers).
    I followed up the "Transactions Sample RMI Code" section but it appears that
    the transaction context is not propagated from client to server. I am also
    surprised by the note:
    Note: These code fragments do not derive from any of the sample applications
    that ship with WebLogic Server. They merely illustrate the use of the
    UserTransaction object within an RMI application.
    The above note suggests that there is no sample code available.
    Is there anyone who successfully had RMI-IIOP applications (servers)
    participating in distributed transactions?
    Is there any sample code that illustrates RMI-IIOP applications (servers)
    participating in distributed transactions?
    If anyone thinks that this should work I will post my code that does not
    work.
    Regards,
    Dan Cimpoesu

    But if you look to the diagram:
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1040200
    it suggests that transactional context is passed from clients to RMI-IIOP
    servers.
    Am I wrong?
    Dan
    "Andy Piper" <[email protected]> wrote in message
    news:[email protected]..
    "Dan Cimpoesu" <[email protected]> writes:
    Transactions over IIOP are not supported or implemented in WLS 6.1 or
    previous. This is a feature of WLS 7.0. In 7.0 we implement OTS.
    andy
    Hi,
    Based on the links below:
    http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
    It appears that is possible to have distributed transactions across
    RMI-IIOP
    clients and RMI-IIOP applications (servers).
    I followed up the "Transactions Sample RMI Code" section but it appearsthat
    the transaction context is not propagated from client to server. I amalso
    surprised by the note:
    Note: These code fragments do not derive from any of the sampleapplications
    that ship with WebLogic Server. They merely illustrate the use of the
    UserTransaction object within an RMI application.
    The above note suggests that there is no sample code available.
    Is there anyone who successfully had RMI-IIOP applications (servers)
    participating in distributed transactions?
    Is there any sample code that illustrates RMI-IIOP applications(servers)
    participating in distributed transactions?
    If anyone thinks that this should work I will post my code that does not
    work.
    Regards,
    Dan Cimpoesu

Maybe you are looking for

  • How do I put photos in the iPhoto Library onto my external hard drive?

    I used an old iMac for years and I would go into the hard drive in the Originals folder and drag each folder onto the external hard drive. That way I could easily find the different shooting sessions. Now with my new Mac I find an iPhoto Library fold

  • Regarding Application Performance

    Hi, I am developing the application using JSF Framework. For AJAx functionality I used a seperate servlet and for some other purpose I want to create one more servlet. Is there any problem in Performance if we keep on creating servlets in the applica

  • Revert to first time setup after updates to 10.4.11 ??

    Just sold my G4 450 Dual and I offered to do a fresh install of 10.4.11 but I don't know how to get there from original 10.4 disks. Is there a way to start up , enter info, get online and do updates, then revert to first-time setup with the welcome s

  • Fill IDOC segment, E1IDBW1. For PEXR2002 Basic Type

    Hello Team. We send the IDOC for the Basic Type PEXR2002, Message Type PAYEXT. This IDOC doesn't fill the Segment E1IDBW1 (IDoc header - special instructions (INP) ) I'm review some notes(1164524) and said to fill this segment it's neccesarie config

  • DBMS_XMLDOM.getdocumentelement failing...

    Hi, I have written a generic function which takes 2 XMLType as input (parent, child) and returns a XMLType by appending child inside parent. I am using dbms_XMLDOM for this. eg. if parent = <a></a> and child <b></b> then output would be <a><b></b></a