I am using acegi with spring for the web security of my site. However, the
login process needs to be able to query the database to get information
about the user account (something different than just validating username
and password). Then I need to set the username on the Visit object. I
already have acegi working, and I already have a DAO for user information
working in HveMind.
Now I am trying to use the DAO from HivemMind in my acegi security beans. I
could just create a spring DAO and then just have two sets DAOs (one for
spring and one for hivemind), but I would like the spring beans to use the
HiveMind managed DAOs.
I have looked into springmodules which provides access to HiveMind services
through spring, but it looks like it actually is just creating a new
Hivemind registry inside spring. It's not using the same instance of the
registry that Tapestry is using. This may be ok, but I am concerned about
thread saftey, and other concurrency problems to resources that HiveMind may
access, like the db.
I am thinking about using the Login page as the bridge between the two. I
would inject a spring bean into the page, and a HiveMind service. Then
spring and HiveMind would be in the same place at the same time and I could
set a reference to HiveMind services on the spring bean.
Anyone have any ideas on this? There is probably a better way.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]