4 Replies Latest reply on Feb 20, 2008 11:03 AM by adrian.brock

    Automatic topic creation & deletion through EJBSessionBean.

      Hi
      I have big question like how to Automatic topic creation & deletion through EJBSessionBean, It can similer in Weblogic like

      ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
      ht.put(Context.PROVIDER_URL, url);
      ht.put(Context.SECURITY_PRINCIPAL, user1);
      ht.put(Context.SECURITY_CREDENTIALS, pass1);

      iniCtx=new InitialContext(ht);

      JMSModuleHelper.deleteTopic(iniCtx,"Module",topicName);

      and as well as
      JMSModuleHelper.createTopic(iniCtx,"Module",jmsServer,topicName,topicName);


      If possible in JBOSS server side. please provide API and small sample peases.


      Best regards

      P.Sasikumar
      Ellaar ,Chennai