byteman

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

byteman

Ravi Gupta
I am having trouble using byteman, the rule seems to load, but simply won't fire

AS7 startup log
17:08:31,523 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-5) JBoss Web Services - Stack CXF Server 4.0.4.GA-redhat-1
17:08:31,638 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http-/127.0.0.1:8080
17:08:31,785 INFO  [stdout] (MSC service thread 1-5) org.jboss.byteman.agent.Transformer : possible trigger for rule Set URLDelimiter in class org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory
17:08:31,812 INFO  [stdout] (MSC service thread 1-5) RuleTriggerMethodAdapter.injectTriggerPoint : inserting trigger into org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.initSelector() void for rule Set URLDelimiter
17:08:31,833 INFO  [stdout] (MSC service thread 1-5) org.jboss.byteman.agent.Transformer : inserted trigger for Set URLDelimiter in class org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory


test1.btm (rule)
RULE Set URLDelimiter
CLASS org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory
METHOD initSelector
AT ENTRY
IF true
DO traceln("************************************************")
ENDRULE


When I configure and test a XA datasource, nothing gets printed?

Regards


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: byteman

CobraFlow
Did you ever get this sorted?

I ran into the same/similar problem.

My cause was that I was adding JAVA_OPTS manually and this overrides the default which includes :-

-Djboss.modules.system.pkgs=org.jboss.byteman

...which is required!

Cheers