Java

Discusses use of CAPE-OPEN compliant Process Modelling Components

Moderator: jasper

Java

Postby colancto » 28 May 2013, 09:08

Has anyone experience with using Java in order to develop a CAPE-OPEN PMC such as a Unit Operation?
User avatar
colancto
Administrateur
 
Posts: 92
Joined: 23 October 2012, 11:46

Re: Java

Postby jasper » 28 May 2013, 11:08

Developing a COM object in java is not straight forward. Here is a package that could help: http://jsegue.sourceforge.net/; look for reverse COM.

Another way to go is to write the COM part in C++ and use JNI to call java.

In either case, marshaling of COM data to java arrays will be required, and this causes some overhead, if a lot of thermo is to be used. Probably less so if the COM part is written in C++, as now the data marshaling can be restricted to that data that is really required on the java side.

Java of course comes with native support for CORBA. But that will exclude a lot of PMEs, if not all.

edit: to answer the actual question: no I have not done this before.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain


Return to Process Modelling Components

Who is online

Users browsing this forum: No registered users and 2 guests

cron