This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes GWT and the fly likes Calling multiple methods from RPC servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » GWT
Reply Bookmark "Calling multiple methods from RPC servlet" Watch "Calling multiple methods from RPC servlet" New topic
Author

Calling multiple methods from RPC servlet

john andre
Greenhorn

Joined: May 16, 2010
Posts: 1
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2726
    
    3

"not google", please check your private messages regarding an important administrative matter.


Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8562

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.


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Calling multiple methods from RPC servlet
 
Similar Threads
GWT Viz API application using server data to render charts
Generic--- ClassCastException
Need help finding assignments
Google Web Toolkit (GWT): Practice
Bubblesort confusion