This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes IN/OUT parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "IN/OUT parameters" Watch "IN/OUT parameters" New topic

IN/OUT parameters

Chad McGowan
Ranch Hand

Joined: May 10, 2001
Posts: 265
Hoping someone can clear this up for me.
Using rpc, what is the advantage/disadvantage of using in/out params versus wrapping all output into the method return value.

For example, I am using a service that returns an arrayList from its method call, but also sends an error message using an in/out parameter.
Is this better than having a result object that contains both the error string and the arraylist???
Something about using in/out params just seems wrong to me, but it seems to be pretty common. Any reason why??
I agree. Here's the link:
subject: IN/OUT parameters
Similar Threads
How to return a parameter from a servlet to the calling HttpClient
Constructor question
impossible to solve FinderException
Vector.add(int i,Object obj)
Reflection Problem - I feel like a Vampire... No reflection found...