• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CachedRowSet JavaApp-Servlet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic