Hi,
I have the following scenario in which I am trying to deploy a MBD in jboss and getting error. I want to deploy two ear files in one Jboss instance. One of the ear has a MDB and the other ear is the main application ear. In the ‘login-config.xml’ file if I use ‘DatabaseServerLoginModule’ then I am able to deploy the ear containing MDB where as my other application ear does not get deployed and get a ejb spec violation error.
my entries in login-config.xml are
<!-- Security domain for JBossMQ
<application-policy name = "jbossmq">
<authentication>
<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginMo dule"
flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "dsJndiName">java:/HSQLDS</module-option>
<module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option>
<module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option>
</login-module>
</authentication>
</application-policy>
<!-- Security domain for JBossMQ when using file-state-service.xml
<application-policy name = "jbossmq">
<authentication>
<login-module code = "org.jboss.mq.sm.file.DynamicLoginModule"
flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "sm.objectname">jboss.mq:service=StateManager</module-option>
</login-module>
</authentication> -->
</application-policy>
please help
thanks!