I have several session beans that get picked up by ejb3-container and they also
get picked up by seam. But when calling the action method on one of the beans
nothing gets injected - all the other beans all works as expected: The bean in
question is the last one that gets defined by seam.
(Still using beta1)
@Stateless
| @Scope(ScopeType.EVENT)
| @Name("find")
| @Interceptor(SeamInterceptor.class)
| public class FindAction implements Find {
| @In(create=true)
| private EntityManager em;
| public List<Ad> getSelected() {
| try {
| System.out.println(em);
|
System.out.println((EntityManager)Component.getInstance("em", true));
em is null but when calling Component.getInstance() the correct value is
returned. I have also tried to inject other vales but the result is the same.
This should work without problems right?
/Magnus
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919199#3919199
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919199
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user