2 Replies Latest reply on Nov 16, 2006 3:20 AM by netcetera

    how to retrieve EJB Invocation Statistics with twiddle.sh?

    netcetera

      hi there

      i am desperately trying to access invocation statistics with the help of the twiddle.sh command line tool.

      i can access the bean stats, but not the invocation statistics.
      accessing the bean stats looks like this:

      twiddle.sh -s jnp://localhost:1099 get jboss.management.local:name=ejb/Dummy,J2EEServer=Local,EJBModule=dummy.jar,J2EEApplication=dummy.ear,j2eeType=StatelessSessionBean stats

      this gives me some bean statistics, however, i am unsucessful so far while trying to access the invocation statistics, which can be seen administrative console of jboss...

      i tried this:

      twiddle.sh -s jnp://localhost:1099 get jboss.j2ee:service=EJB,jndiName=ejb/Dummy InvokeStats

      but all i get is this exception:
      18:49:49,679 ERROR [Twiddle] Exec failed
      java.io.NotSerializableException: org.jboss.invocation.InvocationStatistics

      so this statistics are not serializable... is there any other way to collect the invocation statistics by twiddle.sh?

      many thanx, ramon