1 Reply Latest reply on Oct 5, 2013 1:06 PM by chicha sonu

    Flush Connections Programatically

    chicha sonu Newbie


      i am new bie to Jboss 7.

      Earlier i have worked with jboss 4.x/5.x

      We use to have connections probelm with our applications.So we use to flush them programaticaly using the following code

      MBeanServer server = MBeanServerLocator.locateJBoss();
      .invoke(new ObjectName("jboss.jca:name=DefaultDS,service=ManagedConnectionPool"), "flush", [] as Object[], [] as String[]);

      Please some one suggest me in doing the similar kind of job in JBoss 7.1