Hi,
I try to configure and use JMS with Seam and Jboss 5...
I write this file xml
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=achsSearch"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
</server>
and i write this lines in the component.xml ...
<jms:managed-queue-sender name="searchQueueSender" auto-create="true" queue-jndi-name="/queue/achsSearch" />
<jms:queue-connection queue-connection-factory-jndi-name="java:/JmsXA" />
and this is the Class without the needed import:
@Name("newSearch")
@Scope(ScopeType.CONVERSATION)
public class NewSearch {
@In
private QueueSender searchQueueSender;
@In(create = true)
private QueueSession queueSession;
public void submitSearch() {
try {
searchQueueSender.send(queueSession.createTextMessage("Pippo"));
} catch (Exception e) {
log.error(e.getMessage());
}
}
}
But i have this Error :
org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl cannot be cast to javax.jms.QueueConnectionFactory
what is wrong ??