0
我尝试在“行动EJB3”的例子在GlassFish应用服务器(第2章的例子),它有一个MDB从而未能与JMS资源不创建
JMS resource not created : OrderBillingQueue
我已经创建的连接错误部署资源和目的地资源在其他职位的建议,但错误依然存在。请帮我解决这个问题。
这里是在GlassFish中创建的JMS资源的快照
的源代码的相关部分:MDB
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName="destinationName", propertyValue="OrderBillingQueue"),
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue")
},mappedName = "OrderBillingQueue"
)
public class OrderBillingMDB implements MessageListener {
源的相关部分代码:资源注入部分
@Resource(name = "jms/QueueConnectionFactory")
private ConnectionFactory connectionFactory;
@Resource(name = "jms/OrderBillingQueue", mappedName="OrderBillingQueue")
private Destination billingQueue;