Setting Properties for Images

Integrating Native .NET Applications 3-17

3.5.3.3 Running the Application

For developers who have access to Microsoft Visual Studio 2005 to test the web applications, simply build the solution after making all the above changes and click Debug-Start Debugging in Visual Studio 2005. For deployment of these applications, here are some tips to follow: ■ System: Windows Server 2003 ■ Application server should be installed using -Control Panel-Add or Remove Programs-AddRemove Windows Components. IIS and ASP.NET should be enabled; ■ Create new website using IIS manager by running inetmgr in command window; ■ Make sure ASP.NET version is set to v2.0 through ASP.NET tab in websites Properties; ■ Make sure that ASP.NET v2.0 is set to allowed in IIS manager. If there is no ASP.NET v2.0 extension, add a new web service extension manually. Go to C:\WINDOWS\Microsoft.NET\Framework, there should be some folder named v2.0.50727 or similar if ASP.NET v2.0 is installed. Add v2.0.50727aspnet_isapi.dll as a new web service extension; ■ In IIS Manager-Local Computer-Application Pools, open Properties-Identity, simply select Local System on the right of Predefined option if you come across probelm accessing C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files when opening web application pages.

3.5.4 Example: Enable Transaction Logging and Rule Processing

The following pages demonstrate how to enable transaction logging and rule processing in OARM using the ASP.NET sample applications. Prerequisites: ■ Transaction definitions in Sample_Transaction_Defs.zip need to be available in OARM. Use Admin Transactions Import Transactions to import the transaction definitions. ■ Transaction models defined in models.zip should be available in OARM ■ Following properties must exist in bharosa_app.properties at the OARM and the .NET client side: tracker.transaction.status.enum=Enum for transaction status tracker.transaction.status.enum.success=0 tracker.transaction.status.enum.success.name=Success tracker.transaction.status.enum.success.description=Success tracker.transaction.status.enum.block=1 tracker.transaction.status.enum.block.name=Block tracker.transaction.status.enum.block.description=Block tracker.transaction.status.enum.reject=2 tracker.transaction.status.enum.reject.name=Reject tracker.transaction.status.enum.reject.description=Reject tracker.transaction.status.enum.pending=3 tracker.transaction.status.enum.pending.name=Pending tracker.transaction.status.enum.pending.description=Pending profile.type.enum.pretransaction=70 3-18 Oracle Fusion Middleware Developers Guide for Oracle Adaptive Access Manager profile.type.enum.pretransaction.name=PreTransaction profile.type.enum.pretransaction.description=Pre Transaction profile.type.enum.pretransaction.ruleTypes=user,device,location,in_session profile.type.enum.pretransaction.listTypes=vtusers profile.type.enum.pretransaction.finalactionrule=process_results.rule profile.type.enum.pretransaction.isPreAuth=false profile.type.enum.posttransaction=80 profile.type.enum.posttransaction.name=PostTransaction profile.type.enum.posttransaction.description=Post Transaction profile.type.enum.posttransaction.ruleTypes=user,device,location,in_session profile.type.enum.posttransaction.listTypes=vtusers profile.type.enum.posttransaction.finalactionrule=process_results.rule profile.type.enum.posttransaction.isPreAuth=false Transaction Page ■ Dynamically generates the transaction type selection menu based on transaction enums defined in property file bharosa_common.properties ■ On selecting transaction type, dynamically renders the transaction fields based on field definitions defined in properties files. ■ Either creates a transaction by calling AppUtil.createTransaction or updates the transaction by calling AppUtil.updateTransactiondepending on the current form being submitted. ■ Runs pre and post transaction rules by calling AppUtil.RunPreTransactionRules or AppUtil.RunPostTransactionRules. Depending upon the result, the browser is redirected to the next appropriate page.