This content has been marked as final.
Show 1 reply
-
1. Re: How to specify a dependency on the hibernate session fac
alesj Sep 22, 2009 4:20 PM (in response to ansel1)You could do the following:
(1) add JndiKernelRegistryPlugin bean to MC - this knows how to lookup jndi
(2) add @Depends("my-hibernate-session-jndi-name") to your service bean
This would create explicit dependency.
But one note, (1) is then used at every MC lookup call, hence performance penalty
+ MC could find some other njdi entries you might not wanna expose (you could create your own version of JKRP, which would "fix" this).