OK, I will. Thank you and have a nice weekend.

On Feb 17, 2006, at 4:23 PM, Chuck Hill wrote:

Hi Helen,

On Feb 17, 2006, at 1:04 PM, Helen He wrote:
On Feb 17, 2006, at 1:55 PM, Chuck Hill wrote:
On Feb 17, 2006, at 8:28 AM, Helen He wrote:

In our WO application, we need to call a XML RPC service to get course data. Since each call will get data only for one course and we need to update all the courses in our database, so we made a loop.
What classes are you using to access the course data? Are you waiting for a reply before sending the next request?
Here is my coding:

ISSOXMLClient server = new ISSOXMLClient( url, userid, password);// when this constructor is called, a object of XmlRpcClientLite is instantiated.


It looks as if ISSOXMLClient is unique to PSU. Perhaps you can ask the people who wrote it to assist you.

                int c = courses.count();
                System.out.println("There are total " + c + " courses.");
                for(int i = 0; i<c; i++)
                {
                        Course aCourse = (Course)courses.objectAtIndex(i);
                        String semester = "";
                        String isisAbbrev = aCourse.isisAbbrev().lookupCode();
                        String isisNum = aCourse.isisCourseNum();               
                
                                        
                        System.out.println("Call " + i);
result = server.selectISSOCourseMaster(semester, isisAbbrev, isisNum);
                        //Then result is stored in a array.
                }



But when the service was called continuously about 30 times, an exception org.apache.xmlrpc.XmlRpcException: out of threads was thrown. We have tried many ways to solve the problem but still no good. We need help. Any ideas or suggestions are welcome!

Can you reuse the threads from the previous requests? It sounds like it perhaps has a pool of threads that need to be reused or the pool size needs to be increased.

How to reuse the pool of threads and to increase the size of pool?

That likely depends on ISSOXMLClient. org.apache.xmlrpc.XmlRpcClient has methods that handle a set of threads and (apparently) a pool of workers. org.apache.xmlrpc.XmlRpcServer does as well. The solution to your problem probably lies in there and their interaction with ISSOXMLClient.

Chuck


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/ practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to