Redundancy at Java application level

Dear All,
Just wanted to know that how can we implement redundancy at Java application level in case of one database gets failed?
Please let me know for the same
Waiting for the reply
Regards
Jignesh

If you have a read-only database (you only do selects from it), simply retry the operation in another database if the first one fails. You could do a minimal select first to check if the db responds. E.g. in Oracle the idiom is "select sysdate from dual", in Postgres you can do "select 1", etc. But the server could fail between the test select and the real select, so you need to retry anyway, so the test select is redundant.
Perhaps retry, sleep a while, retry again, sleep, and after a few rounds give up. This gets around short network breaks, but doesn't busy loop forever if the program has a bug and the SQL statement is broken.
If you have a database where you also do inserts and updates, a backup database becomes ...problematic. If one server fails, and you start updating the other, you now have two conflicting data sets. Perhaps this could work if you have some kind of an append-only database - you add rows, like some kind of event logging; then you can merge the two data sets later. This gets somewhat specialized.
In the general case redundancy needs to be implemented as clustering at the db server level, not at the application level.

Similar Messages

  • Can we control the top level navigation in portal from a java application

    Hello,
    I am having a scenario where User logged in to portal and assigned with 2 roles (HOME , ISA(Java application)). When user opened a form in ISA (Java application) and tried to enter the data in form and moved to another tab (e.g. HOME) in top level navigation.
    When user come back to ISA (Java application) TAB , we show the page where he left earlier. I would like to know if user click any other TAB in top level navigation (Role assigned to him) while working on a page in ISA(Java application) is there any way we can catch that event before he leaves from ISA (Java application JSP page) to other TAB?
    How can we control the top level navigation events in the portal from a java application .Since Top level navigation is seperate par file.
    Thanks,
    RN

    Dear Rajesh,
    Top Level and detailed navigation values comes with iteration in the respective par file.
    Please check the par file and based on the value (i.e tab name) selected, you can write your code.
    Best Regards
    Arun Jaiswal

  • JCO-Java application unable to open a Frontend GUI session

    Hello,
    <P>
    I am having a problem opening a GUI session on a client PC through the JCo java call. It works on some PC's when I am logged in, but not on my PC. But other persons who login on my PC do not have a problem with the application opening a GUI session. I am at a loss. I have had a basis consultant look into this and he could not find a reason for the problem. I have submitted a customer message to SAP and am being told to file this issue in the forum, so here it is. If this is the wrong forum, please let me know which forum would be the correct one.
    </P>
    <P>
    Problem:</br>
    For test purposes, I have created a Java application using the SAP standalone SAPJCO3 vers. 3.0.1. The R/3 backend is 4.6C. The SAPGui version is 7.1 patch level 13 installed on a Windows XP Pro client PC. The application is supposed to start a Frontend GUI session as part of the initial process. This is not working on all PCu2019s for all users. The following are scenarios for two different users on two different PCu2019s, logged on and executing the Java application. The parameters for the Java application are: User, Password, and System Id in this order on the command line after the Java applicationu2019s name. The system Id in our example is PRP in uppercase. This problem happens while connecting to any of our R/3 instances.
    </P>
    <P>
    Testing of the issue:</br>
    Scenario 1:</br>
    User gmcghie: This user is the primary user of his/her PC. This PC has not had its registry entries cleaned up for a long time. Starting the Java application from the Windows command line with the supplied parameters, the program is executed and makes the initial connection with the R/3 backend. When the R/3 system sends back a request to start the GUI session, the SAP Logon is executed and opens on the PC. Nothing seems to happen after this.
    <P>
    Here is the JCO exception from the log file:
    JCoException eDest: (136)com.sap.conn.jco.JCoException: (136) JCO_ERROR_ILLEGAL_STATE: Launching SAP GUI failed, though it was requested (error message: Communication with SAPGUI timed out)
    </P>
    <P>
    When you right click on the SAP Logon icon that is in the Windows System Tray on the PC you see an entry that shows a session for Client 000. This is the wrong client being called by the application. The client being called is 600 in this particular scenario.
    </P>
    <P>
    Here is the connection string sent to backend for scenario 1:</br>
    TYPE=A DEST=PRP USER="gmcghie" PASSWD=********** CLIENT=600 LANG=E ASHOST=10.212.120.53 SYSNR=00 TRACE=1 PCS=1 USE_SAPGUI=2
    </P>
    <P>
    Scenario 2:</br>
    User mshin: This user is the primary user of his/her PC. This PC has had the OS re-installed on it within the last few years, hence the registry is likely more clean. Starting the Java application from the Windows command line with the supplied parameters, the program is executed and makes the initial connection with the R/3 backend. When the R/3 system sends back a request to start the GUI session, the SAP Logon is executed and opens on the PC. The connection is made to Client 600 and the process ends. The screens that appear above for the other scenario are not present when the connection is successful. The log file is not included for this as it was empty because it succeeded.
    </P>
    <P>
    Here is the connection string sent to backend for scenario 2:</br>
    TYPE=A DEST=PRP USER="mshin" PASSWD=********** CLIENT=600 LANG=E ASHOST=10.212.120.53 SYSNR=00 TRACE=1 PCS=1 USE_SAPGUI=2
    </P>
    I have the same issue on my PC as the first scenario.
    <P>The steps I took to try to get this to work are as follows.</br>
    1. Un-installed and re-installed the SAPGui, several times with no change.</br>
    2. Compared the registry settings of SAPGui between working and non-working PCu2019s. These were essentially the same.</br>
    3. Compared the system variables between working and non-working PCu2019s. These were essentially the same.</P>
    It should also be noted that if user u2018gmcghieu2019 from scenario #1 logs into another PC, the program executes correctly (for most other PCs but not all). Finally, if user u2018mshinu2019 from scenario #2 (certain other users as well) logs into Windows on the primary PC for user u2018gmcghieu2019 from scenario #1, and user u2018gmcghieu2019 is used to connect to SAP using the Java program, the program executes correctly. It seems that this would indicate some problem with the useru2019s Windows account on certain PCs.</P>
    Why is the connection information being dropped? How is the process of opening the SAPGui on the frontend done?</P>
    Any help with this issue is greatly appreciated.</P>
    Thanks,</br>
    Mark Shirkey

    Created Customer Message and got answer. There were settings in Windows Registry for starting the SAP Logon Launch Pad which had to have a value of 1.

  • Testing thru NWDS: Error replaying a recorded Web dynpro java application

    Hello Experts,
    I am trying to test a web dynpro for java application using the record and replay facility provided in NWDS. I have gone through the documentation provided under the head "Testing Web Dynpro Applications in the Developer Studio" at help.sap.com
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/c1/c6213e225f9a0be10000000a114084/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/c1/c6213e225f9a0be10000000a114084/frameset.htm</a>
    The testing seems pretty straight forward..
    I am able to record a web dynpro application and it generates a test script file with extension .testscript but when i replay the generated test script it gives me the following error:
    <b>-->Contacting XML Client on Server to get initial XML document.
    ERROR: Contacted the Xml client on the J2EE Server, but did not receive an Xml document from it.
    ******************************</b>
    or sometimes this error:
    <b>-->Contacting XML Client on Server to get initial XML document.
    ERROR: Cannot contact the XML Client on the J2EE Server.
    ******************************</b>
    Seems like some configuration needs to be done at the J2EE server level enabling some XML service etc.
    I will be highly obliged if someone can guide me how to remove this error and replay the recorded application..
    Regards
    Sundeep

    Hi all,
    if anyone has any knowledge of this subject plz reply....
    Regards
    Sundeep

  • Patching/updating Java Applications in the WebLogic environment.

    Hi All,
    I'd like to get some feedback on our process and hear if there is some better/different
    ideas out there on how to handle patching/upgrading java applications in the WebLogic
    environment.
    Here is our process:
    1) We build using ANT our Enterprise application.
    2) We deploy our application using InstallAnywhere to drop the structure into
    an environment.
    If a patch or update is needed, we again build the Patch/Update using ANT, generating
    checksums for each file in every ear/war/jar file as well as any supporting files
    (.xml, .properties, .sh, etc.) used in the production structure. We then compare
    checksums against what is in production and come up with PATCH_(ear/war/jar) files
    with only the changed classes and duplicate production structure with the changed
    supporting files.
    Using ANT scripts and InstallAnywhere, we backup the files to be replaced in production,
    overwrite supporting files, extract packages (ear/war/jar), overwrite classes
    with new ones, re-package the ear/war/jar files into production environment and
    restart the server.
    We patch at a class level due to the configuration settings internal to the package
    files (ear/war/jar) that we don't want the customer to have to re-configure everytime
    we do a partial release.
    Right now, the whole process is automated except the creation of the Patch ANT
    script that extracts, overwrites updated classes, updates manifests, then re-packages.
    Any ideas on improvements or complete re-engineering of our process to help so
    we can get closer to 100% automation?
    Thanks,
    John

    The chances of two applications running at exactly the same time are miniscule. If they each have a connection to the database, and are both trying to modify the same table, then chances are one will be slightly after the other its changes would be committed last. In the case where one might delete a row just before another tries to access that row, you're going to have some sort of problem. However, those circumstances are pretty rare, and even so, some small amount of exception handling can deal with them gracefully.

  • BEA / Wily:  Financial Webinar - Achieving Availability, Performance and Control of Java Applications in Financial Services

    Event Date: October 1, 2002 at 11:00 AM Pacific (US), 02:00 PM Eastern (US)
    To register: http://regsvc.placeware.com/?wily-bea1001
    Title: Achieving Availability, Performance and Control of Java Applications
    in Financial Services
    Abstract:
    In today's competitive environment, financial institutions must focus on
    three key business goals:
    a.. Creating a customer-centric enterprise to maximize value to customers
    and increase share of wallet
    b.. Improving transactional efficiency for rapid delivery of the right
    products, services and information to customers and to employees
    c.. Accelerating the decision making process to mitigate risk and improve
    returns.
    BEA and Wily Technology have helped a number of financial services firms
    meet these objectives by delivering high-performance business solutions that
    meet rigorous demands for performance, reliability and scalability.
    On October 1, 2002, Wily Technology and BEA will present a joint Web seminar
    titled "Achieving Availability, Performance and Control of Java Applications
    in Financial Services" with Eric Gudgion, Principal System Architect,
    Technical Solutions Group at BEA and Chris Farrell, Director of Technical
    Marketing at Wily. This Webinar will showcase the many advantages that the
    WebLogic® Enterprise PlatformT and Wily's Introscope® offer financial
    services firms.
    Attendees will learn how WebLogic Server, BEA's unified, simplified and
    extensible solution, provides a robust platform for the development and
    deployment of enterprise Java applications. Some examples of what financial
    institutions can achieve with BEA include Multi-channel Services Delivery,
    Straight-Through Processing, Wealth Management and Cash Management.
    Wily Technology will highlight Introscope's ability to manage financial
    services Java applications by pinpointing component-level performance issues
    in real-time, whether in the application, application server or
    Java-connected back-end systems. Wily's suite of Java application management
    solutions offers a comprehensive platform for achieving 24x7 application
    availability, enhanced performance and better control of IT resources.

    First of all you should check out which products are supported on 64bit :- http://www.oracle.com/technology/products/bi/hyperion-supported-platforms.html
    If you are planning on using windows 64bit EAS then you will have to manually deploy the web application, it cannot be automatically deployed.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to speed up a Java application?

    As I learn more about Java, I realize that one of the main drawbacks compared to other languages is its speed. I have however heard that once the program is compiled once, it is "nearly as fast as C++" as long as it remains in memory.
    So the question to you all is, are there ways get an Java application compiled in memory and ensure that it remains in memory, and therefore get it as fast or faster than C++ or other lower level languages?
    Thanks,
    Nick

    Three items:
    This online book on performance: http://java.sun.com/docs/books/performance/
    Look into the -server option of the jvm "java -server"
    Check out the extensive performance documentation here at the Sun site - click on "Documetation" at the left
    This is only a small start into what's available on the subject, some searching using the site's seach engine (at the upper right corner) and Google will produce many more items of value.

  • Caused By: psft.pt8.joa.JOAException: TPESVCFAIL - application level servic

    Hi xperts,
    My Env
    oim11gR2
    PSUM Connector 11.1.1.5
    I am trying to provision to the PSGl and getting the below error. Anyone with any suggestions please?
    Running CREATEUSER
    Target Class = oracle.iam.connectors.icfcommon.prov.ICProvisioningManager
    <Jan 10, 2013 1:01:31 PM MYT> <Warning> <ORG.IDENTITYCONNECTORS.PEOPLESOFT.COMPINTFC.PEOPLESOFTCOMPINTFCSETATTRIBUTESHELPER> <BEA-000000> <org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcSetAttributesHelper : validateRequiredAttributes : Required attribute IDTypes not present in the set of attributes from OIM>
    <Jan 10, 2013 1:01:31 PM MYT> <Warning> <ORG.IDENTITYCONNECTORS.PEOPLESOFT.COMPINTFC.PEOPLESOFTCOMPINTFCSETATTRIBUTESHELPER> <BEA-000000> <org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcSetAttributesHelper : getDefaultvalue : Adding the default value NON for IDType>
    <Jan 10, 2013 1:01:31 PM MYT> <Warning> <ORG.IDENTITYCONNECTORS.PEOPLESOFT.COMPINTFC.PEOPLESOFTCOMPINTFCSETATTRIBUTESHELPER> <BEA-000000> <org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcSetAttributesHelper : validateRequiredAttributes : Required attribute LanguageCode not present in the set of attributes from OIM>
    <Jan 10, 2013 1:01:31 PM MYT> <Warning> <ORG.IDENTITYCONNECTORS.PEOPLESOFT.COMPINTFC.PEOPLESOFTCOMPINTFCSETATTRIBUTESHELPER> <BEA-000000> <org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcSetAttributesHelper : getDefaultvalue : Adding the default value ENG for LanguageCode>
    <Jan 10, 2013 1:01:32 PM MYT> <Error> <ORG.IDENTITYCONNECTORS.PEOPLESOFT.COMPINTFC.PEOPLESOFTCOMPINTFCCREATEOP> <BEA-000000> <org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcCreateOp : create : Error Occured cannot create user >
    <Jan 10, 2013 1:01:32 PM MYT> <Error> <ORACLE.IAM.CONNECTORS.ICFCOMMON.PROV.ICPROVISIONINGMANAGER> <BEA-000000> <oracle.iam.connectors.icfcommon.prov.ICProvisioningManager : createObject : Error while creating user
    org.identityconnectors.framework.common.exceptions.ConnectorException: Cannot create user
         at org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcCreateOp.create(PeoplesoftCompIntfcCreateOp.java:120)
         at org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcConnector.create(PeopleSoftCompIntfcConnector.java:126)
         at org.identityconnectors.framework.impl.api.local.operations.CreateImpl.create(CreateImpl.java:80)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:93)
         at $Proxy994.create(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.identityconnectors.framework.impl.api.local.operations.ThreadClassLoaderManagerProxy.invoke(ThreadClassLoaderManagerProxy.java:107)
         at $Proxy994.create(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at $Proxy246.execute(Unknown Source)
         at oracle.iam.platform.kernel.impl.OrchProcessData.runActionEvents(OrchProcessData.java:1115)
         at oracle.iam.platform.kernel.impl.OrchProcessData.access$500(OrchProcessData.jav
    a:84)
         at oracle.iam.platform.kernel.impl.OrchProcessData$8.processWithoutResult(OrchProcessData.java:719)
         at oracle.iam.platform.tx.OIMTransactionCallbackWithoutResult.process(OIMTransactionCallbackWithoutResult.java:9)
         at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:13)
         at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:6)
         at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
         at oracle.iam.platform.tx.OIMTransactionManager.execute(OIMTransactionManager.java:22)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: psft.pt8.joa.JOAException: TPESVCFAIL - application level service failure
    *     at psft.pt8.joa.CISvc.setProperties(CISvc.java:94)*
    *     at psft.pt8.joa.CI.flush(CI.java:367)*
    *     at psft.pt8.joa.CI.getProperty(CI.java:106)*
    *     at org.identityconnectors.peoplesoft.common.InterfaceWrapper.getProperty(InterfaceWrapper.java:69)*
    *     at org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcSetAttributesHelper.setComplexAttributeEmbeddedObj(PeoplesoftCompIntfcSetAttributesHelper.java:302)*
         at org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcSetAttributesHelper.setAttributes(PeoplesoftCompIntfcSetAttributesHelper.java:139)
         at org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcCreateOp.create(PeoplesoftCompIntfcCreateOp.java:111)
         at org.identityconnectors.peoplesoft.compintfc.PeopleSoftCompIntfcConnector.create(PeopleSoftCompIntfcConnector.java:126)
         at org.identityconnectors.framework.impl.api.local.operations.CreateImpl.create(CreateImpl.java:80)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:93)
         at $Proxy994.create(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.identityconnectors.framework.impl.api.local.operations.ThreadClassLoaderManagerProxy.invoke(ThreadClassLoaderManagerProxy.java:107)
         at $Proxy994.create(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.identityconnectors.framework.impl.api.DelegatingTimeoutProxy.invoke(DelegatingTimeoutProxy.java:107)
         at $Proxy994.create(Unknown Source)

    Does your Peoplesoft instance require you provide an employee id?  Or is it one that does not link back to the Person tables?  Looks like you aren't populating it, since it's sending NON, so chances are, you need to provide the employee id.
    -Kevin

  • User Role problems in Sun Java Application Server Platform Edition 8

    I am having two problems setting up user roles in Sun Java Application Server Platform Edition 8. At first, I thought that it was a problem with the higher level features that I was using, so I created a very simple example using the simplest authentication I can use, but the problem still occurs. I am using the file realm and configuring the users in the App Server Admin Console. I create 2 users in different roles. One user should have access, the other should not.
    1) The first problem is that both users can access the page
    2) The second problem is that the isUserInRole() method returns false for both users with the role that it should be authenticating against.
    Here is a sample of my code:
    Users Configured in Console:
    username password roles
    user1 ********** admin
    user2 ********** noaccess
    web.xml
         <security-role>
              <role-name>admin</role-name>
         </security-role>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>My Protected Area</web-resource-name>
                   <url-pattern>/*</url-pattern>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>admin</role-name>
              </auth-constraint>
              <user-data-constraint>
                   <transport-guarantee>NONE</transport-guarantee>
              </user-data-constraint>
         </security-constraint>
         <login-config>
              <auth-method>BASIC</auth-method>
              <realm-name>file</realm-name>
         </login-config>
         <servlet>
              <servlet-name>
                   TestServlet
              </servlet-name>
              <servlet-class>
                   mypackage.TestServlet
              </servlet-class>
              <security-role-ref>
                   <role-name>admin</role-name>
                   <role-link>admin</role-link>
              </security-role-ref>
         </servlet>
         <servlet-mapping>
              <servlet-name>
                   TestServlet
              </servlet-name>
              <url-pattern>
                   /TestServlet
              </url-pattern>
         </servlet-mapping>
    TestServlet.java:
              out.println("admin role: " + request.isUserInRole("admin") + "<BR/>");
    Thanks before hand for any responses.
    - Brian

    Hi Jeanfrancois,
    Your suggestion has lead me to find my problem. There were actually three problems.
    1) First, you suggestion to reorder my xml file did not cause any errors to occur. I got suspicious that my web.xml file was wrong. I looked at some sample web-xml files and found that I was missing the header as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    2) When I added this information, the deploy feature failed stating the my web.xml file was out of order. I fixed the ordering. It now deployed, but the security still wasn't working.
    3) I then added the sun-web.xml file. This file was missing before hand as I thought it was unnessary. However, this file added the essential mapping from a role to a group. After adding this, it now started to work.
    Thanks so much for you time and effort. You really did help me.
    - Brian Blank

  • Example-- Call RFC from external Java Application

    Update: I need code example to call RFC from External Java application. Can onybody help me?                                                      
    RGDS
    RP
    hi all.
    i want to create my own log for each interface.
    i saw this blog:
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    my doubt is how to catch the error that i see in SXI_MONITOR y put it in a Sub-Objetc.
    For example: in sxi_monitor i get the error for my interface NMUCustomer: "No receiver could not be found" or "Error Mapping Traformation".
    I created an Object called ZNMUCUSTOMER and a Sub-Objetc called ZERROR.
    what i must do to get the error I see in monitor and assign it to Sub-Object??
    Rgds.
    Message was edited by:
            Rodrigo Pertierra
    Message was edited by:
            Rodrigo Pertierra
    Message was edited by:
            Rodrigo Pertierra

    Hi,
    Oh, you are using ABAP mapping ......
    then use the following in ABAP mapping ..
    TRACE1,TRACE2,TRACE3.... for trace level 1,2,3......
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/866ce290-0201-0010-338f-b8c3553aaa0f
    Regards
    Chilla

  • Best book for designing and architecting a java application?

    Hi,
    Please recommend the best book(s) in the market or on line tutorials which would help me architect and design a java application using SWING.
    I have used most of the swing components in many small GUI apps I have developed [JTable, JTree, etc, etc ....] and do not need a beginners books [online tutorials at sun site are good for that]. A book tackling advance topics, which may not concentrate on coding but has very good cases to understand the design [both class level and usuablity] and architecture of the application.
    I need to develop an editor for a GUI based language + a code genertor + mapper application [which will run as a application and may use webstart to run from a browser.]
    THANKS !

    I like "Pure JFC Swing" it's got a well written example for each and every Swing component. When I was learning to use swing each component I came across I could easily look at the example for that component and incorporate it into code for my app. That combined with the Javadoc was all I've ever needed.

  • Internet Accesses Freeze Java Application

    I have been programming a Java application, which is actually an instant text messaging system, that obviously makes internet accesses.
    The thing is, I have got this JFrame, with JScrollPanes, JTextAreas for messaging, and whenever the user presses the magical 'send' button; till the reply comes, the window freezes; you know it turns into grey.
    The way I send the messages is just to call the method that makes the connections and writes the data.
    How should I modify my code that my application should not freeze while waiting response? Is there a way to decrease the priority of a method or something?
    Thanks in advance..

    To clarify a bit.
    When you press the button an event is generated and put into the
    event handling queue (which handles all awt/swing events such as redraws/resizes etc). The Queue is processed by the event processing
    thread which pulls the button pressed event from the queue, finds
    the associated eventHandlers and calls them. What this means is that
    any code inside your event handler is run in the Event handling thread
    which causes it to not be able to handle any more events until the
    code in your handler is finished. Therefore all refreshes/button presses
    /resizes etc. (everything to do with the GUI and some other bits too)
    stop responding until your handler returns. Creating network connections
    can take a fair bit of time which means your handler takes a fair amount
    of time which means that the GUI locks up for a fair amount of time.
    Right, that there is the reason your GUI stalls.
    now, as pkwooster said, the way around this is to create a seperate
    thread that handles your connections to the internet. At the simplest
    level this thread can be created inside your "button pressed" event handler
    . For more complex solutions you will need to find someway of notifying
    a running thread that you have more work for it.
    pkwooster also said that there is a lot of code in this forum on topics
    related to the task you are attempting. You might wish to take his
    advice and look for it.
    matfud

  • How to reduce CPU utilization time in Java Application

    Hi,
    I have created a Java Application. It is a 3-tier architecture. While running my Java application, the CPU utilization percentage shots up to 100 %. I feel that it will affect the system performance and it will hang up the system also.
    If any body know the solution to reduce the CPU utilization or links, please post it.
    Thanks in advance.
    Kennedy

    I know Java class file must be interpreted by VM. but
    Visual Basic is also a language to be interpreted. Why
    it run faster than Java? As Java running speed is
    concerned, it's unwise to apply to the
    enterprise-level application. Now I can't endure Java
    running speed. I wander to know whether it is
    associated with operating system or not.1. Java is nto interpreted in modern (since 1997 or earlier) JVM's - it is compiled into machine code as it is executed via a JIT or a Dynamic compiler (like HotSpot).
    2. VB (5 and later) is also not truely interpreted - in fact it uses the same excellent native code generator used by Visual C++.
    3. Java is principally used these days for enterprise server-based systems where it performs extremely well - or extremely poorly as does C++ in the hands of people who don't know how to use it.
    4. Different JVM's (and in some cases the same JVM hosted on different OS's) perform at different speeds - your mileage will vary. The OS has little influence on the computational speed of java but can highly influence its network, disk and graphics performance, as does hardware configuration (local console versus X terminal - Swing sucks on X Term).
    Chuck

  • How to invoke a java application in the middle of the process

    In the middle of one process, I want to invoke a java application. After the java application, the process will continue and select a path based on the result of the java application. Which activity can be used to invoke a java application in the middle of the process?
    Thanks

    BPM Changes:
    1. Under 'External Resources' create a new resource of type 'Server Configuration'. Specify the host port and path of your servlet here. This will be invoked from your process. Lets name this configuration as 'myExternalConf'.
    2. Create an interactive activity say 'InvokeMyApplication' in your process. The main task of this application should be external task. (Implementation Type = External)
    3. Create the prepareMethod method say 'prepareExternal'. Set the arguments for this method as output arguments. These arguments will be available to you in your external servlet.
    4. Create the commit method say 'commitExternal'. Set the arguments as input arguments. The external servlet will return these arguments back to the process.
    5. Check the 'Use configuration' checkbox for your main task (external task). Select 'myExternalConf' here.
    Servlet changes:
    When the user executes your 'InvokeMyApplication' activity, he will be taken to the external servlet of your external application. You will be passed the currentActivity, currentParticipant, instanceID and one more argument (which I dont remember :( ) as url parameters.
    1. In this servlet, open a PAPI/PAPI WS session for the participant passed to the servlet as url parameter
    2. Use the currentActivity ( passed in url parameter), to call prepare method on this activity. This will return you with the arguments defined in 'prepareExternal' method.
    3. Using these argumets, or otherwise, you can do whatever you want in this servlet. When done prepare the arguments to pass back to BPM.
    4. call papiService.activityCommit and return the arguments.
    5. Flow goes back to your BPM application
    Some code that might help:
    Servlet calling prerpare:
    ProcessServiceSession papisession = null;
    try{
    papisession = initializePapi();
    fuego.papi.Arguments args = fuego.papi.Arguments.create();
    args = papisession.activityPrepare(activity, instanceId, args);
    Map<String, Object> argsMap = args.getArguments();
    return argsMap;
    protected ProcessServiceSession initializePapi(){
    Properties configuration = new Properties();
    try {
    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("bpm.properties");
    if(inputStream == null)
    throw new IOException();
    configuration.load(inputStream);
    } catch (IOException ex) {
    log.log(Level.WARNING, "Could not load bpm.properties", ex);
    return null;
    Servlet calling commit:
    public void commitToALBPM(Map parameters){
    try{
    papisession = initializePapi();
    fuego.papi.Arguments args = fuego.papi.Arguments.create();
    Set s = parameters.keySet();
    Iterator propNames = s.iterator();
    while (propNames.hasNext()){
    String key = (String)propNames.next();
    String val = (String)parameters.get(key);
    args.putArgument(key, val);
    papisession.activityCommit(activity, instanceId, args);
    catch (OperationException e)
    HTH
    Satinder

  • Apache Tomcat goes down on starting Java application, Oracle error

    Hello all
    I am running a Java application on Apache Tomcat 5.5. I use Oracle 10g Express Edition as the back-end for my application. I deploy my application using theTomcat manager and it works fine.
    However, when I try to access the home page of the application, my Tomcat server goes down. The stdout logs of Apache Tomcat display the following message:
    Exception message: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: Cannot access NLS data files or invalid environment specified.
    What could the possible reasons be for this to happen? And how can I workaround or fix this?
    Thanks
    Swetha

    This looks like a problem that XE has with some recently altered locales, i.e. Russian. You can work around the problem by making sure that the Java locale (Locale.setDefault()) is supported by XE before the JDBC connect call. For example, use Locale.setDefault( Locale.US ). After connect, you may explicitly set session NLS parameters using ALTER SESSION. You can also restore the Java locale.
    -- Sergiusz

Maybe you are looking for

  • How to use NAS as a library.

    I have all my media on a NAS drive and want to access it from 2 PCs running windows 8. Up until now if I've been using one PC as my "MAIN" system. using it to add ne media. I'd then copy the library files across to my other PC and ergo a carbon copy

  • OIM: How to create a custom Resource with Form

    Hi - I'm integrating OIM and OAM and am trying to create a process through which users can request access to different Applications protected by OAM. Some of these apps require capture additional information from the user. I was thinking I would crea

  • Is there a usb 3.0 cable for iPods?

    I was wondering if there are USB 3.0 cables for iPods. Any feedback would be great

  • Solid state hard drive

    i am trying to replace a failing hard drive in my HP G72 notebook.  I am trying to replace the 320 Gig hard drive with a 250 Gig solid state.  i have run the restore disks and everything appears to be ok but when it restarts i still get a non boot de

  • Convert multi-page pdf to multi-page jpg files?

    Hi, My boss has asked me to convert a large number of multiple-page pdfs into multiple-page jpgs. I have been able to convert the pdfs to jpgs in photo shop using image processor, but the processor only captures the first page of the multiple page do