File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IN/OUT parameters

 
Chad McGowan
Ranch Hand
Posts: 265
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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??
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic