JBossTemporaryTopic topic = new JBossTemporaryTopic(connectionDelegate); connectionDelegate.addTemporaryDestination(topic);
JBossTemporaryTopic topic = new JBossTemporaryTopic(sessionDelegate); sessionDelegate.addTemporaryDestination(topic);
   public TemporaryTopic createTemporaryTopic() throws JMSException   {      //As per spec. section 4.11      if (sessionType == TYPE_QUEUE_SESSION)      {         throw new IllegalStateException("Cannot create a temporary topic on a QueueSession");      }      JBossTemporaryTopic topic = new JBossTemporaryTopic(connectionDelegate);      connectionDelegate.addTemporaryDestination(topic);      return topic;   }