Skip to main content

Connection to a remote JMS Queue

No replies
durgadeep
Offline
Joined: 2008-01-16

I am using the following version of GlassFish, is there a known issue with Annotations and Remote Q being broken ?.

asadmin> version
Version = Sun Java System Application Server 9.1_02
Command version executed successfully.

I have a MDB on my local instance of the glassfish on machine EARTH.

I have a remoteQ configured on a remote instance of SUN MQ 4.1 on JUPITER.

After setting the AddressList / creating the appropriate connection factories, the local MDB is trying to receive messages from the remoteQ on EARTH.

This used to work on EJB 2.x ( xml descriptor way ). But some how its broken now.

Our MDB using annotations look like this.

@MessageDriven(mappedName = RemoteQ, activationConfig = {
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic")
@ActivationConfigProperty(propertyName = "connectionFactoryJndiName", propertyValue = "jms/TopicConFactory)
@ActivationConfigProperty(propertyName="connectionFactoryJndiName", propertyValue="jms/TopicConnectionFactory"),
@ActivationConfigProperty(propertyName="destinationName", propertyValue="jms/myTopic"),
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic"),
}
)

Is there some thing wrong with this ?

Thanks in Advance