Pasta Farian [
http://community.jboss.org/people/pastafarian] replied to the discussion
"java.lang.IllegalStateException: Should not have null domainName for scoped
bean"
To view the discussion, visit:
http://community.jboss.org/message/538848#538848
--------------------------------------------------------------
More information...
Here is my jboss-aop.xml which is placed in the META-INF directory of the war file. The
war file is one of several independent war files in the EAR file.
<aop xmlns="urn:jboss:aop-beans:1.0">
<interceptor/>
<bind pointcut="execution(* com.acme.*->*(..))">
<interceptor-ref name="com.intuit.loghub.aop.LogInterceptor"/>
</bind>
</aop>
I tried putting a <domain name="TestDomain> element around the <bind>
element but I still got the same exception above.
I found a mention of Domain in the EJB3 Customized deployment docs:
http://www.jboss.org/ejb3/docs/tutorial/configuration/configuration.html
http://www.jboss.org/ejb3/docs/tutorial/configuration/configuration.html
h3. Domains
The <domain ... /> elements configure the server side. There is a default domain
for each bean type. This is where the server side interceptor chains are defined using the
AOP Pointcut Language (i.e. <bind pointcut="..." />). Please see the AOP
documentation for more information on the Pointcut Language. The Domains are also used to
introduce default annotations and thus create default behavior for each of the bean types.
For example, take a look at the "Stateless Bean" domain. Notice that through
the <annotation expr="..." /> element, a default
@org.jboss.annotation.ejb.PoolClass is created for each stateless session bean that does
not explicitly define a @org.jboss.annotation.ejb.PoolClass annotation on the class.
Except the war file in question doesn't have any EJBs in it! It's just a resteasy
servlet and supporting code.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/538848#538848]
Start a new discussion in JBoss AOP at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]