This content has been marked as final.
Show 3 replies
-
1. Re: SeamTest: @In not works
samdoyle Feb 24, 2010 3:14 AM (in response to mvlach)You are extending SeamTest I assume?
You need to set these values in your context as well so that it can be located for injection. e.g.
ScopeType.EVENT.getContext().set(i18NTextFinder
, i18NTextFinder); -
2. Re: SeamTest: @In not works
samdoyle Feb 24, 2010 3:25 AM (in response to mvlach)Actually scratch that, if Component.getInstance is working fine it should be available.
-
3. Re: SeamTest: @In not works
mvlach Feb 24, 2010 11:09 AM (in response to mvlach)In all jar which contains EJB with Seam anotation has to be this file:
/META-INF/ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0"> <interceptors> <interceptor> <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class> </interceptor> </interceptors> <assembly-descriptor> <interceptor-binding> <ejb-name>*</ejb-name> <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class> </interceptor-binding> </assembly-descriptor> </ejb-jar>