This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services and the fly likes problem with resultset in web service method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "problem with resultset in web service method" Watch "problem with resultset in web service method" New topic
Author

problem with resultset in web service method

benjamin yap
Greenhorn

Joined: Aug 06, 2009
Posts: 2
Hi, i actually have a webservice method that retrieve datas from my oracle database.

I have resultset as a return type. I have problem running this method. I cant return a resultset in a web service method.

I am using netbeans 6.7 IDE

Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2194
Hi!
Right, you cannot return the result set itself but you can extract the data returned in the result set and return the data, perhaps in some kind of data transfer object.
Best wishes!
benjamin yap
Greenhorn

Joined: Aug 06, 2009
Posts: 2
Ivan Krizsan wrote:Hi!
Right, you cannot return the result set itself but you can extract the data returned in the result set and return the data, perhaps in some kind of data transfer object.
Best wishes!


Hmm could you give me more details or some sample code? that would be good. thanks
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2194
Try this: http://java.sun.com/docs/books/tutorial/jdbc/basics/
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: problem with resultset in web service method
 
Similar Threads
Method keeps returning null
Reusing ResultSet object in Servlets.
jsf and database connection problem
Closing Statements
Unit testing using dbunit