• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling multiple methods from RPC servlet

 
john andre
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I have a single remote service servlet which contains 2 methods A() and B() and I am successfully able to call A() from my client side code.
A() returns an Integer and also populates an ArrayList which is returned by B().

What I am trying to do is call A() which returns the integer and then get access to the array list from my client side code. Could someone suggest how this can be done?
Thanks for any suggestions...


 
Devaka Cooray
Marshal
Posts: 5158
480
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"not google", please check your private messages regarding an important administrative matter.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what information you have provided, I see two options.

A() returns and int. Do you use that int for anything? If no, then let A return the List
If yes, then you can always make a second call to B to get the list.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!