Hi,

I'm trying to combine the CHS (Cocoon + Hibernate + Spring) example with the authentication-fw.

For example:
User comes and has to login -> only after succesful login he is able to see the products and shop -> ...


Since the CHS has its own datasource and sessionfactory I want to "reuse" them for my authentication.


I want to use a java class as the authentication resource, like:

<authentication authenticator="com.MyAuthenticator"/>


My problem is that I don't know how to use the datasource and sessionfactory from CHS in this context.



Cheers
Jonny


Leszek Gawron wrote:

Johannes Becker wrote:

Hi,

I'm trying to "rewrite" some flowscript (from CHS) for my java class, but have no clue how to replace this part:

importClass(Packages.org.springframework.web.context.WebApplicationContext);

...
function getPetStore() {
var appCtx = cocoon.context.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);


  petStore = appCtx.getBean("petStoreService");
  return petStore;
}
...

Has someone any hints how to realize that.

what is exactly you want to achieve?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to