calling java from c dll, that will reside in biztalk?

E

Elhanan

hi..

what are the risks involving at creating a dll in c that will be
calling a java class, calling an rmi server.

this dll will reside under biztalk.

i have no expirience in jni btw.
 
E

Elhanan

thanks, but 4000$ is even more expensive then jnbridge and i don't have
muddle with c++ there :)
 
E

Elhanan

i looked it over but it seems to talk about only how to call c from
java ,not the other way around.
 
F

Frank Seidinger

Elhanan said:
hi..

what are the risks involving at creating a dll in c that will be
calling a java class, calling an rmi server.

I don't know, what kind of risks do you mean in general. But adding a new
compontent to an existing system alsways leads to some kind of risks.

This can be:

* security impacts
* resource impacts
* timing impacts
* etc.
this dll will reside under biztalk.

i have no expirience in jni btw.

So you are looking for a way to do or try that? Sun once hat a JNI-Tutorial
describing exactly what you need. The example showed a c code fragment
creating a jvm, creating a java class in this jvm and delegating some calls
to the java class.

You can find copies of this article for example on:

http://cermics.enpc.fr/doc/java/tutorial/native1.1/invoking/invo.html

Look for the links to invoke.c and attach.c included in this article.

Good luck!
 
O

Owen Jacobson

hi..

what are the risks involving at creating a dll in c that will be
calling a java class, calling an rmi server.

this dll will reside under biztalk.

i have no expirience in jni btw.

The JDK comes with an example for calling a static Java method from a C
program: the source for the 'java' program is included in src.zip/launcher/ .

It creates a JVM, loads a class (the one specified on the command line),
locates the 'main' method with signature void main (String[]), and invokes
it, passing the command-line arguments.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top