Well - I answered my own question!
Straight from Sun's Java tutorial on CORBA:
Waiting for Invocation
The server is ready; it simply needs to wait around for a client to
request its service. To achieve that, enter the following code at the
end of (but within) the try-catch block:
java.lang.Object sync = new java.lang.Object();
synchronized(sync) {
sync.wait();
}
Christopher Rowan wrote:
>
> Heya Hiya Ho!
>
> I want to make a database connection pool class that starts up,
> preconnects n jdbc connections, then waits to be called by various apps.
>
> How do I make Java wait without exiting and without putting it into a
> cycle sucking loop?
>
> I've checked the API docs and a few books (my due dilligence) but can't
> find an answer.
>
> It's got to be ez - I just can't find it.
>
> Also, is CORBA/RMI the only way to call the connections? Is this even
> possible?
>
> Suggestions?
>
> Chris Rowan
> This mail is CopyLeft