Is it possible to virtualize only some (not all) methods of an EJB? If so, what precautions should we take for the not-included methods?
Which version of DevTest are you using?
I don't know if it works, but I would try to setup the service image just with the methods that you want to virtualize with the configuration NO_HIJACK instead of NO_MATCH.
If you try it, let us know if it work.
We used this option and it worked!
Didn't find more/better explanation about this configuration on the documentation though!!
From DevTest Portal, when you create a Virtual Service for the specific transaction (ex. EJB3UserControlBean.listUsers) in the Shelf, you have the option "Bypass Virtual Service" instead of "Report No Match".
That will use the virtualized response for "listUsers" method and the Original EJB for the rest of the EJB methods.Bypass Virtual Service: "Allows the original request to pass straight through, as if the class and method were not virtualized at all."
I've tried it using the DevTest examples project.
Do we have that option on the Workstation? I can't seem to find it
Instead of using CAI to record the transactions you can use the VSE Recorder with Java Transport Protocol, selecting the class to observe.
With the image recorded in the "Response for unknown.." section you should write what jacfe02 wrote:
"NO_HIJACK instead of NO_MATCH."
I've tried with the same example and worked.
Let me know if you need more help.
Retrieving data ...