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