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.  Access CentraSite from application

    Posted 03/01/10 09:48 AM

    Hi ,
    i have an application and there are anything between my application and CentraSite. I am trying to read and write to CentraSite db from my application. For example, i have an asset type. Users are creating some asset by the help of centrasite and i will read and write that assets in my application. How can i achive this ? (JAXR or something else) Can i take CentraSite Csaf connection from outside of centrasite ? When i try write CantraSite i am giving ObjectLock exception.

    Thank you


    #API-Management
    #webMethods
    #CentraSite


  • 2.  RE: Access CentraSite from application

    Posted 03/01/10 01:52 PM

    Hello,

    have a look at the samples that are supplied with CSAF.
    They are in the /redist/csaf folder of your CentraSite installation.
    There is a CRUD sample dealing with custom asset types and instances of them. The documentation for CSAF can be found here: http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuite8_ga/CentraSite/dg-csaf/overview.htm

    Regards
    Daniel


    #webMethods
    #API-Management
    #CentraSite


  • 3.  RE: Access CentraSite from application

    Posted 03/05/10 02:20 PM

    Thanks for your reply Daniel. i initialized BeanPool and i read some asset. i have another question. When i trying to update object, i am giving ObjectLock Exception. How can i disable lock mechanizm ?

    i am using this code for getting the beanpool;

    SessionContext context = null;
    RegistryProvider provider = null;
    try {
    provider = new StandaloneRegistryProvider(registryUsername,
    registryPassword, true);

    Configuration conf = new Configuration();
    conf.setRegistryProvider(provider);

                conf.addBeanType(Item.class);
    conf.addBeanType(Action.class);
    conf.addBeanType(Entry.class);
    conf.addBeanType(ExternalLink.class);
    context = SessionContext.createInstance(conf);
    } catch (CSAppFrameworkException e) {
    // Do something with the exception
    } 
    

    BeanPool beanPool = context.getCurrentBeanPool();


    #webMethods
    #API-Management
    #CentraSite