You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kencana <bl...@hotmail.com> on 2007/05/08 11:18:15 UTC

Returning database result set

Hi all,

just wondering how you guys deal in returning more than 1 resultset in axis
2?
basically I use arrayList since axis 2 doesn't support arrayList how to
return all the 
result (search from database e.g. select * from table will return more than
1 result set)
any idea of this?

Thank you very much

Regards,
Kencana
-- 
View this message in context: http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Returning database result set

Posted by Stefan Magnus Landrø <st...@gmail.com>.
I believe it makes even more sense to return the ArrayList as a List.
Using interfaces instead of concrete classes is better in most cases.

2007/5/8, Deepal Jayasinghe <de...@opensource.lk>:
> If you return arrayList then it should work with Axis2 with out any
> problem. but make sure the arrayList contains simple type objects or
> java beans.
>
> Thanks
> Deepal
>
> sharath srinivas wrote:
>
> > I remember making use of vectors..but the best method would be to
> > create your own bean and return it back.
> >
> > -Sharath
> >
> > On 5/8/07, *Kencana* < bluesky_dyx@hotmail.com
> > <ma...@hotmail.com>> wrote:
> >
> >
> >     Hi all,
> >
> >     just wondering how you guys deal in returning more than 1
> >     resultset in axis
> >     2?
> >     basically I use arrayList since axis 2 doesn't support arrayList
> >     how to
> >     return all the
> >     result (search from database e.g. select * from table will return
> >     more than
> >     1 result set)
> >     any idea of this?
> >
> >     Thank you very much
> >
> >     Regards,
> >     Kencana
> >     --
> >     View this message in context:
> >     http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431
> >     <http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431>
> >     Sent from the Axis - User mailing list archive at Nabble.com
> >     <http://Nabble.com>.
> >
> >
> >     ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     For additional commands, e-mail: axis-user-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >
> >
> >
> >
> > --
> > Regards,
> > Sharath
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Returning database result set

Posted by Deepal Jayasinghe <de...@opensource.lk>.
If you return arrayList then it should work with Axis2 with out any
problem. but make sure the arrayList contains simple type objects or
java beans.

Thanks
Deepal

sharath srinivas wrote:

> I remember making use of vectors..but the best method would be to
> create your own bean and return it back.
>
> -Sharath
>
> On 5/8/07, *Kencana* < bluesky_dyx@hotmail.com
> <ma...@hotmail.com>> wrote:
>
>
>     Hi all,
>
>     just wondering how you guys deal in returning more than 1
>     resultset in axis
>     2?
>     basically I use arrayList since axis 2 doesn't support arrayList
>     how to
>     return all the
>     result (search from database e.g. select * from table will return
>     more than
>     1 result set)
>     any idea of this?
>
>     Thank you very much
>
>     Regards,
>     Kencana
>     --
>     View this message in context:
>     http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431
>     <http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431>
>     Sent from the Axis - User mailing list archive at Nabble.com
>     <http://Nabble.com>.
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>
>
>
> -- 
> Regards,
> Sharath 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Returning database result set

Posted by sharath srinivas <sh...@gmail.com>.
I remember making use of vectors..but the best method would be to create
your own bean and return it back.

-Sharath

On 5/8/07, Kencana <bl...@hotmail.com> wrote:
>
>
> Hi all,
>
> just wondering how you guys deal in returning more than 1 resultset in
> axis
> 2?
> basically I use arrayList since axis 2 doesn't support arrayList how to
> return all the
> result (search from database e.g. select * from table will return more
> than
> 1 result set)
> any idea of this?
>
> Thank you very much
>
> Regards,
> Kencana
> --
> View this message in context:
> http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Regards,
Sharath