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]
