Two Laptop Bag*
The moose likes JDBC and the fly likes CachedRowSet JavaApp-Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "CachedRowSet JavaApp-Servlet" Watch "CachedRowSet JavaApp-Servlet" New topic
Author

CachedRowSet JavaApp-Servlet

Philipp Helle
Greenhorn

Joined: Jul 19, 2005
Posts: 1
Hi,

I have a Java Application (with Swing) which has to do DB-queries.
Currently the application connects directly to the DB which isn't the best solution because the Application shall also work through firewalls.
My idea is to build a servlet which takes the queries and passes back the results in a CachedRowSet.
Unfortunately I don't have a clue on how to build the servlet especially on how to access the servlets methods from the application.
I'm using Tomcat 5, Java 1.5 and MySQL with Connector/J 3.1 as JDBC driver.
Can anybody please give me a hint on how to start?

Cheers
Philipp
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Philipp,
Welcome to JavaRanch!

I'm not sure if I understand what you are trying to do. Have the application call a servlet? The servlet runs on the server so it wouldn't be able to pass back an object as the result.

In any event, this is more of a servlets question. I'll move it to the servlets forum for you.


[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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CachedRowSet JavaApp-Servlet
 
Similar Threads
close on CachedRowSet
How do I use the CacheRowSet?
Which technology to use??
DB calls from Servlet Filter vs Action class
.NET dataset in java