Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to generate IDL for java.util.Collections (and other static classes)?

0 views
Skip to first unread message

James Jouett

unread,
Sep 15, 2004, 9:16:12 AM9/15/04
to
I'm trying to use Weblogic to support an IDL interface to an existing system using stateless session beans. I'm able to generate IDL and interact with most of the methods and data types, but I'm having a problem. One query method on the stateless session beans returns java.util.Collection, and in the case where there are not matches to the query, the return value is set to java.util.Collections.EMPTY_SET, such as the following:


java.util.Collection query(Criteria critObj)
{
java.util.Collection retVal=null;
retVal=query(critObj);
if(retVal == null)
{
retVal=java.util.Collections.EMPTY_SET;
}
return(retVal);
}


My problem is figuring out how to generate IDL that represents java.util.Collections.EMPTY_SET. Since java.util.Collections is a static class, I'm having problems generating the IDL that represents this. If anyone has ideas or suggestions, it would be appreciated.

Thanks in advance

0 new messages