You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peeths <an...@yahoo.co.in> on 2005/06/21 18:31:23 UTC

calling components from java

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 should import for using
that and also , whih jar file should i add in the
libraries

Peeths


		
_______________________________________________________
Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for FREE! http://in.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: calling components from java

Posted by Peeths <an...@yahoo.co.in>.
hi 

i checked it , its not that 
 regards 
peeths
--- Philippe Guillard <pg...@citycita.net> 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 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 should import for using
> >that and also , whih jar file should i add in the
> >libraries
> >
> >Peeths
> >
> >
> >		
>
>_______________________________________________________
> >Too much spam in your inbox? Yahoo! Mail gives you
> the best spam protection for FREE!
> http://in.mail.yahoo.com
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> >For additional commands, e-mail:
> users-help@cocoon.apache.org
> >
> >
> >
> >  
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 
> 



	

	
		
__________________________________________________________
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: calling components from java

Posted by Philippe Guillard <pg...@citycita.net>.
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 =
>cocoon.getComponent(Packages.org.openize.hibernate.PersistenceFactory.ROLE);
> var hs = factory.createSession();
>
>but i dont which package i should import for using
>that and also , whih jar file should i add in the
>libraries
>
>Peeths
>
>
>		
>_______________________________________________________
>Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for FREE! http://in.mail.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org