IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Execute Service in adapter

    Posted Wed April 27, 2016 07:07 AM

    Hi All,

    I created an execute service adapter template and called a java service which inserts data into the DB. But, i get table or view doesn’t exist error.The table do exists in DB. Below is the java code.

    java.sql.Connection conn = (java.sql.Connection)IDataUtil.get(pipeline.getCursor(),
    com.wm.adapter.wmjdbc.services.ExecuteService.PIPELINE_CONNECTION);
    try {
    java.sql.PreparedStatement pstmt=conn.prepareStatement(“Insert into PROFILE_UPDATE_REQUEST (REQUESTID) values(null)”);
    pstmt.execute();
    }
    catch(Throwable e)
    {
    e.printStackTrace();

    			 throw new ServiceException(e);  }
    

    Please let me know on where i went wrong in this. And need your valuable inputs on how to fetch data from a select query using execute service.

    I am using execute template instead of normal insert as the blob insert through normal insert template is not writing the data properly and going through forums I got to know many use custom java services.

    Thanks,
    Sathya


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Execute Service in adapter

    Posted Wed April 27, 2016 09:12 AM

    what is Integration server version, JDBC Adapter version, which database you are connecting to.


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: Execute Service in adapter

    Posted Thu April 28, 2016 01:00 PM


  • 4.  RE: Execute Service in adapter

    Posted Fri April 29, 2016 09:28 AM

    Yes, try to use fully qualified name like schema_name.<table_name> in the query.

    Thanks,


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards