0
주석을 통해 메시지 bean의 구성 이름을 지정하는 방법이 있습니까? jboss.xml
설명에서 당신은 다른 구성을 가질 수 있고 특정 설정에 콩을 결합 :Jboss Message Bean (EJB3) - 구성 이름
<message-driven>
<ejb-name>PushUserAgentBean</ejb-name>
<destination-jndi-name>queue/PushUserAgent</destination-jndi-name>
<configuration-name>My Custom Message Driven Bean</configuration-name>
</message-driven>
그런 다음 standardjboss.xml
당신이 "내 사용자 정의 메시지 구동 콩"구성 등 사용자 정의 인터셉터 스택을 지정할 수 있습니다 :
<container-configuration>
<container-name>My Custom Message Driven Bean</container-name>
<call-logging>false</call-logging>
<invoker-proxy-binding-name>custom-message-driven-bean</invoker-proxy-binding-name>
<container-interceptors>
<interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</interceptor>
주석을 사용하여 동일한 작업을 수행하는 간단한 방법이 있습니까? 나는 벤더에 특정한 주석 (즉, 비표준 jboss 주석)을 사용하는 것에 신경 쓰지 않는다.
어떤 버전의 JBoss, 4 또는 5입니까? – Yishai
JBoss 5를 사용하고 있습니다. –