service() is not magically called for normal non-block classes. Take a close look at the java, source and .xinfo generated file and assembly.xml for the lifecycle demo from <cvs>jakarta-avalon-apps/demo
- Paul
I developed a block and deployed it inphoneix.
I can see in the logs that the block is loaded.
but i am not able to access the block from
other class.
----------------------
public Test extends AbstractLogEnabled
implements Initializable, Serviceable
{
private DemoBlock m_demoBlock;
public void initialize() throws Exception
{
}
public void service(ServiceManager manager) throws ServiceException
{
m_demoBlock= (DemoBlock )manager.lookup(DemoBlock .ROLE);
}
.
.
.
.
System.out.println(demoBlock); -------------------->null
}
-----------------------------
Test is not a block, just a plain class.
can we do something like this or even Test shld be a block ??
thanks in advance
raghu
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>