Re: CMPI C based server -- can CMPI provider call JAVA routine.

Klaus Kaempf <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <[email protected]>
* kamal jeera <[email protected]> [Apr 26. 2010 23:37]:
> 
> They require that providers be written in CMPI - C based.  My question is
> can I call from CMPI C based provider to a java program?

Yes.

cmpi-bindings (http://developer.novell.com/wiki/index.php/CMPI-bindings)
should be able to help you accomplish that.

It allows to write CMPI providers in non-C languages. Currently it
supports Perl, Python, and Ruby.

cmpi-bindings uses SWIG (http://www.swig.org) to translate the CMPI API
and datastructures from C to any SWIG supported target language, i.e.
Java.

> 
> I think providers are loaded and executed by cim server. So I am not sure my
> java part [if I call from my provider] will be executed?

cmpi-bindings comes with a small C layer acting like a CMPI provider
to the CIMOM. This layer loads the target runtime during provider
initialization and translates the CMPI API to calls into the target
language.

Hth,

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.