users@jms-spec.java.net

[jms-spec users] What is the expected value returned by setClientID when client identifier is unset?

From: Chris Barrow <chris.barrow_at_kaazing.com>
Date: Fri, 06 Jul 2012 12:40:13 -0700

Hi,

For durable subscribers the spec says "A durable subscription is
identified by a name specified by the client and by the client
identifier*if set*.". This raises the question of how to detect if the
client identifier is set. The obvious way is to call the getClientID
method on Connection. But what value should we expect that method to
return if the client identifier is not set? Null or the empty string
("") or either? I would suggest it would be worth clarifying this in the
spec.

Thanks,
Chris Barrow
Kaazing Corporation