[jboss-svn-commits] JBL Code SVN: r20179 - labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue May 27 08:26:49 EDT 2008
Author: beve
Date: 2008-05-27 08:26:49 -0400 (Tue, 27 May 2008)
New Revision: 20179
Added:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/messaging-db-users-service.xml
Modified:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/build.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/deployment.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/readme.txt
Log:
Work for JBESB-1639 "jms_secured quickstart does not work in the SOA platform"
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/build.xml 2008-05-27 11:13:44 UTC (rev 20178)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/build.xml 2008-05-27 12:26:49 UTC (rev 20179)
@@ -4,6 +4,8 @@
${ant.project.name}
${line.separator}
</description>
+
+ <property name="additional.deploys" value="messaging-db-users-service.xml" />
<!-- Import the base Ant build script... -->
<import file="../conf/base-build.xml"/>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/deployment.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/deployment.xml 2008-05-27 11:13:44 UTC (rev 20178)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/deployment.xml 2008-05-27 12:26:49 UTC (rev 20179)
@@ -1,4 +1,5 @@
<jbossesb-deployment>
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_jms_secured_Request_esb</depends>
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_jms_secured_Request_gw</depends>
+ <depends>jboss.messaging:service=JMSSecuredQuickstartUserManager</depends>
</jbossesb-deployment>
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/messaging-db-users-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/messaging-db-users-service.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/messaging-db-users-service.xml 2008-05-27 12:26:49 UTC (rev 20179)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+
+ <mbean code="org.jboss.jms.server.plugin.JDBCJMSUserManagerService"
+ name="jboss.messaging:service=JMSSecuredQuickstartUserManager"
+ xmbean-dd="xmdesc/JMSUserManager-xmbean.xml">
+
+ <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
+
+ <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
+
+ <attribute name="DataSource">java:/DefaultDS</attribute>
+
+ <attribute name="CreateTablesOnStartup">true</attribute>
+
+ <attribute name="SqlProperties"><![CDATA[
+POPULATE.TABLES.1 = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('esbuser', 'esbpassword')
+POPULATE.TABLES.2 = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('gatewayuser', 'gwpassword')
+POPULATE.TABLES.3 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('esbrole','esbuser')
+POPULATE.TABLES.4 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('gatewayrole','gatewayuser')
+ ]]></attribute>
+ </mbean>
+
+</server>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/readme.txt
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/readme.txt 2008-05-27 11:13:44 UTC (rev 20178)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_secured/readme.txt 2008-05-27 12:26:49 UTC (rev 20179)
@@ -49,5 +49,10 @@
3. jboss-esb.xml
The message-filter for the jms-bus now specifies 'jms-security-principal' and
'jms-security-credential'
-
-
+ 4. messaging-users.properties and messaging-roles.properties
+ Simple properties files which are used when JBoss Messaging is configured for property file
+ based authentication. These files are copied to the conf/props directory of the jbossesb server
+ in use.
+ 5. messaging-db-users.properties
+ Is a jboss service that insert users and roles into the JBoss Messaging database. This is only used when JBoss
+ Messaging is configured to use a database for managing users and roles.
More information about the jboss-svn-commits
mailing list