[jboss-user] [JNDI/Naming/Network] - about overrive MDB configuration

ssang do-not-reply at jboss.com
Mon Dec 15 04:34:20 EST 2008


when i override  MDB configuration, I got some exception in Jboss 5.0GA
2008-12-15 13:17:27,730 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Create: name=jboss.j2ee:jndiName=local/ProcessEventMDB at 17108998,service=EJB state=Configured mode=Manual requiredState=Create
java.lang.UnsupportedOperationException: Message driven beans are not bound into remote jndi
	at org.jboss.metadata.MessageDrivenMetaData.getJndiName(MessageDrivenMetaData.java:400)
	at org.jboss.ejb.plugins.MetricsInterceptor.setContainer(MetricsInterceptor.java:96)
	at org.jboss.ejb.MessageDrivenContainer.createService(MessageDrivenContainer.java:236)
	at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:344)
	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:320)
	at sun.reflect.GeneratedMethodAccessor351.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)



My ejb--jar.xml is:
	<message-driven>
			<ejb-name>ProcessEventMDB</ejb-name>
			<ejb-class>com.syn.ProcessEventMDB</ejb-class>
			<transaction-type>Bean</transaction-type>
			<message-driven-destination>
				<destination-type>javax.jms.Queue</destination-type>
			</message-driven-destination>
		</message-driven>

the jboss.xml :
<message-driven>
			<ejb-name>ProcessEventMDB</ejb-name>
			<destination-jndi-name>queue/SynProcess</destination-jndi-name>
            <configuration-name>ProcessEvent MDB Config</configuration-name>
		</message-driven>



 <container-configuration>
           <container-name>ProcessEvent MDB Config</container-name>
		    <call-logging>false</call-logging>

           <container-interceptors>
             org.jboss.ejb.plugins.LogInterceptor
             org.jboss.ejb.plugins.SecurityInterceptor
             <!-- CMT -->
             org.jboss.ejb.plugins.TxInterceptorCMT
             org.jboss.ejb.plugins.MetricsInterceptor
             org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
             <!-- BMT -->
             org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
             org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
             org.jboss.ejb.plugins.MetricsInterceptor
           </container-interceptors>
           <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
           <container-pool-conf>
           1
           15
           true          
           </container-pool-conf>
        </container-configuration>

If i delete the node definition " org.jboss.ejb.plugins.MetricsInterceptor" , the ear file can be deployed successfully? But i don't know why?




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196483#4196483

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196483



More information about the jboss-user mailing list