On Thu, 26 Sep 2002 08:35, Peter M. Goldstein wrote: > This is not a Phoenix problem. Nor is it merely an aesthetic concern. > We can demonstrate that it's not a Phoenix problem because we can > upgrade to the latest rev of Phoenix 4.0 (as Paul just did) and > everything works fine. > > This is a (to quote phoenix code) "lifecycle.nota-component.error". > Several of the components that James uses in its deployment (and are > used by some of its mailets) are no longer Components. This was brought > to everybody's attention a month or so ago, when somebody tried to > deploy James using the latest Cornerstone classes.
I believe that was Stephen trying to deploy to a non-Phoenix container? If not can you give me a pointer to bug report. I will fix it. > These ex-Components were made available through the Mailet API using a > ComponentManager that was provided in the MailetContext (glorified hash > map). Examination of the Phoenix code (and I could easily be wrong > here) seems to indicate that this will cause issues. The class > org.apache.avalon.phoenix.components.application.BlockResourceProvider > seems to throw an exception when loading a non-Component as a Component. > So we will not be able to make this previously available functionality > available through the current Mailet API. All services get Proxied at runtime (ie a temporary class is created that implments all their service methods but delegates to real object). Part of this proxy includes the Block interface (which extends Component). So any service aquired from the ComponentManager provided to James will implement Component by virtue of this. In the one case where this doesn't hold (ie you add the "this" component to a ComponentManager) you can either make the "this" class implement Component (It probably already does?) or I can add a method to BlockContext that will allow retrieval of Proxy for current block. Anyways I will have a poke around in code and see if there is anything I can spot that is off or needs fixing. -- Cheers, Peter Donald ------------------------------------------------------ Mark Twain: "In the real world, the right thing never happens in the right place at the right time. It is the task of journalists and historians to rectify this error." ------------------------------------------------------ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
