0 Replies Latest reply on Jun 16, 2005 8:50 AM by pjw

    MDB: programmatically setting clientID for durable topic

    pjw

      hello,
      I have an MDB which I would like to deploy on several clients, subscribing to a durable topic. In order for the topic to be durable, the clientId needs to be unique for each client.

      Is there a way to set the clientId programmatically when using MDB? Or is my only option to configure this in jboss.xml.

      In the latter case, I would have to deploy n different MDB's...
      If I could set the clientId programatically, I could use InetAddress.getHostName() and use the same MDB on all clients.

      Any help would be appreciated.

      cheers,
      pj