Download presentation
Presentation is loading. Please wait.
Published byJesse Haley Modified over 9 years ago
1
Copyright © 2001 Systek ASsystek@systek.no Normal Entity Bean ClientInterfaceContainerDatabaseEntity businessMethod ejbLoad readData Transaction starts businessMethod ejbStore writeData commit Transaction ends
2
Copyright © 2001 Systek ASsystek@systek.no Exception ClientInterfaceContainerDatabaseEntity businessMethod ejbLoad readData Transaction starts businessMethod Exception discard Bean rollback
3
Copyright © 2001 Systek ASsystek@systek.no Entity2 Two Entity Beans ClientInterfaceContainerDatabaseEntity1 businessMethod ejbLoad readData businessMethod ejbStore writeData businessMethod ejbLoad ejbStore readData writeData businessMethod commit
4
Copyright © 2001 Systek ASsystek@systek.no Exception (gal oppførsel) Entity2ClientInterfaceContainerDatabaseEntity1 businessMethod ejbLoad readData businessMethod ejbStore writeData businessMethod ejbLoad readData businessMethod discard Bean Exception commit rollback
5
Copyright © 2001 Systek ASsystek@systek.no Med SessionBean Entity2ClientInterfaceContainerDatabaseEntity1 businessMethod ejbLoad readData businessMethod readData businessMethod commit Session businessMethod find... ejbLoad ejbStore writeData ejbStore writeData
6
Copyright © 2001 Systek ASsystek@systek.no Exception (riktig oppførsel) Entity2ClientInterfaceContainerDatabaseEntity1 businessMethod ejbLoad readData businessMethod readData businessMethod rollback Session businessMethod find... ejbLoad Exception
7
Copyright © 2001 Systek ASsystek@systek.no showAccount.jsp > : Account Client : CreateAccount > AccountHome HTTP POST (accuntName=...) create(accountName) ejbCreate(...) redirect Opprette konto ejbPostCreate(...)
8
Copyright © 2001 Systek ASsystek@systek.no index.jsp Overføre penger > payer : Account Client : TransferServlet > payee : Account HTTP POST processTransfer > : Transfer debit credit redirect
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.