J2ME distrubuted transactions.

Hello all,
We have implemented MIDP application that is used for performing secured transactions. The problems is that there is nothing in J2ME that supports distributed transactions like J2EE JTA architecture. We are therefore forced to implement our own code to persist the transaction state on the device and retrieve it and resume the transaction. Although this is achieved, it has made the application much bigger that it needs to be, with some bugs due to reliability issues.
Is there any J2ME design pattern or third party API that allows for JTA like distributed transaction on J2ME as well?
Thanks in advance,
AUTOMATON

Hello all,
We have implemented MIDP application that is used for performing secured transactions. The problems is that there is nothing in J2ME that supports distributed transactions like J2EE JTA architecture. We are therefore forced to implement our own code to persist the transaction state on the device and retrieve it and resume the transaction. Although this is achieved, it has made the application much bigger that it needs to be, with some bugs due to reliability issues.
Is there any J2ME design pattern or third party API that allows for JTA like distributed transaction on J2ME as well?
Thanks in advance,
AUTOMATON

Similar Messages

  • Using ATMI and tuxedo for distrubuted transactions across multiple DBs

              I am creating the framework for a given application that needs to ensure that data
              integrity is maintained spanning multiple databases not necessarily within an
              instance of weblogic. In other words, I need to basically have 2 phase commit
              "internet transactions" between a given coordinator and n participants without
              having any real knowlegde of their internal system.
              Originally I was thinking of using Weblogic but it appears that I may need to
              have all my particular data stores registered with my weblogic instance. This
              cannot be the case as I will not have access to that information for the other
              participating sytems.
              I next thought I would write my own TP...ouch. Everytime I get through another
              iteration I kept hitting the same issue of falling into an infinite loop trying
              to ensure that my coordinator and the set of participants were each able to perform
              the directed action.
              My next attempt has led me to the world of ATMI. Would ATMI be able to help me
              here. Granted I am using JAVA so I am assuming that I would have to use CORBA
              to make the calls but will ATMI enable me to truly manage and create distributed
              transactions across multiple databases. Please, any advice at all would be greatly
              appreciated.
              Thanks
              Chris
              

              I am creating the framework for a given application that needs to ensure that data
              integrity is maintained spanning multiple databases not necessarily within an
              instance of weblogic. In other words, I need to basically have 2 phase commit
              "internet transactions" between a given coordinator and n participants without
              having any real knowlegde of their internal system.
              Originally I was thinking of using Weblogic but it appears that I may need to
              have all my particular data stores registered with my weblogic instance. This
              cannot be the case as I will not have access to that information for the other
              participating sytems.
              I next thought I would write my own TP...ouch. Everytime I get through another
              iteration I kept hitting the same issue of falling into an infinite loop trying
              to ensure that my coordinator and the set of participants were each able to perform
              the directed action.
              My next attempt has led me to the world of ATMI. Would ATMI be able to help me
              here. Granted I am using JAVA so I am assuming that I would have to use CORBA
              to make the calls but will ATMI enable me to truly manage and create distributed
              transactions across multiple databases. Please, any advice at all would be greatly
              appreciated.
              Thanks
              Chris
              

  • JDBC Thick connection using ADF

    Hi All,
    I am doing Thick Oracle connection using ADF but i am getting this error...
    java.lang.UnsatisfiedLinkError: no ocijdbc11 in java.library.path
    following is my code..
    try {
    Class.forName("oracle.jdbc.OracleDriver");
    Connection con=DriverManager.getConnection("jdbc:oracle:oci8:@dbndevp", "mfonline", "mfonline");
    System.out.println(con.isValid(1));
    } catch (Exception e) {
    e.printStackTrace();
    So how can i do it in ADF......
    -Thanks
    Edited by: Santosh Vaza on Dec 31, 2010 6:14 PM

    Suppose i have a backing bean class then how would i get connection to database, Suppose that i am using 2 connections to 2 different database.Case 1: If you are using ADF Business Components (or some other framework that implements "business services" layer)
    In this case ADF BC implement the "business services" layer in the application architecture and they are responsible for the interaction with the DB. You should encapsulate there all the program logic that interacts directly with the DB. You can invoke ADF BC methods from managed beans but you should not implement any direct DB operations in managed beans (in particular you should not open DB connections, parse and execute SQL statements in managed beans). If you need to work with 2 different databases, then you have to define 2 different ApplicationModules (with connections to these databases). There is an important disadvantage - ADF BC does not support global transactions (e.g. XA-compatible transactions), so if you need distrubuted transactions, then either you could use DB-links (if both databases are Oracle ones) or you will need a different framework.
    Case 2: If you are not using any framework that implements "business services" layer
    In this case you should not use DriverManager, but you could get DB connections from JDBC DataSources. In this way you would benefit from the connection pooling of the DataSources and you would avoid the heavy overhead of creating and closing DB connections. (When you close a DB connection acquired from a DataSource, in fact it is not closed but it is just checked back into the DataSource's connection pool).
    Dimitar

  • What is javax.sql.XADataSource

    would someone kindly explain what is xadatasource? in comparison with the plain datasource. thanks in advance.

    An XADatasource always provides XAConnection objects. where as a regular Datasource provides
    regular connections to a datasource mostly from a connection pool.
    According to the JDBC Spec, An XADatasource object creates XAConnection objects, connections
    derived from PooledConnection that can be used for distrubuted transactions.  An application that uses
    distributed transactions will need to be run using a JDBC driver that supports the XADatasource and
    XAConnection interfaces. As a matter of fact., XA connection objects are those that are used for distributed transaction support in
    J2EE. They can be used by the transaction manager to do distributed transactions, to various databases,
    in various locations. The XAConnection also provides method to get the XAResource, which the
    transaction manager uses to do the commit of the transactions by the two phase commit protocol.
    So only if you intend to use distributed transactions, use the twophase commit, and use the transaction
    manager feature, you need to worry about XADatasources. Everything else, you can do it through a
    Datasource.
    HTH..
    Jer

  • Infotype Data Upload through transaction PFAL

    Hi All,
    Is there any option to distrubute data infotype wise in the transaction PFAL, i.e., i want to move the data into a particular infotype only.

    Hi
    Make sure the structure that you are using in the upload is the same that you have defined in your LSMW and may be in the same order. Also the fields of the structure defined are correctly mapped to your Batch input recording.
    In this way you should not get any formatting error.
    Thanks
    Nikhil

  • Simple chat - J2ME to J2SE - Bluecove

    Hi, I have a question.
    Where can I find a little application that put a string from mobile to pc, using bluecove library?
    Some example of code, of course.
    Thank in advance and sorry for my bad english.
    BumbaBoom
    Edited by: BumbaBoom on Dec 7, 2008 6:14 AM

    thanx justin. i tried unsuccessfully to install the j2me wireless connection wizard module and had the following errors:
    ==========
    Could not install some modules:
    J2ME Wireless Connection Wizard - The module named org.netbeans.modules.web.ie/1 was needed and not found
    J2ME Wireless Connection Wizard - The module named org.netbeans.modules.web.core/1 was needed and not found
    ==========
    does that mean that the module can only be used with j2ee? and if so, would u recommend that i use this module and therefore have to install j2ee? or would u still recommend me to stick to a simpler j2se? u would be right about your gut feeling. its not anything huge, just as long as it can do simple database transactions like SELECT and UPDATE.
    thanx in advance again!
    Yeah you can use j2se for servlets, but it really
    depends a lot on the scope of your application. If
    you're not writing anything huge, then itll be a lot
    quicker and easier just to use j2se for your
    application, but if you're developing an actual large
    scale enterprise application then you would want to go
    j2ee for reasons of scalability. My gut tells me that
    j2se is more than adequate for you.
    You can code j2me in most any ide, but you'll also
    want to get palm's simulator to run your j2me code so
    you don't have to load it on to the palm device over
    and over again while testing.
    good luck.
    -Justin

  • J2me with mysql

    hello everyone,
    can we anyone help me with small example, how to connect j2me with mysql.

    Put all your Database transactions in server side, using Connection framework in J2ME, access that URL by your device. Here is a snap to access a URL to get the message returned by that URL.
    public String getMessage(String url)
         HttpConnection hc = (HttpConnection)Connector.open( url, Connector.READ_WRITE );
         hc.setRequestMethod( HttpConnection.POST );
         InputStream in=hc.openInputStream();
         DataInputStream dis=new DataInputStream(in);
         int ch;
         String msg="";
         while((ch=dis.read())!= -1)
              msg=""+msg+(char)ch;
         reutrn msg;
    }

  • Homogenous Distrubuted Database.

    what is the best practise to insert the records in Homogenous distrubuted Environment.
    example i have 3 database whenever any dml transaction happens on one i want to update the other databases also...
    I was thinking for the dblink to preform this task... but want to know the best practise to do the same...
    waiting for response...

    Thanks for your reply...
    I am having three office at three different location generally they use they office information only but sometime they want to other offices information too...
    and I don't want one database forthis...
    What i was thinking...
    create three database and install server at each office and whenever any transaction happens i want to insert into other two database also...
    I don't want to implement dataguard... if I do this on 10g then i cannot pass any transaction against the data guard db that's why i was thinking to create a dblink to push the data to other database with simple insert command in after insert trigger.... but iam not sure whether this is the correct away of doing ?

  • J2ME email clients (POP3, SMTP + sending  attachments)?

    Hello,
    Maybe this topic was already discussed once before in this form, but after having a quick look into it I wasn't able to find proper answer for following topic.
    Well, I'm looking for a J2ME email client (open source prefered) which is capable to send *emails with Attachments (csv data or pictures).*
    Mail4Me seems to be a candidate referring the feature set and mem consumption, but I'm not quite sure, if
    sending attachments is supported....
    Maybe somebody in that community can help me or at least can highlight any other packages.
    Many thanks in advace!
    BR

    Hello Mike,
    the first thing I thought of was the conversion rules in SCOT and I don't know of any other option (customizing) that could affect the way it works.
    I have solved a similar problem in SCOT w/workflow which went like this:
    - The (old) RSWUWFML-report attaches the persistent object reference to the workitem (as the old-style-SAP-Shortcut-Format) that enables the user to execute this workitem from the mail.
    - When we installed the new SAP Gui it didn't worked anymore (because shortcut format .SAP changed).
    - I have implemented in SCOT a conversion-exit that transformed the attachment into a .SAP-Shortcut that called a self-made-transaction to execute this workitem.
    So, if no one else has any good idea of what to do about, I would propose to use a conversion exit in the SCOT. This scans for a FOL...object reference, uses some kind of function module to retrieve the content as text and then outputs a .txt-Attachment. This should work (but is more effort, as well).
    Best wishes,
    Florin

  • Creating Demo J2ME application

    Hi friends,
    I have created one J2ME application. It is working fine.
    Can anybody tell me waht I will have to do if I want to make demo of it.
    Means I want create demo of that application for certain days say 10 or 15.
    After that much days softwrae will not run.
    How can I achieve this?
    Plz I need it urgently
    Thanks in advance

    The problem is that actually I am one of Lync administrators and I need to decide what is most important for Lync infrastructure. What I found in a meantime is "Health Rolllup Diagram" module in Lync server 2013 Management Pack Guide, part of it
    below:
    A Lync Server pool can contain multiple individual Lync Server systems (with more than one Lync Server server role, Lync Server service, and Lync Server component). Therefore, the failure of an individual server or component is less critical to the overall
    health of the Lync Server pool, because other servers in the same pool can provide the application service to the client. The health will roll up on a percentage level to the Lync Server pool.
    The Lync Server Pool Watcher performs synthetic transactions against a Lync Server pool. Consecutive failure of one or more synthetic transactions (a process known as the
    consecutive polling interval) will roll up the critical health state to the pool level (worst of any synthetic transaction), as shown in the following diagram.
    Note: The Lync Server Port Watcher and global Simple URL Watcher do not roll up the health state.
    Using this information I think that I should start with using LS site class for monitoring Lync servers (Mediation and FrontEnd), am I right? But not sure what I should do with the rest of infrastructure, SQL server, Office web apps and
    the rest

  • Creating Licensed J2ME application

    Hi friends,
    I have created one J2ME application. It is working fine.
    Can anybody tell me what I will have to do if I want to make demo of it.
    Means I want create demo of that application for certain days say 10 or 15.
    After that much days softwrae will not run.
    How can I achieve this?
    Plz I need it urgently
    Thanks in advance

    The problem is that actually I am one of Lync administrators and I need to decide what is most important for Lync infrastructure. What I found in a meantime is "Health Rolllup Diagram" module in Lync server 2013 Management Pack Guide, part of it
    below:
    A Lync Server pool can contain multiple individual Lync Server systems (with more than one Lync Server server role, Lync Server service, and Lync Server component). Therefore, the failure of an individual server or component is less critical to the overall
    health of the Lync Server pool, because other servers in the same pool can provide the application service to the client. The health will roll up on a percentage level to the Lync Server pool.
    The Lync Server Pool Watcher performs synthetic transactions against a Lync Server pool. Consecutive failure of one or more synthetic transactions (a process known as the
    consecutive polling interval) will roll up the critical health state to the pool level (worst of any synthetic transaction), as shown in the following diagram.
    Note: The Lync Server Port Watcher and global Simple URL Watcher do not roll up the health state.
    Using this information I think that I should start with using LS site class for monitoring Lync servers (Mediation and FrontEnd), am I right? But not sure what I should do with the rest of infrastructure, SQL server, Office web apps and
    the rest

  • Error while comitting a transaction in oSB. The following is the error stack

    Error while comitting a transaction in OSB. The following is the error stack
    <Apr 20, 2015 12:00:15 AM MDT> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Xid=BEA1-1AE41F1CAE45F2B146FD(296700848),Status=Rolled back. [Reason=Unknown],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds left=120,XAServerResourceInfo[WLStore_SOA_PRDKS_DOMAIN_FileStore_SOA_MS2]=(ServerResourceInfo[WLStore_SOA_PRDKS_DOMAIN_FileStore_SOA_MS2]=(state=new,assigned=none),xar=null,re-Registered = false),XAServerResourceInfo[WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1]=(ServerResourceInfo[WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1]=(state=rolledback,assigned=OSB_MS1),xar=WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_11603460297,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.jta.DataSource]=(ServerResourceInfo[weblogic.jdbc.jta.DataSource]=(state=ended,assigned=none),xar=CMSDS,re-Registered = false),SCInfo[OSB_PRDKS_DOMAIN+OSB_MS1]=(state=rolledback),SCInfo[SOA_PRDKS_DOMAIN+SOA_MS2]=(state=pre-prepared),properties=({}),local properties=({weblogic.jdbc.jta.CMSDS=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=OSB_MS1+soaprd-vip-osb-ms1.cos.is.keysight.com:8001+OSB_PRDKS_DOMAIN+t3+, XAResources={eis/wls/Queue, WEDB_EVEREST_OSB_PRDKS_DOMAIN, XREFDS_OSB_PRDKS_DOMAIN, eis/activemq/Queue, CustomSchemaDS_OSB_PRDKS_DOMAIN, MobileApps_CIA_DS1_OSB_PRDKS_DOMAIN, eis/tibjmsDirect/Queue, eis/jbossmq/Queue, eis/Apps/Apps, MobileApps_AOS_MDS_OSB_PRDKS_DOMAIN, MobileApps_AOS_DRDS_OSB_PRDKS_DOMAIN, WSATGatewayRM_OSB_MS1_OSB_PRDKS_DOMAIN, eis/webspheremq/Queue, eis/AQ/aqSample, SBLPROD_OSB_PRDKS_DOMAIN, wlsbjmsrpDataSource_OSB_PRDKS_DOMAIN, eis/aqjms/Queue, CMSDS_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN_WseeFileStore_auto_1, FAP_OSB_PRDKS_DOMAIN, eis/sunmq/Queue, eis/pramati/Queue, FMWAPPDS_OSB_PRDKS_DOMAIN, weblogic.jdbc.jta.DataSource, GSDC_OSB_PRDKS_DOMAIN, eis/tibjms/Topic, eis/fioranomq/Topic, WLStore_OSB_PRDKS_DOMAIN_FileStore_MS1, PresidioOracleAppsDS_OSB_PRDKS_DOMAIN, GSDCDS_OSB_PRDKS_DOMAIN, eis/aqjms/Topic, CustOutDS_OSB_PRDKS_DOMAIN, OFMW/Logging/BAM, MobileAppsDS_OSB_PRDKS_DOMAIN, FIDDS_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN__WLS_OSB_MS1, HRMSDS_OSB_PRDKS_DOMAIN, WEDB_OSB_PRDKS_DOMAIN, OracleAppsDS_OSB_PRDKS_DOMAIN, eis/wls/Topic, eis/tibjms/Queue, eis/tibjmsDirect/Topic, IntrastatDS_OSB_PRDKS_DOMAIN, MobileApps_AOS_COSDS_OSB_PRDKS_DOMAIN, MobileApps_CIA_DS2_OSB_PRDKS_DOMAIN, EVEREST_WEDB_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1, Everest_OSB_PRDKS_DOMAIN},NonXAResources={})],CoordinatorURL=SOA_MS2+soaprd-vip-soa-ms2.cos.is.keysight.com:8002+SOA_PRDKS_DOMAIN+t3+): javax.transaction.SystemException: Lost connection to server while commit was in progress, ignoring because initiating server is not coordinating server. Remote Exception received=weblogic.rjvm.PeerGoneException: ; nested exception is:
            java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
            java.io.InvalidClassException: oracle.jdbc.xa.OracleXAException; local class incompatible: stream classdesc serialVersionUID = -2542408691177300269, local class serialVersionUID = -4551795881821760665
            at weblogic.transaction.internal.TransactionImpl.commit(TransactionImpl.java:376)
            at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:237)
            at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:224)
            at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:552)
            at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:423)
            at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:325)
            at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
            at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
            at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
            at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
            at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Hi,
    Have you tried Cancelling the release before adding the version?
    Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
    Please let me know if it worked!
    Vijay

  • Doubt in fbl1n transaction

    hi i have a doubt....
    in fbl1n transaction, there are open items and cleared items.
    in it the cleared items  for certain document types such as invoice etc is not present in the open item table (bsik)
    however the cleared items for document types such as general  voucher its present in the open items table (bsik)
    is this possible as all cleared item entries shld b present in the open item table with an indicator set for cleared or not...
    plz exlain!

    Hi
    There are 2 tables(open and Closed Items)  in FI for Account Payables and Account Receivables and GL accounts
    1.Account payables: BSIK is Open Items and BSAK is Closed items
    2.Account Receivables; BSID and BSAD for OPEN and closed items
    3/GL accounts :  BSIS and BSAS  for Open and Closed Items
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Follow up transaction in CRM

    Hi All,
    I want to create an Order in CRM with reference to the Standard Order (which is created in ECC and replicated from ECC to CRM).
    When I open the Transaction (which is created in ECC and replicated from ECC to CRM).
    in CRM and clikc on follow up I am not able to create the follow up transaction.
    The follow up transaction is in display mode.
    Can anybody give me inputs in this regard? where is wrong
    Will award the points for the helpful answer.
    Regards,
    -Rahul.

    Hi Shalini,
    The document is replicated from ECC to CRM without any errors.
    For this document I just want to create follow up transaction in CRM.(I dont want to change the document in CRM)
    The follow up transaction is in display mode. this is my problem.
    Hi Rekha:
    I have done following setting in CRM to create follow up transaction in CRM for the document which is replicated from ECC to CRM.
    1)     Defined the Copying Control for Transaction type
    2)     Defined Copying Control for Item categories
    3)     Defined Item category determination when copying
    Thanks in advance,
    Regards,
    -Rahul.

  • Follow-up Business Transactions

    Hi Experts,
    I have a problem with follow-up transactions. I created two transactions, a Quotation and a Standard Order.
    Then I created follow-up for these transactions in the copying control, ZAG --> ZTA. Now, when I create a new Quotation in the Web Client UI and I open the drop down list "create follow-up" I just can see many diferent activities like Contact, Task, incoming e-mail, etc. but no Business Transaction.
    How can I display the new created Business Transaction ZTA (Standard Order) in the drop-down list?
    Hope sb can help me.
    Thanks.
    Sebastian

    Hello Sudeep De,
    Thanks for your reply but thats not the problem.
    Also in the standard I have the same problem. The standard also defines follow-up transaction for AG (Quotation), AG --> TA (Standard Order) in the copying control. When I log in whith the role salespro and I create a new Quotation, save this Quotation and try to create a new Standtard order with the drop-down list "create follow-up", I just can see activites but no Business Transactions. Why can I just see activities (Task, ...) and no Business Transaktions? All these activities I can see are not defined in the copying control.
    Can you help me?.
    PS: I can find my Business Transaction in the Web Client UI. I just can not find the Transaction in the "create follow-up" List as a follow-up transaction
    Edited by: Sebastian Wilhelm on Oct 1, 2008 11:48 AM

Maybe you are looking for

  • Problem connecting through with ODBC driver

    I have a virtual machine (Win XP SP3) running Oracle 11.1.0.7.0. The name of the machine is UK010862.uk.int.**********.com. sqlnet.ora: SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= ( TNSNAMES, EZCONNECT) tsnames.ora: ORCL = (DESCRIPTIO

  • Suppress Welcome Screen with GPO

    I can suppress Welcome screen on all Office 2010 products, EXCEPT outlook 2010 client! I enabled 'Suppress recommended settings dialog' and 'Disabled Opt-in Wizard on first run' under Microsoft Office 2010 section in User Configuration However, when

  • ICal server on external drive

    I have one computer (iMac) running Leopard. My wife and I have separate accounts on the computer. We both have hectic calendars. I was trying to see if it is possible to run one calendar off of my external drive so I don't have to subscribe to .mac o

  • Connecting to win xp pro from macbook

    i have talked to apple care via phone and the geniuses at the local apple store and am hoping someone on the boards can help. i have a new macbook and a winxp pro machine. i can connect to the mac folders in my network places on the windows xp machin

  • Trigger at logon

    Dear Experts, I create a user JONES with a given pass. I create in SYSTEM schema a TRIGGER: CREATE OR REPLACE TRIGGER JONES_trg AFTER logon ON JONES.SCHEMA BEGIN EXECUTE IMMEDIATE 'alter session set current_schema = PRODUCTION'; END JONES_trg; So whe