What is the "java:" prefix when looking for a name in jboss?

I ran an application deployed on a JBoss server in which there were jboss-messaging deployments. The application tried to connect to the jbossmq node deployed to another JBoss server. I tried using a different JNDI factory connection name to create the connection and got different results.

1) factory connection is "XAConnectionFactory". In this situation, the application can successfully connect to the jbossmq destination deployed to the remote JBoss server.

2) the factory connection is "java: / XAConnectionFactory". In this situation, the connection cannot be created. An exception means that the destination was not a javax.jms.Destination object.

I assume that in situation # 2, the factory connection in the local JVM (i.e. jboss contains jboss-messaging deployments) was used to connect to the remote jbossmq node. But I can’t prove it.

Does anyone know the use of the "java:" prefix in this case? It is better to give some recommendations on this topic, since I searched a lot, but could not find the answer :)

Thanks in advance.

+4
source share

All Articles