+1 on this one. I would like to see such an example also.

And I would also like to hear from anybody in the list who has implemented this functionality, but who is not involved in Avalon or Merlin development at Apache.

If there is anyone like that in the list then we can say that Merlin has started to go places now.


And thanks for your good work guys.




Mathews


From: Vikas Phonsa <[EMAIL PROTECTED]>
Reply-To: "Avalon framework users" <[EMAIL PROTECTED]>
To: 'Avalon framework users' <[EMAIL PROTECTED]>
Subject: RE: Accessing components from Non components
Date: Mon, 16 Feb 2004 11:42:20 -0800

Hi Everybody,

The issue of accessing components from non components in still bugging me.

Stephen wrote:
>There are several fully-functional examples of this in the merlin cvs.
>A skeleton servlet containing a kernel is under the
>merlin/kernel/servlet subproject.

As suggested by Stephen, I looked at the MerlinServlet ( let me warn that I
may not have the very latest version) and it seems that it is supposed to
load up Merlin in a webapp just like CLI does for a command line
application. Now which examples have non components accessing components ?



Aaron Farr wrote a few days ago:

>Merlin through the Kernel interface allow external objects to lookup hosted
>components. For example, with Fortress, you can get a DefaultContainer and
>then get a hold on the ServiceManager. I prefer to setup the container in
>a ServletContextListener which isolates the initialization code and then
>place a copy of the ServiceManager or Kernel or whatever in the
>ServletContext



Could some one give like few lines of code (for a non component class with a
main method not involving JNDI lookups) which could be used to access our
HelloComponent running inside a Merlin Container? I mean if components are
obtained from Kernel in Merlin, then pls point out how ?????


I think this simple class could make lots of things much clearer for others.

I think that this is a very basic issue which everybody who uses Avalon or
Merlin would have to take care of. I couldn't find an example of that in the
Merlin tutorial examples, the last time I looked at those. So if it is there
then pls point out.


Give an example guys, and I would also document it and put in wiki.


Thanks in advance.


Vikas





-----Original Message-----
From: Leo Simons [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 12:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Accessing components from Non components

Joerg Heinicke wrote:
> I'm also interested in accessing components from non-components. But I use
> Cocoon


I think cocoon has configuration options and/or blocks that allow you to
export over JNDI and a number of other methods. That might be what you want.


--
cheers,

- Leo Simons

-----------------------------------------------------------------------
Weblog              -- http://leosimons.com/
IoC Component Glue  -- http://jicarilla.org/
Articles & Opinions -- http://articles.leosimons.com/
-----------------------------------------------------------------------
"We started off trying to set up a small anarchist community, but
  people wouldn't obey the rules."
                                                         -- Alan Bennett



---------------------------------------------------------------------
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]


_________________________________________________________________
Let the advanced features & services of MSN Internet Software maximize your online time. http://click.atdmt.com/AVE/go/onm00200363ave/direct/01/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to