Porting open source application to SAP WAS

Hi,
  I'm porting jZForum ( http://www.jzforum.org ) to integrate it with SAP WAS and SAP Dictionary instead of internally used
HypersonicSQL database. I mainly changed obtaining connection to the database directly through JDBC:
jdbc:hsqldb:hsql://localhost:1476
into connection obtained through JNDI with Spring Framework (more precisely through org.springframework.jndi.JndiObjectFactoryBean class) :
jdbc/MY_DATABASE
with connection pooling parameters:
initial connections: 1
maximum connections: 50
maximum time to wait for connection: 120
expiration: yes
connection lifetime: 600
cleanup thread: 300
Unfortunately ported jzForum seems to "hang on". I see in Log Viewer (Visual Administrator) log that it is quering database with a lot of SELECTs,
I assume that it is indexer which on startup is indexing all objects from the forum to speed up searching this objects in the future.
After about 2-3 minutes hanging on, application shows generated page, but every subsequent request to
the server cause hanging on in the same way.
I assume that it might be the case that application is obtaining through JNDI connection to the database, but is
not releasing it. I have examined entire jzForum code, and closed all unnecesary Connection in final Java statements,
but it unfortunately didn't help.
Original jzForum (not ported to SAP Dictionary) works on SAP WAS just perfectly.
Have someone else experience with porting open source application from some database (eg. HSQL) to SAP Dictionary ?
Maybe it is a problem with Spring Framework implementation ? Maybe it is a problem with wrongly configured connection pool ?
I have no idea at the moment. Every help will be appreciated.
Kind regards,
  Marcin Zduniak

Hi Marcin,
from what you are describing, the port to JNDI obtained connections and your "research" in visual admin uncovered some issues with the original code ( not closing open connection ).
My attempt to explain your difficulties:
1. Working with hsqldb in direct mode, where hsqldb connection are obtained by driver.getConnection(), works well, becuse GC "reclaims" unused but not closed
connections. Things seems to work out this way.
2. Getting connections through JNDI involves a datasource with its associated db pool. Not closed connections are then "trapped" in the pool as long as is specified by the "connection lifetime" DS parameter. Things get worse by the time, becuse the application leaks constantly connections.
Remedy for the problems described in 2:
- middle term: fix the application: here spring might be useful, consider using its JDBC support classes!
- short term: set the connection lifetime to a small value to let pool reclaim the unclosed connections
Hope it helps a bit,
Gregor

Similar Messages

  • Porting J2EE Applications to SAP WAS

    Helloo,
    Can anyone help me.
    If u have informations about porting of J2EE Applications into SAP WAS , then plz help me.
    I need certain J2EE Applications which are developed under J2EE 1.2 or lower than 1.3 (EAR files for conversion using convert tool).
    Please help me with suficient help including links for downloading EAR files(J2EE 1.2 ) with help for porting.
    I want to port one J2EE Application which is not developed under SAP WAS Netweaver (means not  even under 6.2), completely out of SAP WAS environment.
    How can i port that Application into SAP WAS?
    What are the prerequisites for this?(I Have Netweaver Studio).
    If any documents with helps available then help me with that links also..
                   With Regards
                    Kishor

    Hi Kishor,
    see guide to deploy pure-j2ee app to WAS 640?
    Hope it helps
    Detlev
    PS: Please be more responsive! If you ask something and people answer, it is not more than kind to reply if it was helpful or not, and then, where the problem stayed. This is friendly against the ones who help as well as against other users running into the same issue. And: One can very efficiently say "thanks" on SDN by rewarding points for helpful answers.
    This holds at least for the following threads opened by yours:
    Netweaver Studio and Portal Development  Application Creation (elp)
    Netweaver Studio(J2EE)  and Portal Applications (Help Me)
    Webdynpro Flights Project using JCO Connection
    Exceptions in Flights Webdynpro using JCO Connection

  • �Is Sun System Instant Messaging a Multiplatform Open Source Application?

    This Because I am searching a highly Compatible Open Source WEB Enable Client/Server Application or a robust Multiplaform Instant Messaging System for Academic Purposes.
    I searching to obtain a WEB Enable Instant Messaging Application Open Source in Java like MSN Messenger Client/Server for Academic Purposes?
    I find Jabber as an alternative Instant Messaging solution but the clients and servers Applications there aren't highly compatibles.
    I thank in advance for their valuable time. And for the attention and the collaboration lent me.

    I believe there are currently two open source J2EE 1.3 compliant appservers:
    JOnAs http://jonas.objectweb.org/
    JBoss http://www.jboss.org/
    Both have beta versions of their J2EE 1.4 offers. If what you are looking for is not actually open source but simply free as in beer, then Sun's appserver is a rather attractive option. It's already J2EE 1.4 certified because it is the J2EE 1.4 reference implementation. You can download it as part of the J2EE SDK from here http://java.sun.com/j2ee/1.4/download-sdk.html

  • X11 and open source applications issues

    I have a brand new iMac 20 w/ OS X 10.4.8/ Core Duo 2.16/ ATI X1600 w/ 256 mb vram/ 1 gb of system ram. I have been using open source systems for almost two years and would like to continue to use some of the applications which are provided for Macintosh. When attempting to install any of the X11 applications, I get a message saying that I need to have X11 installed in order to install and run the apps. I downloaded the Apple X11 1.0 installer because I did not see X11 on my system. When trying to install it, I got a message saying that it could not be installed because there is a more up to date version already installed.
    So, the installers for applications such as, Open office and Gimp Shop, do not see that I actually have X11 installed and they will not install because of it. I do not know enough about OS X to work through this issue.
    Any help will be greatly appreciated.
    Thanks,
    zeusx64

    I did not see another version of X11 but I did go into the installation of the optional items and did not see it listed. I am fairly well versed in using computers, so I am not a complete noob but I am fairly new to Mac itself.
    I have FreeBSD experience, which in itself, gives a bit of X11 experience.
    That said, I have already looked for needed packages to install, tried to install and as I said before, I recieved the message during the attempted install of X11, which said I already had a more up to date version installed.
    If I have by chance missed something along the way, feel free to provide a link to the needed package.
    I am open to learning all that I can and realize that we all are in a never ending process of that learning.
    Thanks for the replies and I hope we can figure out what I have not on my own.
    I will check my mail when I am at home after work.
    Thanks again.

  • Open Source Applications ? List them?

    Is it possible to submit your app to the AppStore as a GNU licensed
    open source app? It must be, because WordPress have done it. The GPL
    is included in their Xcode project file here:
    http://iphone.wordpress.org/
    But I am wondering how they did it?
    Did they need to do any special lobbying etc, to get it through?
    I previously thought you couldn't publish open source through AppStore.
    Are there any others?
    Let's make a list of open source iPhone apps in this thread!

    You couldn't release open source due to the old NDA that has since been lifted. "Barcodes" is an app i've seen recently say it was open source.

  • Extracting Service Ports (ITS) and Application Server (SAP)

    Hi,
    Can any one pls do let me know how i can extract the information of the port number of Service (AGate) "sapavw00" and ITS Manager "sapavwmm" , Without goijg to the Service file under root/windows/system32/drivers/etc.
    I want to extract these information from SAP system only using some T-code.
    how can i do that??  and if i know the name of the application server of system running on remote host, how can i get its IP address?? say for example name is "I90external"
    Abhishek

    Hi,
    pl be aware of the fact that SAP system is running on the Remote Machine. I have ITS Installes with a Instance name I62 on my mchine. i installed the Wgate part on my machine (i.e. dual host) not the Agate as SAP system is running on the remote host.
    Now I want to use IACOR Admin Tool. the service is already running and there are no entry in the connection of the IACOR Admin, so i want to create a new one.
    on pressing new button. i entered the ITS instance name I62 (which i prepared as Wgate part) and the Web server (hosting Wgate).
    my confusion is that what should i fill up in these values.................
    ITS (AGate)=
    R/3 Name=
    Group?
    Message Server=
    I know the Name of Application server i.e. I62production, System ID i.e. I62, System Number i.e. 09
    the question is from where i should extract the value of  R/3 Name??? and Message Server of the SAP system running on the Remote Host.
    Abhishek

  • Open source applications runnig on WLS

    Does anyone know or have statistics of any OS or GNU busniess type applications (sorry I know this not a good description) that run or are running WLS.
    I am participating in a building management system XiBMS application that runs on Jboss. I would consider altering the build process to make a version to run on WLS but would the developers contributing to the project be expected to shell out for licenses? If I remember correctly WLS comes with a limited developer license (limit on number of connections) but is there anything else I should be aware of?

    I don't really understand your first question, but you might want to look at Beehive (http://incubator.apache.org/beehive). It is an Apache project that runs on WebLogic (as well as other servers), although it is a framework (not sure if that qualifies as a "business type application")
    Yes. Development licenses are free (with the restrictions you are aware of). You can even download the BEA Platform for development purposes at http://www.freetodevelop.com
    You only have to pay for deployment licenses.

  • How to Download SAP HANA " R " Open Source software ???

    Hi SAP HANA Experts,
    I had read that it is the open source software from SAP AG.....
    I want to download the SAP HANA " R " Software, Can anyone of you please provide me the link to download it.

    Hello Sekhar,
    As mentioned in SAP HANA R Integration Guide, To compile R, download the R (version 2.15) source package from the R Project for Statistical Computing website.
    R: The R Project for Statistical Computing
    Regards,
    Ning Tong

  • Open Source AIR App Wanted

    I'm not sure if this is the right forum but I am looking for
    AIR developers who might be interested in creating an open source
    application based on the Tweetworks API. Call it Tweetworks
    desktop. I think it would be a great project for the AIR developer
    community.
    Here is a link to the API:
    http://www.tweetworks.com/pages/api
    The API key for the project is:
    8d1f4bc7a28c72495102ee23aa0adb912c166e0c

    Hi I have added the following to my application.xml file
    <x>0</x>
    <y>0</y>
    The application now open is the top left hand corner of the screen but I would like it to open to the top right hand side of the screen.
    I also need to make the application sit on top of other windows
    How do I do this?

  • Error in Accessign mySAP ERP from SAP WAS J2ee Engine

    Hi all,
    I have installed some applications on SAP WAS Java System SP17. When i am trying to access the mySAP ERP system from that Application, it is giving the following error
    >(103) RFC_ERROR_LOGON_FAILURE: System received an expired SSO ticket
    My ERP and WAS are on different Windows Domains. I have SSO and  done the trust configurations and imported the Certificate on to mySAP ERP. I also increased the Lifetime of the SAP Logon ticket, but that also didnt work. In one of the documents i found that both the systems need to be in the same OS time.
    1. How can i bring my ERP server and WAS on to same OS time?
    (net time/set   does not work since these machines are in different domains)
    Or is there some other solution to this problem,Please help me
    regards
    deepu

    Hi Deepu,
    as long as the timezones are maintained correctly, the time DISPLAYED may be different, again it is GMT, which is required to be in sync. Looking at IST, do you mean Indian, Israelien or Irelend stadnard time ? (see <a href="http://www.timegenie.com/timezones.php">a list of timezones</a> for details). In any case, 4 hours seams odd to me, should be either
    India: 4:30 hour
    Ireland: 1 hour
    Israel: 1 hour
    can you please make sure, your systems are synced to GMT somehow, for instance using timeservices ?
    From your name, I would guess you might sit in India, in which case at least one of your system is misconfigured (timewise) if they are 4 hours away.
    Countries today 4 hours away from CET would either be
    <a href="http://www.worldtimezone.com/utc/utc+0500.html">russia, pakistan and some more</a> or <a href="http://www.worldtimezone.com/utc/utc-0300.html">some countries in south america</a> (this changes over time
    regards,
    Patrick

  • Proxy authentication required when connecting to internet from SAP WAS

    Hi,
    I have deployed a J2EE application in SAP WAS 7.0 and this aplication wants to access an application from internet.
    I have set the proxy server details in Visual Admin -> Web Service Container -> setting.
    The server is installed locally in my PC.
    I am able to run the same java application in my command prompt wit the same proxy details and it is able to access the 3rd party application , but when I am trying to access through web application through SAP WAS I am getting 407 Proxy authentication required.
    Thanks in advance.
    Regards,
    Hari

    Hi,
    it seems like your Proxy requires authentication (e.g. Basic authentication)
    I am able to run the same java application in my command prompt wit the same proxy details and it is able to access the 3rd party application
    Are you providing any credentials here in order to access the internet via Proxy?
    What kind of Proxy are you using
    Cheers

  • Timeout Service in SAP WAS 6.40

    Howdy,
    I am currently in the process of migrating our enterprise application from Jboss 3.2.6 to SAP WAS 6.40.
    In Jboss we have a standard Timer Service and our application class registers as a Listener to the Timer Service listening for notifications at regular intervals and I am trying to implement a similar mechanism in SAP WAS.
    Came across a few options
    1.To implement the JMX standard Timer mbean as a service and deploy it into SAP WAS so that it is deployed and automatically starteed and then to write a notification listener to this service - Now came across a post that suggested that this is not possible in 6.40 since deployment of custom services is not supported - not sure if it is still possible though
    2. Second option is to use the Timeout service in SAP WAS itself but having huge problem in implemnting the listener to this service. First of all i had a problem locating the jar that contained the com.sap.engine.service.timer package, after having doen that <b>i now face the hurdle of finding the file containing the com.sap.engine.frame.container.event package.</b>
    Documentation certainly ain't very useful.
    Any help from anyone who has attempted to do a similar thing is much appreciated.
    Thanks
    Dushy

    Fantastic, thanks Nathan. Will try that, i m trying to deploy my mbean from a servlet at the moment as that seems to be a preferaable option among the group here.
    Having problems getting the servlet load at startup. My understanding is that the servlet should execute the code in the init() method as sooon as i deploy the application to SAP WAS.
    My Web.xml looks 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">
    <web-app>
         <display-name>Rent-a-Car</display-name>
         <description>WEB APP description</description>
         <servlet>
              <servlet-name>quickCarRentalView.jsp</servlet-name>
              <jsp-file>/quickCarRentalView.jsp</jsp-file>
         </servlet>
         <servlet>
              <servlet-name>QuickReservationServlet</servlet-name>
              <servlet-class>com.sap.examples.quickcarrental.servlet.QuickReservationServlet</servlet-class>
         </servlet>
         <servlet>
              <servlet-name>Test</servlet-name>
              <servlet-class>com.sap.examples.quickcarrental.servlet.Test</servlet-class>
              <load-on-startup>0</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>quickCarRentalView.jsp</servlet-name>
              <url-pattern>/view</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>QuickReservationServlet</servlet-name>
              <url-pattern>/</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>Test</servlet-name>
              <url-pattern>/Test</url-pattern>
         </servlet-mapping>
         <ejb-local-ref>
              <ejb-ref-name>ejb/QuickOrderProcessorBean</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <local-home>com.yambay.quickcarrental.QuickOrderProcessorLocalHome</local-home>
              <local>com.yambay.quickcarrental.QuickOrderProcessorLocal</local>
              <ejb-link>QuickCarRentalEjb.jar#QuickOrderProcessorBean</ejb-link>
         </ejb-local-ref>
    </web-app>
    Any suggestions??
    Dushy

  • Viewing open source code

    I would like to know a website or book that I can actually see the source code that has been developed for the Java open source code. This would help me tremendously in understanding how everything is put together. Does anyone know of this source?

    That would vary from application to application. You talk as if there is one "Java Open Source" application out there that we could point you to the source of. Of course there are many many many different applications out there, and there isn't one answer for you.

  • Combine supported files is not automatically opening and closing source applications?

    On my Vista 64 machine, suddenly, the "Combine supported files in Acrobat" has begun malfunctioning. Instead of automatically opening and closing the source application (such as MS Word), Acrobat opens the application and then asks to save a new PDF file for each source file and stalls out the conversion. This problem is not happening on my Win XP machine. I have used the 'Repair Acrobat Installation' function but the problem is not corrected.
    Thanks for any suggestions.

    Just to close out this thread, the bug was fixed with the latest version of Acrobat Pro Extended (9.3.3).

  • Can I distribute the open source SWF compiler with my application?

    I'm unclear reading the documentation if there is a difference between Adobe's official Flex SDK, and the open source version?
    Can I distribute the open source SWF compiler with my application?
    I have a flash application that users can change the fonts being displayed, if they supply the fonts in a compiled SWF. I found I can let the user select a font from their computer system, and using the mxmlc command I can easily generate a SWF with the font, which can be loaded by my application so the font will be part of the run time application when played on systems without that font already in the System fonts.
    I was wondering if I could distribute the open source SDK so that I could compile these font SWFs for the user so they would not have to get involved in complicated Flash development. The audience is non Flash audience.
    I tried using SWFMill but the fonts don't seem to work as they do with the mxmlc compile.
    Thank you,
    Scott Kerr

    Moreover check also the compatibility of your open source license with MPL
    Regards, Giuseppe

Maybe you are looking for

  • Mail Setup - Gmail - Show All - Local Folders - IMAP - Yosemite - Am I set up properly?

    Hi All I recently moved to Yosemite on a recently acquired rMBP - and after a little fun setting up Mail I seem to be settled in. However whilst experiencing some Mail / Gmail issues (now sorted) I read how other people are setup - and I am now wonde

  • Preselct a passed parameter in list items

    Hello there, here my problem: I have table emp, dept I have a report joining both and telling to me: name deptname smith new york Following the edit link i can get a text field: dept new york or a lov with all deptlocations without preselection how c

  • Cannot transfer TV show purchases at all

    In reading the many issues on Apple TV purchases, it's supposed to work like this (correct me if I'm wrong please); • Purchase a TV show or movie via Apple TV • Apple TV syncs with iTunes and copies to the iTunes library on the computer • iTunes now

  • Photoshop Buttons for Encore " How to "

    Hello Folks. I have seen some examples on how to do / create backgrounds with Photoshop CS3 for my Encore CS3, but How to I import a Picture and use it on Encore CS3 as a button. I have NOT figured out how to link the marks on the video to the button

  • Applet with JFC Components

    Hello i have created an applet which contain Swing Components. But when i run the applet in browser it gives the mesaage class not found, plz tell me do i need to do some special setting for enaling such applets Regards