File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CachedRowSet JavaApp-Servlet

 
Philipp Helle
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 33713
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic