Transactional EJB Access  Locate

Overview  Locate

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.

Demo Package Description  Locate

In addition to the files described in Files and Directories, this demo contains:

File or directoryDescription
src\client\

.NET Windows Form C# client source code

src\webClient

ASP.NET Web Form code

AccountEjbClient.xls

MS Excel worksheet client

Prerequisites and Preparatory Steps  Locate

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.

Building and Running Demos  Locate

Excel worksheet client:  Locate

  1. Open:

    %WASP_HOME%\demo\interop\msInterop\j2ee\ejbUnderJta\AccountEjbClient.xls
    

.NET Windows Form client:  Locate

  1. Change directory to:

    %WASP_HOME%\demo\interop\msInterop\j2ee\ejbUnderJta
    
  2. Make the client by typing run.bat make_client.

  3. Run the client by typing run.bat run_client.

ASP.NET Web Form client:  Locate

  1. 1. Create a Virtual Folder in IIS by doing the following:

    1. Click Start, point to Programs, select Administrative Tools, and then click on Internet Services Manager.

    2. In the left pane, right-click Default Web Site, point to New, and then click Virtual Directory.

    3. In the first screen of the Virtual Directory Creation Wizard click Next, type an alias for the site (EjbUnderJtaWebClient) and click Next.

    4. In the third screen, click Browse. Browse to:

      %WASP_HOME%\demo\interop\msInterop\j2ee\ejbUnderJta\src\webClient
      

      Click Next.

    5. In the fourth screen, click Next.

    6. Click Finish to complete the wizard.

    7. Close the Internet Services Manager.

  2. Open Microsoft Internet Explorer and go to:

    http://localhost/EjbUnderJtaWebClient/EjbUnderJta.aspx address
    
  3. Undeploy the ASP.NET Web Form client by manually deleting the Virtual Folder that was created in Step 1 above.