Statistics
| Branch: | Tag: | Revision:

root / jboss / deploy / messaging / messaging-jboss-beans.xml @ 517:2b4539e4de83

History | View | Annotate | Download (4 kB)

1 1:e7bf0801e8c6 pastith
<?xml version="1.0" encoding="UTF-8"?>
2 1:e7bf0801e8c6 pastith
3 1:e7bf0801e8c6 pastith
<!--
4 1:e7bf0801e8c6 pastith
    Messaging beans
5 517:2b4539e4de83 pastith
    $Id: messaging-jboss-beans.xml 88672 2009-05-11 20:49:47Z anil.saldhana@jboss.com $
6 1:e7bf0801e8c6 pastith
-->
7 1:e7bf0801e8c6 pastith
<deployment xmlns="urn:jboss:bean-deployer:2.0">
8 1:e7bf0801e8c6 pastith
9 1:e7bf0801e8c6 pastith
   <!-- messaging application-policy definition -->
10 1:e7bf0801e8c6 pastith
   <application-policy xmlns="urn:jboss:security-beans:1.0" name="messaging">
11 1:e7bf0801e8c6 pastith
      <authentication>
12 1:e7bf0801e8c6 pastith
         <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
13 1:e7bf0801e8c6 pastith
            <module-option name="unauthenticatedIdentity">guest</module-option>
14 1:e7bf0801e8c6 pastith
            <module-option name="dsJndiName">java:/DefaultDS</module-option>
15 1:e7bf0801e8c6 pastith
            <module-option name="principalsQuery">SELECT PASSWD FROM JBM_USER WHERE USER_ID=?</module-option>
16 1:e7bf0801e8c6 pastith
            <module-option name="rolesQuery">SELECT ROLE_ID, 'Roles' FROM JBM_ROLE WHERE USER_ID=?</module-option>
17 1:e7bf0801e8c6 pastith
         </login-module>
18 1:e7bf0801e8c6 pastith
      </authentication>
19 1:e7bf0801e8c6 pastith
   </application-policy>
20 1:e7bf0801e8c6 pastith
21 1:e7bf0801e8c6 pastith
   <bean name="SecurityStore" class="org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore">
22 1:e7bf0801e8c6 pastith
      <!-- default security configuration -->
23 1:e7bf0801e8c6 pastith
      <property name="defaultSecurityConfig">
24 1:e7bf0801e8c6 pastith
         <![CDATA[
25 1:e7bf0801e8c6 pastith
            <security>
26 1:e7bf0801e8c6 pastith
               <role name="guest" read="true" write="true" create="true"/>
27 1:e7bf0801e8c6 pastith
            </security>
28 1:e7bf0801e8c6 pastith
         ]]>
29 1:e7bf0801e8c6 pastith
      </property>
30 1:e7bf0801e8c6 pastith
      <property name="suckerPassword">$uck3r</property>
31 1:e7bf0801e8c6 pastith
      <property name="securityDomain">messaging</property>
32 1:e7bf0801e8c6 pastith
      <property name="securityManagement"><inject bean="JNDIBasedSecurityManagement"/></property>
33 1:e7bf0801e8c6 pastith
      <!-- @JMX annotation to export the management view of this bean -->
34 1:e7bf0801e8c6 pastith
      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.messaging:service=SecurityStore",exposedInterface=org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStoreMBean.class)</annotation>
35 517:2b4539e4de83 pastith
      <!-- Password Annotation to inject the password from the common password utility
36 517:2b4539e4de83 pastith
       <annotation>@org.jboss.security.integration.password.Password(securityDomain="messaging",methodName="setSuckerPassword")</annotation>
37 517:2b4539e4de83 pastith
       -->
38 1:e7bf0801e8c6 pastith
   </bean>
39 1:e7bf0801e8c6 pastith
40 517:2b4539e4de83 pastith
   <bean name="MessagingDeploymentTemplateInfoFactory"
41 517:2b4539e4de83 pastith
      class="org.jboss.managed.plugins.factory.DeploymentTemplateInfoFactory"/>
42 517:2b4539e4de83 pastith
43 1:e7bf0801e8c6 pastith
   <bean name="QueueTemplate" class="org.jboss.profileservice.management.templates.JmsDestinationTemplate">
44 1:e7bf0801e8c6 pastith
      <property name="info"><inject bean="QueueTemplateInfo"/></property>
45 1:e7bf0801e8c6 pastith
   </bean>
46 1:e7bf0801e8c6 pastith
   <bean name="QueueTemplateInfo"
47 1:e7bf0801e8c6 pastith
      class="org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo">
48 517:2b4539e4de83 pastith
      <constructor factoryMethod="createTemplateInfo">
49 517:2b4539e4de83 pastith
         <factory bean="DSDeploymentTemplateInfoFactory"/>
50 517:2b4539e4de83 pastith
         <parameter class="java.lang.Class">org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo</parameter>
51 517:2b4539e4de83 pastith
         <parameter class="java.lang.Class">org.jboss.jms.server.destination.QueueServiceMO</parameter>
52 517:2b4539e4de83 pastith
         <parameter class="java.lang.String">QueueTemplate</parameter>
53 517:2b4539e4de83 pastith
         <parameter class="java.lang.String">A template for JMS queue *-service.xml deployments</parameter>
54 1:e7bf0801e8c6 pastith
      </constructor>
55 517:2b4539e4de83 pastith
      <property name="destinationType">QueueTemplate</property>
56 1:e7bf0801e8c6 pastith
   </bean>
57 1:e7bf0801e8c6 pastith
58 1:e7bf0801e8c6 pastith
   <bean name="TopicTemplate" class="org.jboss.profileservice.management.templates.JmsDestinationTemplate">
59 1:e7bf0801e8c6 pastith
      <property name="info"><inject bean="TopicTemplateInfo"/></property>
60 1:e7bf0801e8c6 pastith
   </bean>
61 1:e7bf0801e8c6 pastith
   <bean name="TopicTemplateInfo"
62 1:e7bf0801e8c6 pastith
      class="org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo">
63 517:2b4539e4de83 pastith
      <constructor factoryMethod="createTemplateInfo">
64 517:2b4539e4de83 pastith
         <factory bean="DSDeploymentTemplateInfoFactory"/>
65 517:2b4539e4de83 pastith
         <parameter class="java.lang.Class">org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo</parameter>
66 517:2b4539e4de83 pastith
         <parameter class="java.lang.Class">org.jboss.jms.server.destination.TopicServiceMO</parameter>
67 517:2b4539e4de83 pastith
         <parameter class="java.lang.String">TopicTemplate</parameter>
68 517:2b4539e4de83 pastith
         <parameter class="java.lang.String">A template for JMS topic *-service.xml deployments</parameter>
69 1:e7bf0801e8c6 pastith
      </constructor>
70 517:2b4539e4de83 pastith
      <property name="destinationType">TopicTemplate</property>
71 1:e7bf0801e8c6 pastith
  </bean>
72 1:e7bf0801e8c6 pastith
73 1:e7bf0801e8c6 pastith
</deployment>