java代碼: |
<?xml version="1.0" encoding="UTF-8"?> <!-- $Id: jbossmq-destinations-xpetstore-service.xml,v 1.0 2003-8-11 15:47 et Exp $ --> <server> <!-- Destination without a configured SecurityManager or without a a SecurityConf will default to role guest with read=true, write=true, create=false. --> <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=order"> <attribute name="JNDIName">queue/order</attribute> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> </mbean> <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=mail"> <attribute name="JNDIName">queue/mail</attribute> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> </mbean> </server> |
java代碼: |
<?xml version="1.0" encoding="UTF-8"?> <!-- $Id: mysql-ds.xml,v 1.0 2003-8-11 15:56 et Exp $ --> <datasources> <local-tx-datasource> <depends>jboss:service=Hypersonic</depends> <jndi-name>xpetstoreDS</jndi-name> <connection-url>jdbc:mysql://localhost/xpetstore</connection-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <user-name>thatway</user-name> <password>thatway</password> <min-pool-size>5</min-pool-size> <security-domain>HsqlDbRealm</security-domain> </local-tx-datasource> <!-- this mbean should be used only when using tcp connections --> <mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic"> <attribute name="Port">1701</attribute> <attribute name="Silent">true</attribute> <attribute name="Database">default</attribute> <attribute name="Trace">false</attribute> <attribute name="No_system_exit">true</attribute> </mbean> </datasources> |
java代碼: |
<server> <classpath codebase="lib" archives="mail.jar, activation.jar, mail-plugin.jar"/> <mbean code="org.jboss.mail.MailService" name="jboss:service=Mail"> <attribute name="JNDIName">Mail</attribute> <attribute name="User">your-user-name</attribute> <attribute name="Password">your-password</attribute> <attribute name="Configuration"> <configuration> <property name="mail.store.protocol" value="pop3"/> <property name="mail.transport.protocol" value="smtp"/> <property name="mail.user" value="your-username"/> <property name="mail.pop3.host" value="your-pop3-host"/> <property name="mail.smtp.host" value="your-smtp-host"/> <property name="mail.from" value="noreply@xpetstore.sourceforge.net"/> <property name="mail.debug" value="false"/> </configuration> </attribute> </mbean> </server> |
java代碼: |
<!-- Added by thatway 2003-8-5 13:40--> <metainf dir="${web.dir}/META-INF"> <include name="**/*" /> </metainf> <!-- END --> |
java代碼: |
<application-policy name = "MysqlDbRealm"> <authentication> <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required"> <module-option name = "principal"></module-option> <module-option name = "userName"></module-option> <module-option name = "password"></module-option> <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=xpetstoreDS</module-option> </login-module> </authentication> </application-policy> |