File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes connectivity in war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "connectivity in war file" Watch "connectivity in war file" New topic
Author

connectivity in war file

kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
hello...
i am working on one project java with database ms access ....i hav created dsn and all manully...so i want to know when we create war file to deploye on the server then how we hav to carry out the dsn name and connectivity...is there also has to do manually or some where in file we have to write configuration...???
please solve my query....thank you...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30294
    
150

Kirtesh,
How to do this depends on your server. What are you using - Tomcat, JBoss, etc?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
Thanks For Reply..
I am using Tomcat....
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30294
    
150

Moving to our Tomcat forum.
kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
so how can i do???
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
I've seen your topic before in the another forum, but I initially ignored your topic, because your topic start isn't pleasant to read. You don't seem to show some effort to write proper English. Capitals are missing, some words are garbled and there are lot of dots in between each sentence. That doesn't motivate at least me to help you. Also the problem details are missing in your topicstart. Please read this http://faq.javaranch.com/java/ShowSomeEffort and this http://faq.javaranch.com/java/TellTheDetails
kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
Sorry Sir next time I will take care of all those things which you have mentioned.
but please help me to solve my query.
Thank You.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It depends on how you've written your code.
Have you started yet?
If not, you should read up on connection pooling in Tomcat (Container managed connection pooling) and write your app to use it.
It is spec driven so you won't need to alter your code if you move to another, spec compliant container.

See:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connectivity in war file