chepseskaf
chepseskaf

Reputation: 664

How to determine messageType interface for MDB

A MessageDriveBean implement another interface in addition to MessageListener. This provide an exception at deployement:

Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container MyQueue: Unable to choose messagingType interface for MDB MyQueue from [interface IMessageVisitor, interface javax.jms.MessageListener]

Any idea to specify the messageType interface ?

Upvotes: 1

Views: 549

Answers (1)

chepseskaf
chepseskaf

Reputation: 664

I should explicitely mention the messaging type (found from jboss forum)

@MessageDriven(messageListenerInterface=MessageListener.class)

Upvotes: 1

Related Questions