calling components from java

2005-06-21 Thread Peeths
hi i'm having cocoon application and i'm invoking a session bean from cocoon , i want to get the session inside java class , i'm using var factory = cocoon.getComponent(Packages.org.openize.hibernate.PersistenceFactory.ROLE); var hs = factory.createSession(); but i dont which package i

Re: calling components from java

2005-06-21 Thread Philippe Guillard
I think it is org.apache.avalon.framework.component.ComponentManager, but i suggest you to check:-) Phil Peeths wrote: hi i'm having cocoon application and i'm invoking a session bean from cocoon , i want to get the session inside java class , i'm using var factory =

Re: calling components from java

2005-06-21 Thread Peeths
hi i checked it , its not that regards peeths --- Philippe Guillard [EMAIL PROTECTED] wrote: I think it is org.apache.avalon.framework.component.ComponentManager, but i suggest you to check:-) Phil Peeths wrote: hi i'm having cocoon application and i'm invoking a session

Re: Calling components from java

2004-11-30 Thread Robin Wyles
Ralph, Thanks for the clarification... Robin On 29 Nov 2004, at 17:53, Ralph Goers wrote: Robin Wyles said: Jorg, On 29 Nov 2004, at 12:20, Jorg Heymans wrote: It is my understanding that you can only call / lookup components from other components (i'ld love to be proven wrong on this btw). Write

Calling components from java

2004-11-29 Thread Robin Wyles
Hi, I am trying to call a cocoon component from within a Java class - is this possible? From flow I use... var my_component = cocoon.getComponent(Packages.MyComponent.ROLE); ... which works great. I have tried the following in my java class... CocoonComponentManager manager = new

Re: Calling components from java

2004-11-29 Thread Jorg Heymans
It is my understanding that you can only call / lookup components from other components (i'ld love to be proven wrong on this btw). Write a component that implements the serviceable interface and use that servicemanager to lookup. HTH Jorg Robin Wyles wrote: Hi, I am trying to call a cocoon

Re: Calling components from java

2004-11-29 Thread Robin Wyles
Jorg, On 29 Nov 2004, at 12:20, Jorg Heymans wrote: It is my understanding that you can only call / lookup components from other components (i'ld love to be proven wrong on this btw). Write a component that implements the serviceable interface and use that servicemanager to lookup. That is

Re: Calling components from java

2004-11-29 Thread Ralph Goers
Robin Wyles said: Jorg, On 29 Nov 2004, at 12:20, Jorg Heymans wrote: It is my understanding that you can only call / lookup components from other components (i'ld love to be proven wrong on this btw). Write a component that implements the serviceable interface and use that servicemanager