Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Passing a rowset in a web service

  Asked By: Jimmy    Date: Dec 07    Category: Java    Views: 779

I am trying to create a webservice.So far the webservice has one method
that returns a primitive boolean type.

I am trying to add a method to the webservice that will return a
rowset. A rowset is an undefined class under javax* or java.* and that
it can't be passed across a webservice. I thought any object so long as
it is serializable can be passed from a webservice to a client?

In all of the examples that I have found pass an array of java objects
with "setters" and "getters" that access all of the fields that would
be returned in the rowset. In this way you are not really using the
rowset but wrapping it with a bunch of pojos. This forces you to create
a class for every rowset returned.

Does anyone have any idea of how just to return an object of type
rowset or CachedRowSet?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Passing a rowset in a web service Or get search suggestion and latest updates.