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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  JDBC Style Facade for Tamino Java API

    Posted 10/20/04 02:25 PM

    For a recent project, because I couldn?t find anything quite like it out there (and because there was no wind for windsurfing) I wrote a JDBC style Facade (for the Tamino Java API) for use with XQuery.

    The motivation for creating a Fa


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management


  • 2.  RE: JDBC Style Facade for Tamino Java API

    Posted 10/29/04 06:31 PM

    Hi Paul,

    Looks very interesting.

    I also developed my own Facade on top of Tamino. My motivation was just make development faster and cleaner. I borrowed some ideas from Spring framework’s JDBC layer. Here is some code from my DAO:



    import de.cepco.framework.exception.DataAccessException;
    import de.cepco.framework.tamino.core.AccessorCreator;
    import de.cepco.framework.tamino.core.TaminoOperations;




    public MyDAO(TaminoOperations taminoTemplate, AccessorCreator accessorCreator) {
    super();
    this.taminoTemplate = taminoTemplate;
    this.accessorCreator = accessorCreator;
    }

    public String insertDocument(Document document) throws DataAccessException{
    return taminoTemplate.update(TXMLObject.newInstance(document), this.accessorCreator);
    }



    As you see code is much cleaner rather than with direct Tamino API. And it is fully integrated with Spring’s transaction management and all Tamino transaction’s issues can be done from Spring application context.

    Just my 2c

    Cheers,
    Fuad.


    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs


  • 3.  RE: JDBC Style Facade for Tamino Java API

    Posted 12/16/04 04:20 PM

    Paul,

    This sounds interesting…Would you be willing to share the JDBC like code with the community?, Can you post us where I can get the code from?

    Thanks

    [quote]
    Originally posted by Paul Hudson:
    For a recent project, because I couldn?t find anything quite like it out there (and because there was no wind for windsurfing) I wrote a JDBC style Facade (for the Tamino Java API) for use with XQuery.

    The motivation for creating a Fa


    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management