Adapter for MongoDB 9.12 | webMethods Adapter for MongoDB Documentation | webMethods Adapter for MongoDB Installation and User’s Guide Documentation | Overview of the Adapter | Adapter Services
 
Adapter Services
 
Changing the Connection Associated with an Adapter Service at Design Time
Changing the Connection Associated with an Adapter Service at Run Time
Changing the User Credentials of a Service's Associated Connection at Run Time
Adapter Service Transaction Processing
To use Adapter for MongoDB, you create adapter services. Adapter services allow you to connect to the adapter's resource and initiate an operation on the resource from Integration Server.
You call adapter services from flow or Java services to interact with database tables. The adapter services perform database operations by calling MongoDB APIs. Integration Server then uses adapter connections that you defined earlier to execute the adapter services.
Adapter services are based on templates provided with Adapter for MongoDB. Each template represents a specific technique for doing work on a resource, such as using the Select Document template to retrieve specified information from a database.
An adapter service template contains all the code necessary for interacting with the resource but without the data specifications. You provide these specifications when you create a new adapter service.
Creating a new service from an adapter service template is straightforward. Using Software AG Designer, you assign the service a default adapter connection.
After you select the connection for the adapter service, you select the adapter service template and supply the data specifications using Designer. Some familiarity with using Designer is required. For more information, see the webMethods Service Development Help for your release.
Adapter for MongoDB provides the following adapter service templates:
Adapter Service Type
Adapter Service Template
Description
Insert Operation
Insert Document
Inserts new information into a collection.
Find Operation
Select Document
Retrieves the information from collection.
Delete Operation
Delete Document
Deletes documents from collection and includes a mapping for an output field that stores the number of affected rows.
Update Operation
Update Document
Updates the existing document in a collection and includes a mapping for an output field that stores the number of affected rows.
Aggregation Operation
Aggregate Query
Run aggregation queries on MongoDB.
Dynamic Operation
Dynamic Query Executor
Runs a raw MongoDB query