This demo demonstrates the power of SESJ J2EE integration.
Within the demo, the clients (Excel worksheet, .NET Windows Form client and ASP.NET Web Form client) invoke an EJB service over SOAP under JTA in user transactions.
There are two accounts: Mr. Corleone's account and Mr. Tattaglia's account. Mr. Tattaglia owes some money to Mr. Corleone (list of his debts is mentioned) and he wants to pay his work debts first (there are two packages of debts named "work debts" and "other debts").
In technical terms, it means that the first package of bank transfers is made in one transaction. This transaction is commited because there is enough money in Mr. Tattaglia's account to finish all the bank transfers successfully. He then tries to repay the second list of debts, but his account balance is too low to cover rest of his debts. Technically, this transaction has to be rolled back because of the bank transfer failure.
In addition to the files described in Files and Directories, this demo contains:
File or directory | Description |
---|---|
src\client\ | .NET Windows Form C# client source code |
src\webClient | ASP.NET Web Form code |
AccountEjbClient.xls | MS Excel worksheet client |
The following list outlines the software and service packs that you will need to be able to compile and run CSharp clients, access the features of ASP.NET and use Excel worksheet:
Microsoft .NET Framework and .NET Framework SDK.
Microsoft SOAP Toolkit 3 (for the Excel worksheet client).
IIS with the latest security updates (must be installed prior to installing the .NET Framework and .NET Framework SDK).
In addition, you will need administrative rights on the computer and WSO2 server deployed together with the demo EJBs in an application server. In addition, the ejbWebService demo must be executed before you can run this demo. See the "Porting SESJ" chapter of the documentation for further information.
Open:
%WASP_HOME%\demo\interop\msInterop\j2ee\ejbUnderJta\AccountEjbClient.xls
Change directory to:
%WASP_HOME%\demo\interop\msInterop\j2ee\ejbUnderJta
Make the client by typing run.bat make_client.
Run the client by typing run.bat run_client.
1. Create a Virtual Folder in IIS by doing the following:
Click Start, point to Programs, select , and then click on Internet Services Manager.
In the left pane, right-click Default Web Site, point to New, and then click Virtual Directory.
In the first screen of the Virtual Directory Creation Wizard click Next, type an alias for the site (EjbUnderJtaWebClient) and click Next.
In the third screen, click Browse. Browse to:
%WASP_HOME%\demo\interop\msInterop\j2ee\ejbUnderJta\src\webClient
Click Next.
In the fourth screen, click Next.
Click Finish to complete the wizard.
Close the Internet Services Manager.
Open Microsoft Internet Explorer and go to:
http://localhost/EjbUnderJtaWebClient/EjbUnderJta.aspx address
Undeploy the ASP.NET Web Form client by manually deleting the Virtual Folder that was created in Step 1 above.