Wow that is weird. Any idea how that could happen? I don't understand how putting the notification in or out of the transaction can affect the results of your test. For correctness case I think you must commit first then notify the agent, otherwise you risk the agent querying about a router that doesn't even exist yet in the DB. Also putting an RPC method in the transaction violates the cardinal rule of keeping transactions as short as possible.
Wow that is weird. Any idea how that could happen? I don't understand how putting the notification in or out of the transaction can affect the results of your test. For correctness case I think you must commit first then notify the agent, otherwise you risk the agent querying about a router that doesn't even exist yet in the DB. Also putting an RPC method in the transaction violates the cardinal rule of keeping transactions as short as possible.