Provided are a method, system, and program for generating asynchronous
interfaces and methods from synchronous interfaces and methods receiving
a synchronous interface to a target component having a synchronous method
used by a client component to synchronously invoke the target component.
An asynchronous interface is generated for the synchronous interface of
the target component. An asynchronous method is generated for the
generated asynchronous interface having arguments to invoke the target
component, wherein the client calls the generated asynchronous method to
cause an asynchronous execution of the synchronous method.