This content has been marked as final.
Show 4 replies
-
1. Re: Overriding seam framework components with EJBs
sander Apr 6, 2008 10:22 PM (in response to nickarls)Try dropping the implements ResourceLoader, only extending seam.core.Resourceloader it may cause the cast exception
I also have it like that and it works as an EJB. Also the original seam component doesn't implements resourceloader.
-
2. Re: Overriding seam framework components with EJBs
nickarls Apr 6, 2008 10:27 PM (in response to nickarls)The ResourceLoader is my local interface
@Local public interface ResourceLoader { public ResourceBundle loadBundle(final String bundleName); }
-
3. Re: Overriding seam framework components with EJBs
sander Apr 6, 2008 10:41 PM (in response to nickarls)Sry my mistake i have the repository that is behind it as an EJB not the component itself
Could it be that by using the EJB your actually 'working' with the interface and since that is not extending seam.core.ResourceLoader it gives a classcast exception ?
-
4. Re: Overriding seam framework components with EJBs
sander Apr 6, 2008 11:04 PM (in response to nickarls)Yep I debugged it and it only gets a proxy based on the interface and that does not extend seam.core.resourceloader
(.. when is the edit button comming)