Create Virtual Services from EJB Transactions
Last update January 22, 2015
Use the following procedure to create a virtual service from a set of EJB transactions in the CAI database.
All methods of the same EJB are virtualized.
A virtual service includes the responses that are sent for unknown conversational requests and unknown stateless requests. When you create a virtual service, you can configure the body of these responses. The following list describes the options:
- Report "No Match"
Causes an exception to be raised in the virtualized application.
- Bypass Virtual Service
Allows the original request to pass straight through, as if the class and method were not virtualized at all.
Follow these steps:
- Add an EJB transaction frame to the shelf.
- Open the shelf.
- Click Create VS.
- To change the default name, select the name and make your edits, then click to save.
- If you want all transactions to be treated as stateless, ensure that the check box is selected.
- Configure the response for unknown requests.
- To view the consolidated transactions, click
- To delete a consolidated transaction, click
- Click Create.
- Select the project where the virtual service will be created.
- (Optional) Edit name prefix. The default prefix is the user name.
- Select an option to keep or delete the transactions in the shelf once the VS is created.
- Click Create.
Example: EJB User Control Bean
The following graphic shows a path graph that includes EJB components. The Shelve All Occurred Transactions action has been applied to one of the getUser() components.
The following graphic shows the service image that was generated. The service image contains a stateless transaction. Notice that multiple methods are virtualized.
In the virtual service model, the Virtual Java Listener step contains the agent name and the EJB name.
Was this helpful?
Thank you for your feedback.