I am not sure that this is what you are asking, but the JMS connection
factory is application specific. Meaning that each app server will construct
it's JMS connections and infrastructure differently. 

In Jboss, you configure the connection factories in the jboss.jcml and Jboss
creates them.

---- start jboss.jcml snippet ----


  <!-- InvocationLayers are the different transport methods that can be used
to access the server -->
  <mbean code="org.jboss.mq.il.jvm.JVMServerILService"
name="JBossMQ:service=InvocationLayer,type=JVM">
    <attribute
name="ConnectionFactoryJNDIRef">java:/ConnectionFactory</attribute>
    <attribute
name="XAConnectionFactoryJNDIRef">java:/XAConnectionFactory</attribute>
  </mbean>

  <mbean code="org.jboss.mq.il.rmi.RMIServerILService"
name="JBossMQ:service=InvocationLayer,type=RMI">
    <attribute
name="ConnectionFactoryJNDIRef">RMIConnectionFactory</attribute>
    <attribute
name="XAConnectionFactoryJNDIRef">RMIXAConnectionFactory</attribute>
  </mbean>

  <mbean code="org.jboss.mq.il.oil.OILServerILService"
name="JBossMQ:service=InvocationLayer,type=OIL">
    <attribute name="ConnectionFactoryJNDIRef">ConnectionFactory</attribute>
    <attribute
name="XAConnectionFactoryJNDIRef">XAConnectionFactory</attribute>
  </mbean>

  <mbean code="org.jboss.mq.il.uil.UILServerILService"
name="JBossMQ:service=InvocationLayer,type=UIL">
    <attribute
name="ConnectionFactoryJNDIRef">UILConnectionFactory</attribute>
    <attribute
name="XAConnectionFactoryJNDIRef">UILXAConnectionFactory</attribute>
  </mbean>

---- end jboss.jcml snippet ------

        This will create four different connection factories: one that is
for only internal JVM access, one for RMI access, one for Jboss' OIL
protocol, and one for Jboss' UIL protocol. All of these impelement the
javax.jms.Connectionfactor interface. They will give you access to the Jboss
specific connection which implements javax.jms.Connection and will know how
to access the Jboss specific ConnectionFactories.

        So the long and short of it is, the ConnectionFactories are services
that you configure Jboss to instantiate for you and you access them via
Registry lookups like all other resources in Jboss. But you don't directly
insantiate the ConnectionFactory yourself.

        I hope that helps,
        Lucas McGregor, NovaLogic

 

        The 
-----Original Message-----
From: Nicholas [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 7:20 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Constructor for JBossMQ ConnectionFactories


In order to load a JBossMQ topic connection factory
into JNDI on another application server or LDAP, I
think the easiest way is to construct one. Despite
many examples of how to retrieve connection factories
from JBoss JNDI, I cannot find any examples or Docs on
how to constrcut one, stand alone.

Thanks for you help.

//Nicholas

=====
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
Work(@ JP Morgan): (212) 235 5783
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to