How to retain connection pool resource while exporting the application war

hello,
lately i have figured out how to use connection pooling. now i have another issue.
i have to export the application war file to a remote server for deployment. i cant configure the server.xml file there due to restrictions. Now is there any way that i can retain the connection pooling with all JNDI resources while exporting the war file. what all things would i have to do. i am using tomcat 4.1 and the remote server too have the same appliaction server running.
is this possible?
thanks in advance

Hi,
you might have the problem in creating WAR files.
lease check that first.
thanks,
nvseenuNo, the problem is that you shouldn't be modifying the server.xml
The proper, portable way to do it is to create a context.xml file and put it in the META-INF directory of your WAR file. This contains your Resource definition and JDBC connection parameters. Everything's portable that way.
I know this works on Tomcat 5.x.
It can also work with Tomcat 4.1.x, but the way I've done it is to put the context.xml into a file whose name matches my WAR file (e.g, foo.war and foo.xml), placing both in the /webapps directory. Tomcat 4.1.x picks it up that way.
It would be worth an experiment to see if Tomcat 4.1.x picks up the context from /META-INF, because that way your WAR file is 100% portable.
This is precisely the reason why I advise people not to edit the server.xml. You don't always have the option to do so.
%

Similar Messages

  • How to use connection pool of datasource to make applications run faster?

    Hi, erveryone
    I prepare to implement a servlet that access database and do sync with client.
    When I access database, I would like to configure a datasource in weblogic and use connection pool.
    In order to make servlet application run significantly faster, my servet how to use connection poo is much moreresonable?
    For example, my servlet has many times database access. Is it true that geting and close a connection whenever
    one time database access finished?
    If from the servlet begins, the db connection is hold till servlet finalize. Will the solution affect the servlet performance? Is there any official document to introduce connection pool program? I search some documents.
    <The Java EE 6Tutorial> introduce some simple intruduction about connection pool.

    1. Use WebLogic Servers Data Source for Database Connections.
    2. Open and close the connections where you need it. Dont open it in begin and close in finalise. That is bad practice.
    3. Even when you invoke Connection.close () webLogic will not close the connection. it will commit the transaction and return it back to the pool rather than physically closing the DB connection.
    4. You can tune data source for minimum, maximum and increments of connections that you need based on your application requirement.

  • How to use Connection Pool in ADF ear file creaion from jDev 10.1.3

    Hi,
    We are developing big application in ADF with 10 different modules. We are creating ear file with data source setting.
    How to use connection pool while creating ear file from jDev. Connection pool is alreday created in Application Server 10g.
    What all the setting we need do to make use of connection pool while creating ear file jDev.
    Thanks

    User,
    If you are using ADF Business Components, you can right-click each application module, select "configurations" and edit the configuration you are using. On the initial page of the configuration dialog, you can specify to use either a JDBC URL or a Datasource - you just need to choose Datasource and then provide the name by which to access it.
    John

  • How To Use Connection Pooling in Struts.

    Can Somebody have the idea how to use connection pooling. i want to use jakarta commons dbcp, pool.
    using these packages how can i implement the connection pooling for my web application. If Anybody have some idea plz contect me.
    If Somebody have sample code plz send.
    Thks in Advance,

    Read the documentation...?

  • How to use Connection pool in Reports

    Dear All,
    Please help me How to create Connection pool for Reports and How to use in Reports.
    Present i am using the report by passing parameter as P_JDBCPDS=username/password@databaseName. I thought this will not manage the coonection pool.
    For all reports and every time i am passing userName/password, how to avoid this. Please help me.
    1. How to create Connection pool for Report Server
    2. How to use that Connection pool in the Reports.
    Please help me.
    With Regards,
    Srinivas.

    Until now, I have not worked unfortunately with a connection pool, but, I have found a documentation about the Creating an Internal Connection Pool.
    http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b13593/cpdef.htm

  • How to configure connection pooling in tomcat?

    how to configure connection pooling in tomcat and how to use the connection pooling in the jsp and servlets?

    thanks for the reply, i have configured the connection pool settings in the tomcat.
    I created a class with static method, which will return the connection object.
    whenever i need the connection object, iam invoking the static method, once its usage is over iam closing thew connection..
    is it the right way of using the connection object in the web application.

  • How to configure connection pooling in WebLogic

    how to configure connection pooling in WebLogic

    You already asked this question, here:
    [http://forums.sun.com/thread.jspa?threadID=5356073&messageID=10549446#10549446|http://forums.sun.com/thread.jspa?threadID=5356073&messageID=10549446#10549446]

  • How do u connect to wifi while @ a Starbucks etc.?

    How do u connect to wifi while @ a Starbucks etc.?

    Their wifi network should show in Settings > Wi-Fi, and you should then be able to just tap on the wifi network name and connect to it - if it's a password protected network you will need to type in the password.

  • While Export the data to MS Word - How to avoid the Frames ???

    Hi All,
    I export the data from Crystal Report XI to Word document (doc) file , i used Text objects in the Report , in document file it's converted to  Frames and overlapped with other frames(so some data are hidden). is it possible to avoid the frames while exporting the report to word document.
    Thanks in advance.
    J.Baski

    Hello,
    It would be better if you format your report so your objects do not overlap but I realize sometimes it can't be avoided.
    Other option is to upgrade to CR XI R2 and test again, it is a free upgrade.
    Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    Other option is to export to Word Editable may be a solution for you also.
    Thank you
    Don

  • How to prevent certain Users from deleting a resource while in the project?

    We are currently using P6.2 client; We are setting up a new resource dictionary and have been searching to find a way to prevent certain users from deleting resources while in the project. Is there a way to do that? I have created Global profiles and Project profiles under the Admin security profile and have tried clicking off of rights to delete a resource but when I log into as that user I can still delete the resource. Please Help!

    Are you talking about preventing users from deleting resource assignments within a project? Or preventing them from deleting resources from the global resource dictionary?
    For global resource dictionary in Global Profile you would turn off:
    -Delete Resources
    And likely:
    -Add resources
    -Edit Resources
    -Edit Roles
    -Edit Resource Calendars
    For resource assignments on activities in Project Profiles you would turn off:
    -Add/Edit Project Activities Except Relationship
    Note: this will disable more then just the ability to alter resource assignments.

  • How to purge connection pool on stale on connections

    Hello
    Our problem is when we are required to reboot the database then we have to reboot all application servers.
    Is there a way we can avoid app servers reboot.
    app server code is in VB 6.0 and .NET 1.1 (using odp.net for .net)
    in a sample application what we found that the ADO (using OraOLEDB) returns a connection where the connection state is open even after database reboot, but when try to use the connection object it throws an exception like end-of-line etc.
    so is there a way to clean up the connection pool or reset ole db connection manger.
    Any help will be greatly appreciated
    Thanks

    You're using both ODP and OLEDB then?
    ODP has a ClearPool method on a connection you can call, useful for just this situation.
    OLEDB connection pooling is done by the OLEDB framework provided by Microsoft, not by the provider itself. I dont know of any way to clear out the pool apart from restarting the application.
    Hope it helps, corrections/comments welcome
    Greg

  • Getting error while exporting the report

    Hi,
    I am facing error while exporting the report. Getting below error.
    "No data can be exported because there are no rows.Operation failed."
    how come this error is coming even though my report contains data.
    please do the needful.
    i am using the version discoverer 10g.
    Thanks,
    RC.

    I am having the same problem. I found this article in which the user was exporting 100,000 plus records and had the same issue exporting (Discoverer workbook exported to excel error - No dta can be exported and they were able to fix it by adjusting two memory settings in their pref.txt file. However, in my report there are only 1,100 records with eleven columns being returned. I export much larger reports on a daily basis.
    Originally, the report was returning records and when I would go to retrieve all records it would tell me that all the rows could not be returned and the data may be incomplete. After scrubbing my SQL I no longer get that message, but the report still will not export and I get the same error as you.
    I have not tried the pref.txt settings fix but may try it today to see if that is a workaround. I will then have to evaluate whether it is a good fix or just a band-aid.

  • Error "Encountered an error while exporting the data. View the lof file (DPR-10126)

    Hello,
    I would like to have sugestions and help to solve a problem in IS 4.2.
    I've created a view from two tables, joined together with the key from each one.
    Then i've binded the rule with the view (mentioned above) created and calculated score for it.
    The calculation is successful, however when i try to export all failed data i have the following error:
    "Encountered an error while exporting the data. View the lof file (DPR-10126)"
    When exporting failed data from calculations made directly to the datasources i do not encounter any problem, but when i try to export all data to CSV file (not only the 500 results limit) i have this kind of error.
    However, when i visualize the data from the view created, it is also possible to export to csv file.
    Resuming, the error occurs only when exporting all failed data from the view.
    Can anyone help with this issue?
    Thx
    Best Regards,

    Hello,
    Your information is correct.
    I've just confirmed it in the 4.2 SP3 Release Notes and they specifically refer to this issue.
    A user who has 'View objects' rights for the project and a failed rule connection cannot export the failed data. This issue has been fixed in this release.
    Thank you very much for your input.
    Best Regards,

  • I don't have a DSL or cable modem to access the Internet ... just a mobile WiFi (there is no cable available at our house). How do I connect my Time Capsule to the Internet via the mobile WiFi?

    I don't have a DSL or cable modem to access the Internet ... just a mobile WiFi (there is no cable available at our house and the mobile WiFi is our only option). How do I connect my Time Capsule to the Internet via the mobile WiFi?

    LOL!!
    I am in Australia and the ISP... I think both the main ones would fit your description to a T.. big T in particular.
    Your router is really unsuitable.. if it is only wireless and no ethernet.. just buy an ethernet one.
    Do a search on ebay.. 3g router.
    But you can get the TC to join a wireless network.
    It is a non-standard setup that Apple will not support.. the option is hidden.
    If you are on Lion download the 5.6 utility. Go to the wireless set up page and hold down the option key whilst selecting wireless mode.. a new option, join will appear. You can then put in the ssid and passkey of the 3g router.
    But please note the end result of this setup..
    very slow speed. The TC is now a second wireless hop from your clients.. this will halve the speed.
    In this mode the ethernet are deactived.. for reasons only Apple know, they decided you should not use ethernet when doing this.

  • How do I connect my 27" iMac to the HDMI port of my LCD TV ?

    How do I connect my 27"iMac to the HDMI Port of my LCD TV ?

    I have the 22" imac
    beside it I have an 24" dell monitor
    I used a miniDisplayport->DVi converter in the TB port of the imac
    thats the best performance because DVI like Displayport are both digital interfaces
    same deal with hdmi really
    so you need a miniDisplayport to dvi or hdmi depending on the inputs on your tv
    and a cable and thats it

Maybe you are looking for

  • HP Laserjet 4050 - print driver is messed up in Mavericks

    Landscape settings are ignored when printing envelopes - Apple hosed their HP printer driver. Is there a way to go back to the previous version of the driver?

  • How do I get my mac to stop accessing the wrong version of the program?

    When I got my iMac, I also got Works '06 and have been quite satisfied with it. I only use Pages, but when I upgraded iLife, there was a try out program of Works '08 and I thought I would give it a look see for Keynote. Unfortunately because it appea

  • Need CL advice for Upgrade thats proven W/X-FI car

    Well I purchased an Extreme Gamer and the sound is awesome in MP3's but in BF942 its pop and crackle. I would like to keep the card and work with it. I have tried everything, IRQS, removing devices, increase latency, diff slots, diff modes, etc to no

  • Materializev View Refresh error ?

    Pls help me slove this problem : SQL> EXECUTE DBMS_REFRESH.REFRESH ('ABC_REFG'); BEGIN DBMS_REFRESH.REFRESH ('ABC_REFG'); END; ERROR at line 1: ORA-12008: error in materialized view refresh path ORA-12096: error in materialized view log on "CBA"."TMP

  • Which table contains the field CNTRC(Counter Reading)?

    Hi Guys, 1) Can anybody tell me which table contains the field CNTRC (short description is Counter Reading) ? 2) CNTRC is available in the structure RIMR0. In a situation like this, how do we identify the table name? Thanks in Advance, Vijay