<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
configure dlq in ejb3-interceptors-aop.xml file
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/geneseo">Lee Gerakos</a> in <i>EJB 3.0</i> - <a href="http://community.jboss.org/message/537015#537015">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I've setup the SecurityStore used with JBoss Messaging to use an ldap based authentication security domain.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The "messaging" security domain allows for an "unauthenticatedIdentity" which is not possible with the login module I am using.  Instead I would like to specify the DLQUser and DLQPassword on a global basis.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I see that for ejb2, I can specify these parameters in the standardjboss.xml file that is in the conf directory.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>According to <a class="jive-link-external-small" href="http://www.jboss.org/ejb3/docs/tutorial/configuration/configuration.html">http://www.jboss.org/ejb3/docs/tutorial/configuration/configuration.html</a> the standardjboss.xml file is not used for ejb3.  So I am trying to understand how I can configure the ejb3-interceptors-aop.xml file to have the DLQUser and DLQPassword listed as a default when not overridden by the MDB itself.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I see how the existence of annotations can be used in "expr" attributes.  But I am not sure how to determine if a specific property is set.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So for example, if the MDB has the DLQUser/DLQPassword values set:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>@MessageDriven( activationConfig = {<br/>        @ActivationConfigProperty( propertyName = "destination", propertyValue = "/queue/MyDestination" ),<br/>        @ActivationConfigProperty( propertyName = "messageSelector", propertyValue = "service_msg_type = 'instance_state'" ),<br/>        @ActivationConfigProperty( propertyName = "providerAdapterJNDI", propertyValue="java:/RemoteJMSProvider"),<br/>        @ActivationConfigProperty( propertyName = "user", propertyValue = "foo" ),<br/>        <strong>@ActivationConfigProperty( propertyName = "DLQUser", propertyValue = "foo" ),<br/>        @ActivationConfigProperty( propertyName = "DLQPassword", propertyValue = "bar" ),</strong><br/>        @ActivationConfigProperty( propertyName = "password", propertyValue = "bar" ) } )</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I don't want to overwrite them.  But if they weren't specified, like below:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>@MessageDriven( activationConfig = {<br/>        @ActivationConfigProperty( propertyName = "destination", propertyValue = "/queue/MyDestination" ),<br/>        @ActivationConfigProperty( propertyName = "messageSelector", propertyValue = "service_msg_type = 'instance_state'" ),<br/>        @ActivationConfigProperty( propertyName = "providerAdapterJNDI", propertyValue="java:/RemoteJMSProvider"),<br/>        @ActivationConfigProperty( propertyName = "user", propertyValue = "foo" ),<br/>        @ActivationConfigProperty( propertyName = "password", propertyValue = "bar" ) } )</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>How do I inject them in the ejb3-interceptors-aop.xml file below:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><domain name="Message Driven Bean" extends="Intercepted Bean" inheritBindings="true"><br/>      <bind pointcut="execution(public * *->*(..))"><br/>         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/><br/>         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/><br/>      </bind><br/>      <!-- TODO: Authorization? --><br/>      <bind pointcut="execution(public * *->*(..))"><br/>         <interceptor-ref name="org.jboss.ejb3.tx.CMTTxInterceptorFactory"/><br/>         <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/><br/>         <interceptor-ref name="org.jboss.ejb3.tx.BMTTxInterceptorFactory"/><br/>         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/><br/>         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/><br/>         <!-- interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/ --><br/>         <stack-ref name="EJBInterceptors"/><br/>      </bind><br/>      <annotation expr="class(*) AND !class(@org.jboss.ejb3.annotation.Pool)"><br/>         @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=15, timeout=10000)<br/>      </annotation><br/>   </domain></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I also read through <a class="jive-link-external-small" href="http://docs.jboss.org/aop/1.3/aspect-framework/reference/en/html_single/index.html">http://docs.jboss.org/aop/1.3/aspect-framework/reference/en/html_single/index.html</a> but didn't see anything specific to annotations with properties being specified.  I see how to check for the existence of an annotation, just not one specified with values.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Any information is greatly appreciated.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks!</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/537015#537015">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB 3.0 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>