Hello, I searched the whole day for a sollution and hope you can help me.
Like in Caveatemtor I got a Seam Component like this: @Name("login") | public class LoginAction { | | ... | | @In(create = true) | private UserDAO userDAO; | ... | } and the UserDAO looks like: @Stateless | public class UserDAOBean extends GenericEJB3DAO<User, Long> implements UserDAO { | | ... | | } There is no Seam import in the UserDAO (as I whish) but if I run the application, Seam tells me that he can't find the DAO component Caused by: org.jboss.seam.RequiredException: In attribute requires value for component: login.userDAO | at org.jboss.seam.Component.getInstanceToInject(Component.java:1168) | at org.jboss.seam.Component.injectFields(Component.java:839) | at org.jboss.seam.Component.inject(Component.java:669) | If I set the Name in the UserDAO everything works fine @Stateless | @Name("userDAO") | public class UserDAOBean extends GenericEJB3DAO<User, Long> implements UserDAO { | | ... | | } I also got this in my web.xml <context-param> | <param-name>org.jboss.seam.core.init.jndiPattern</param-name> | <param-value>appname/#{ejbName}/local</param-value> | </context-param> Is there any possibilty to use the DAO without making it depends on Seam? Thank you! Andreas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927977#3927977 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927977 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user