This content has been marked as final.
Show 4 replies
-
1. Re: subscription & client id: does not allow dots
sergeypk Jul 3, 2007 7:22 AM (in response to mskonda)I have trouble coming up with a failing test for this. This is what I tried (and it passed):
public void testDurableSubscriptionWithPeriodsInName() throws Exception { ConnectionFactory cf = (ConnectionFactory)ic.lookup("ConnectionFactory"); Topic topic = (Topic)ic.lookup("/topic/Topic"); Connection conn = cf.createConnection(); conn.setClientID(".client.id.with.periods."); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); TopicSubscriber subscriber = s.createDurableSubscriber(topic, ".subscription.name.with.periods."); s.createProducer(topic).send(s.createTextMessage("Subscription test")); conn.start(); Message m = subscriber.receive(1000L); assertNotNull(m); assertTrue(m instanceof TextMessage); subscriber.close(); s.unsubscribe(".subscription.name.with.periods."); conn.close(); }
-
2. Re: subscription & client id: does not allow dots
timfox Jul 3, 2007 7:31 AM (in response to mskonda)Madhu- please post your full stack trace - just the error message doesn't give us much to go on.
-
3. Re: subscription & client id: does not allow dots
sergeypk Jul 3, 2007 7:34 AM (in response to mskonda)I got it - have to undeploy/redeploy the topic to get the error.
-
4. Re: subscription & client id: does not allow dots
sergeypk Jul 3, 2007 8:01 AM (in response to mskonda)Fixed. http://jira.jboss.com/jira/browse/JBMESSAGING-1008 is the issue, for future reference.