Glassfish JMS queue creation issues

I am getting the following error while deploying my application with JMS producer and consumer

com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : QueueName

      

I used the annotations below:

Producer

@Resource(name = "jms/EmailNotificationQueue", mappedName = "EmailNotificationQueue")
private Destination destination;

@Resource(name = "jms/QueueConnectionFactory")
private ConnectionFactory connectionFactory;

      

Then I create a connection and run it before sending the message

Consumer

@MessageDriven(name = "EmailNotificationBean", activationConfig = {                                           
@ActivationConfigProperty(                                  
    propertyName="destinationType",                         
    propertyValue="javax.jms.Queue"),                       
@ActivationConfigProperty(                                  
    propertyName="destinationName",                         
    propertyValue="EmailNotificationQueue"),
@ActivationConfigProperty(
    propertyName="acknowledgeMode",
    propertyValue="CLIENT_ACKNOWLEDGE")

}   
,mappedName = "EmailNotificationQueue"                                                                               
)   

      

+2


a source to share


1 answer


Have you manually created a destination?



Log in to the admin console, deploy resource, JMS resources, then target resources. You might also need to create a factory connection.

+1


a source







All Articles