Statistics
| Branch: | Tag: | Revision:

root / gss / jboss / deploy / messaging / connection-factories-service.xml @ 09051786

History | View | Annotate | Download (6.2 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<!--
4
     Messaging Connection Factories deployment descriptor.
5

6
     $Id: connection-factories-service.xml 3332 2007-11-15 09:32:43Z timfox $
7
 -->
8

    
9
<server>
10

    
11
   <!-- The default connection factory does not support automatic failover or load balancing-
12
        this is so we can maintain compatiblity with applications written for JBoss MQ which use this
13
        connection factory.
14
   -->     
15
   <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
16
      name="jboss.messaging.connectionfactory:service=ConnectionFactory"
17
      xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
18
      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
19
      <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
20
      <depends>jboss.messaging:service=PostOffice</depends>
21
      
22
      <attribute name="JNDIBindings">
23
         <bindings>
24
            <binding>/ConnectionFactory</binding>
25
            <binding>/XAConnectionFactory</binding>
26
            <binding>java:/ConnectionFactory</binding>
27
            <binding>java:/XAConnectionFactory</binding>
28
         </bindings>
29
      </attribute>
30
   </mbean>
31

    
32
   <!-- A clustered connection factory that supports automatic failover and load balancing of created
33
        connections.
34
        This factory is not suitable to be used by MDBs.
35
   <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
36
      name="jboss.messaging.connectionfactory:service=ClusteredConnectionFactory"
37
      xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
38
      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
39
      <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
40
      <depends>jboss.messaging:service=PostOffice</depends>
41

42
      <attribute name="JNDIBindings">
43
         <bindings>
44
            <binding>/ClusteredConnectionFactory</binding>
45
            <binding>/ClusteredXAConnectionFactory</binding>
46
            <binding>java:/ClusteredConnectionFactory</binding>
47
            <binding>java:/ClusteredXAConnectionFactory</binding>
48
         </bindings>
49
      </attribute>
50

51
      <attribute name="SupportsFailover">true</attribute>
52
      <attribute name="SupportsLoadBalancing">true</attribute>      
53
   </mbean>
54
   -->
55
   
56
   <!-- A connection factory with no JNDI bindings that is used in clustering to create the connections that
57
        pull messages from one node to another
58
   <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
59
      name="jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory"
60
      xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
61
      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
62
      <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
63
      <depends>jboss.messaging:service=PostOffice</depends>
64
      <attribute name="SupportsFailover">false</attribute>
65
      <attribute name="SupportsLoadBalancing">false</attribute>      
66
   </mbean>
67
   -->
68
   
69
   <!-- An example connection factory with all attributes shown 
70
   
71
   <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
72
      name="jboss.messaging.connectionfactory:service=MyExampleConnectionFactory"
73
      xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
74
      
75
      <constructor>
76
      
77
         <!- - You can specify the default Client ID to use for connections created using this factory - -> 
78
         
79
         <arg type="java.lang.String" value="MyClientID"/>
80
         
81
      </constructor>
82
      
83
      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
84
      
85
      <!- - The transport to use - can be bisocket, sslbisocket or http - ->
86
      
87
      <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=http</depends>
88
      
89
      <depends>jboss.messaging:service=PostOffice</depends>
90
      
91
      <!- - PrefetchSize determines the approximate maximum number of messages the client consumer will buffer locally - ->
92
      
93
      <attribute name="PrefetchSize">150</attribute>
94
      
95
      <!- - Paging params to be used for temporary queues - ->
96
      
97
      <attribute name="DefaultTempQueueFullSize">200000</attribute>
98
      
99
      <attribute name="DefaultTempQueuePageSizeSize">2000</attribute>
100
      
101
      <attribute name="DefaultTempQueueDownCacheSize">2000</attribute>
102
      
103
      <!- - The batch size to use when using the DUPS_OK_ACKNOWLEDGE acknowledgement mode - ->
104
      
105
      <attribute name="DupsOKBatchSize">5000</attribute>
106
      
107
      <!- - Does this connection factory support automatic failover? - ->
108
      
109
      <attribute name="SupportsFailover">false</attribute>
110
      
111
      <!- - Does this connection factory support automatic client side load balancing? - ->
112
      
113
      <attribute name="SupportsLoadBalancing">false</attribute>  
114
            
115
      <!- - The class name of the factory used to create the load balancing policy to use on the client side - ->
116
      
117
      <attribute name="LoadBalancingFactory">org.jboss.jms.client.plugin.RoundRobinLoadBalancingFactory</attribute>  
118

119
      <!- - Whether we should be strict TCK compliant, i.e. how we deal with foreign messages, defaults to false- ->
120

121
      <attribute name="StrictTck">true</attribute>
122
      
123
      <!- - Should acknowledgements be sent asynchronously? - ->
124
      
125
      <attribute name="SendAcksAsync">false</attribute>
126
      
127
      <!- - Disable JBoss Remoting Connector sanity checks - There is rarely a good reason to set this to true - ->
128
      
129
      <attribute name="DisableRemotingChecks">false</attribute>
130

131
      <!- - The connection factory will be bound in the following places in JNDI - ->
132

133
      <attribute name="JNDIBindings">
134
      
135
         <bindings>
136
         
137
            <binding>/acme/MyExampleConnectionFactory</binding>
138
            
139
            <binding>/acme/MyExampleConnectionFactoryDupe</binding>
140
            
141
            <binding>java:/xyz/CF1</binding>
142
            
143
            <binding>java:/connectionfactories/acme/connection_factory</binding>
144
            
145
         </bindings>
146
         
147
      </attribute>   
148
       
149
   </mbean>
150
   
151
   -->
152

    
153
</server>