Mike,
Did u attach something. It didn't come thru.
I would like to look at what u have.
Pls try again or just email me directly if you don't
mind.
Thanks
--- Mu Mike <[EMAIL PROTECTED]> wrote:
> Well, I really like to be of help,(Actually, I may
> write a doc to tell
> about my path approaching fortress,but since the
> Chinese spring festival is
> near and more important, I my-self still have a lot
> of questions need you
> guys' help,that can not be done in the near future)
>
> I didnt download from cvs, I just got a
> fortress-complete.zip(something
> like this) and read seveal online docs and asked
> many questions here before
> and after I started my wheel.Fortunately,I got
> answer here for almost every
> question I posted.
>
> well, you may need to do something like this before
> you start with fortress
>
> 1>first you have to know some fundamental things
> that are told in
> "developing-with-avalon",which you can get somehow
> online
> 2>since it tells much about ECM in that doc, I guess
> you may have known
> something about ECM(I think you d better know
> something about it before you
> go further to fortress)
> 3>Fortress has several things different from
> ECM(these are I know up to
> now)
> first: it is more strict than ECM in terms of the
> SOC princilple, you can
> not cast a Service you looked up by a ServiceManager
> to a specific service
> implementaion. The same is with the context, that
> is, the looked up service
> doesnt have the same Context object you
> contextualized to your Container
> instance.
> second: it allows using roles files alought it
> doesnt encourage this,yet
> the xml file structure is different from the files
> for ECM. And, fortress
> doesnt support Composable related features, they are
> replaced by
> Serviceable related features
> third: there is a Container class in fortress,
> which ECM doesnt have, I
> myself still dont know much about how to use it
> finally, fortress claims it support hierarchial
> containers, which I have
> no clear idea about and it is really I m looking for
> help about(maybe you
> guys can help me)
>
> Above are qustions you may feel like to raise when
> you are doing with
> fortress.
>
>
> And, indeed, you can have a very simple fortress
> based project like mine(I
> have it in the attached)
>
>
>
> Hope that can be of some help to you
>
> Mike.
>
>
>
>
>
>
>
>
>
>
>
>
> >From: Sonu Vijay <[EMAIL PROTECTED]>
> >Reply-To: "Avalon framework users"
> <[EMAIL PROTECTED]>
> >To: Avalon framework users
> <[EMAIL PROTECTED]>
> >Subject: Re: Fortress: why is this
> >Date: Fri, 16 Jan 2004 09:11:53 -0800 (PST)
> >
> >Mike,
> >
> >I have seen your Fortress questions in the list.
> >
> >Could u drop some hints abt how you started with
> >Fortress. I tried to download Fortress binaries and
> >run a build , but ant keeps crashing.
> >
> >So how were you able to start with Fortress ?
> >
> >CVS downloads ??
> >
> >Thanks
> >
> >
> >--- Mu Mike <[EMAIL PROTECTED]> wrote:
> > > I read the javadoc, it tells that the
> > > m_componentContext is the context
> > > object passed to your service implementation
> object
> > > while looking up it by
> > > a ServiceManager of a container,it suggests
> override
> > >
> > > provideComponentContext method to change the
> context
> > > passed.
> > > So I did this:
> > >
> > > public class MyContainer extends
> DefaultContainer {
> > > protected
> > > org.apache.avalon.framework.context.Context
> > >
>
>provideComponentContext(org.apache.avalon.framework.context.Context
> > > parent)
> > > {
> > > MyContext myContext=new MyContext();
> > > m_componentContext=myContext;/I guess this
> > > statement is useless, but
> > > I put it anyway
> > > return myContext;
> > > }
> > >
> > > }
> > >
> > > then I have this code
> > >
> > > FortressConfig fConfig=new
> > > FortressConfig();
> > > ........
> > > ........
> > > FortressConfig
> > > fConfig.setContainerClass("MyContainer");
> > > ContainerManager cm = new
> > >
> > > DefaultContainerManager(fConfig.getContext());
> > > ContainerUtil.initialize( cm );
> > > container =
> > > (DefaultContainer)cm.getContainer();
> > > ServiceManager manager =
> > > container.getServiceManager();
> > >
> > > and then I looked up mySpecialService like this:
> > >
> > >
> > >
>
>mySpecialService=manager.lookup(mySpecialService.role);
> > >
> > > yet the context of the mySpecialService object I
> got
> > > is still of
> > >
> org.apache.avalon.framework.context.DefaultContext
> > > type, why isnt it a
> > > MyContext object?
> > >
> > >
>
>_________________________________________________________________
> > > �������������ĵ����ʼ�ϵͳ�� MSN Hotmail��
> > > http://www.hotmail.com
> > >
> > >
> > >
>
>---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> >http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
>
>
_________________________________________________________________
> ������� MSN Explorer:
> http://explorer.msn.com/lccn/
>
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]