13.07.2015 Views

Using SQL Adapters with Ensemble - InterSystems Documentation

Using SQL Adapters with Ensemble - InterSystems Documentation

Using SQL Adapters with Ensemble - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• Your class can optionally implement any or all of the startup and teardown methods: OnInit,OnTearDown, OnProductionStart, and OnProductionStop.The following example shows the general structure that you need:Class E<strong>SQL</strong>.NewOperation1 Extends Ens.BusinessOperation [ ProcedureBlock ]{Parameter ADAPTER = "EnsLib.<strong>SQL</strong>.OutboundAdapter";Parameter INVOCATION = "Queue";Method SampleCall(pRequest As Ens.Request,Output pResponse As Ens.Response) As %Status{Quit $$$ERROR($$$NotImplemented)}XData MessageMap{SampleCall}}Creating a Business Operation to Use the AdapterNote:The <strong>Ensemble</strong> Studio provides a wizard that you can use to create a stub similar to the preceding.To access this wizard, click File —> New and then click the Production tab.3.2.2 Configuration TasksTo add your business operation to an <strong>Ensemble</strong> production, use the <strong>Ensemble</strong> Management Portal todo the following:1. Add an instance of your custom business operation class to the <strong>Ensemble</strong> production.2. Enable the business operation.3. Configure the adapter to communicate <strong>with</strong> a specific external data source. Specifically:• Specify the ODBC-compliant data source that the adapter should connect to• Use other common runtime settings that your production will haveThese topics are discussed later in this chapter.4. Run the production.If you are not familiar <strong>with</strong> the <strong>Ensemble</strong> Management Portal, see the appendix “Common Tasks inthe <strong>Ensemble</strong> Management Portal” for information on these tasks.<strong>Using</strong> <strong>SQL</strong> <strong>Adapters</strong> <strong>with</strong> <strong>Ensemble</strong> 27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!