Hi, Attached here is a first cut of a Remotable Extension handler (merlin2 compatible).
Components can supply the objects that it wishes to
expose to remote
client by subscribing to a Remotable lifecycle
extension .
/**
* Remotable Lifecycle Extension enables a object to
* expose itself remotely to its potential client
using
* AltRMI.
* </pre>
* </code>
*
*/
public interface Remotable
{
/**
* Get the list of objects to be exposed from this
* component
* @return RemotableDescriptor This descriptor
stores the list
* of objects that are exposed to the clients.
*
*/
RemotableDescriptor getExposedObjects();
}
For example XYZComponent can expose some objs it
associated with by :-
* public class XYZComponent extends
AbstractLogEnabled
* implements ...,Remotable
*
* {
* . . . .
* . . . .
* . . . .
* public RemotableDescriptor getExposedObjects()
* {
* // Here we expose a
object(someObjThatWishesToExposed)
* return new
RemotableDescriptor().add("publishName",
*
someObjThatWillBeExposed,
* new
Class[]{RemoteInterfaceThatClientSees.class,AnotherRemoteInterface.class});
* }
* . . . .
* . . . .
* }
*
One can configure the extension handler too with
various transports (altrmi transports)
over which it wishes to expose the objects.
[ Note:
o The build requires altrmi as well merlin libraries.
o merlin configuration : src/conf/remotable.xml
o ant client (execute the client)
/]
Thoughts/Comments?
Regards,
Vinay.
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
altrmi-remotable.zip
Description: altrmi-remotable.zip
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
