Thanks. I just started writing a sample HelloWorld-ish program,
and I couldn't figure out how to export my remote object.
Typically I would do this in my main(), but since my block is
automatically loaded by the framework, I would need some
sort of hook/interceptor to invoke necessary routines. Could
somebody help me with this? I just need to do this with only
one Remote object for bootstrapping purposes.
Is there a general-purpose block, semi-block, or block-ish
component which is loaded before any user-services in the framework?
Or, should I write an "RMI-initialization block", which does
exporting Remote objects as well as setting SecurityManager, etc?
Will that work? Thanks, ~Indigo
----- Original Message -----
From: "Peter Donald" <[EMAIL PROTECTED]>
To: "Avalon Development" <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 1:41 AM
Subject: Re: [Q] Using RMI in Avalon?
> Hiya,
>
> On Wed, 5 Sep 2001 17:20, Indigo wrote:
> > I'm planning to expose my server interfaces through RMI or RMI/IIOP.
> > Now my question is what is the best way to do this? Should I
> > inherit my interface from both Component and Remote interface?
> > Or should I use some sort of delegation mechanism where Component
> > and Remote are implemented by different objects? Is Component
> > a proper level to handle Remoting? Or shoul I use Service or Block?
> > I haven't found anything relevant in Excalibur or Cornerstone, but
> > in case I have missed, could somebody point me to the right direction
> > if there is some sort of "RMI wrappers" or "CORBA proxy-stub managers"
> > or something like those?
>
> We have planned something like this with respect to management. In the past
> we have talked about it a few different ways but the most popular has been
> something like
>
> interface ManagableService extends Service, Remote {}
>
> or maybe
>
> interface MBeanService extends Service, ...MBean {}
>
> So eventually you could mark a block as being "manageable" and it would be
> exported via whatever mechanisms (whether they are RMI/JMX/WBEM/other). This
> assumes you are using RMI for management of applications.
>
>
> If your intention is not management but instead exporting of the object then
> I would instead do something like
>
> interface RemoteService extends Service, Remote {}
> interface MyRemoteService extends RemoteService {}
> class MyBlock implements Block, MyRemoteService {}
>
> does that make sense?
>
> --
> Cheers,
>
> Pete
>
> -----------------------------------------------
> "You can't depend on your eyes when your
> imagination is out of focus." -Mark Twain
> -----------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]