On Sat, 7 Jul 2001 17:47, Eung-ju Park wrote:
> I write another version of phoenix for web-app and simple client applcaion.
> My purpose is reuse phoenix block( DataSourceSelector, TimeScheduler, etc )
> in servlet environment.
> I test it using avalon-demo application.
I refactored it a bit for implementation. I moved GriffonManager to
NoopSystemManager. I Made GriffonEmbeddor extend PhoenixEmbeddor and renamed
it to SingleAppEmbeddor. And I didn't add in Griffon. An example use is below.
final SingleAppEmbeddor embeddor = new SingleAppEmbeddor();
final Parameters parameters = new Parameters();
//Not needed unless want to redirect logging
//parameters.setParameter( "log-destination", "./logs/griffin.log" );
parameters.setParameter( "application-name", "griffin" );
parameters.setParameter( "application-location", "../apps/avalon-demo.sar" );
embeddor.parameterize( parameters );
embeddor.initialize();
embeddor.start();
try
{
//Do real work in here
... embeddor.lookup( Blah.ROLE ) ...
}
finally
{
embeddor.stop();
embeddor.dispose();
}
When Apaches CVS comes back alive I will check it in. Could you test it out
and make sure I haven't stuffed anything up? Ta.
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]