[jboss-user] [Messaging, JMS & JBossMQ] - Durable Topic that is password protected in EJB 3.

foxviewn2632 do-not-reply at jboss.com
Tue Aug 15 11:29:38 EDT 2006


How do you annotate for a password if the topics client id is pasword protected.  I annotated my bean as follows:

@MessageDriven(
    description="My Message driven bean to test JMS implementation. ",
    name="PubMan",
    activationConfig={
        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic")
        , at ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/SmithfieldDurableTopic") 
        , at ActivationConfigProperty(propertyName="Durability",propertyValue="Durable")//subscription
        , at ActivationConfigProperty(propertyName="subscriptionName",propertyValue = "john")
        , at ActivationConfigProperty(propertyName="clientID",propertyValue = "DurableSubscriberExample")
        , at ActivationConfigProperty(propertyName="acknowledgeMode",propertyValue = "AUTO-ACKNOWLEDGE")
    }
)

I have the client Id set but how do I put a password into this?  Below is the error message.


2006-08-15 10:27:19,381 WARN  [org.jboss.ejb3.mdb.MDB] JMS provider failure detected: 
javax.jms.InvalidClientIDException: This client id is password protected DurableSubscriberExample
	at org.jboss.mq.sm.jdbc.JDBCStateManager.checkLoggedOnClientId(JDBCStateManager.java:308)
	at org.jboss.mq.sm.AbstractStateManager.addLoggedOnClientId(AbstractStateManager.java:199)
	at org.jboss.mq.server.JMSDestinationManager.checkID(JMSDestinationManager.java:384)
	at org.jboss.mq.server.JMSServerInterceptorSupport.checkID(JMSServerInterceptorSupport.java:138)
	at org.jboss.mq.server.TracingInterceptor.checkID(TracingInterceptor.java:226)
	at org.jboss.mq.server.JMSServerInvoker.checkID(JMSServerInvoker.java:139)
	at org.jboss.mq.il.jvm.JVMServerIL.checkID(JVMServerIL.java:204)
	at org.jboss.mq.Connection.setClientID(Connection.java:508)
	at org.jboss.ejb3.mdb.MDB.innerCreateTopic(MDB.java:463)
	at org.jboss.ejb3.mdb.MDB.innerCreate(MDB.java:342)
	at org.jboss.ejb3.mdb.MDB.innerStart(MDB.java:225)
	at org.jboss.ejb3.mdb.MDB$ExceptionListenerImpl.onException(MDB.java:1133)
	at org.jboss.ejb3.mdb.MDB$1.run(MDB.java:237)
2006-08-15 10:27:19,381 INFO  [org.jboss.ejb3.mdb.MDB] Trying to reconnect to JMS provider


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965296#3965296

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965296



More information about the jboss-user mailing list