This content has been marked as final.
Show 3 replies
-
1. Re: Trouble Injecting DAO Into Hibernate Validator
admin.admin.email.tld Jun 30, 2008 11:31 PM (in response to schevus.swosborne.magellanhealth.com)from the Seam 2.0.1 ref doc pdf:
Seam.Component.getInstance() The getInstance() method is used to get a reference to a Seam session bean component stub, which can then be used to remotely execute methods against your component. This method returns a singleton for the specified component, so calling it twice in a row with the same component name will return the same instance of the component.
So apparently your DAO is a SLSB? if yes, the reason the @In injection is not working may be b/c you're not using the local interface name as the private instance variable name and as the type of the variable.
e.g. if the local interface is AliasDaoLocal, try something like:
@In(create = true) private ActivityLogLocalDAO activityLogDAO;
I wouldn't worry about clearing anything out...
-
2. Re: Trouble Injecting DAO Into Hibernate Validator
schevus.swosborne.magellanhealth.com Jun 30, 2008 11:39 PM (in response to schevus.swosborne.magellanhealth.com)I tried injecting like that originally, and I could never get anything but null. Sounds like my problem isn't with the getInstance() call, so I'm guessing it's hibernate related. Thanks for the info.
-
3. Re: Trouble Injecting DAO Into Hibernate Validator
emeric Sep 20, 2010 2:12 AM (in response to schevus.swosborne.magellanhealth.com)Hello,
please have you found a solution for your problem.
Please let me know.
Thank you in advance and best regards
Emeric