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





PostPosted: 2006-3-5 5:11:00 Top

java-programmer, calling java from c dll, that will reside in biztalk? 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.

 
Vitaly





PostPosted: 2006-3-5 6:21:00 Top

java-programmer >> calling java from c dll, that will reside in biztalk? See http://simtel.net/product.php[id]93174[SiteID]simtel.net

"Elhanan" <email***@***.com> wrote in message
news:email***@***.com...
> 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.
>


 
Roedy Green





PostPosted: 2006-3-5 7:59:00 Top

java-programmer >> calling java from c dll, that will reside in biztalk? On 4 Mar 2006 13:10:32 -0800, "Elhanan" <email***@***.com> wrote,
quoted or indirectly quoted someone who said :

>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.

see http://mindprod.com/jgloss/jni.html
for a little cold water.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
 
Elhanan





PostPosted: 2006-3-5 14:35:00 Top

java-programmer >> calling java from c dll, that will reside in biztalk? thanks, but 4000$ is even more expensive then jnbridge and i don't have
muddle with c++ there :)

 
 
Elhanan





PostPosted: 2006-3-5 14:40:00 Top

java-programmer >> calling java from c dll, that will reside in biztalk? i looked it over but it seems to talk about only how to call c from
java ,not the other way around.

 
 
Frank Seidinger





PostPosted: 2006-3-5 15:45:00 Top

java-programmer >> calling java from c dll, that will reside in biztalk? Elhanan schrieb:

> 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!

--
Geld allein macht nicht gl點klich.
Es kommt auch auf die Menge an...
 
 
Owen Jacobson





PostPosted: 2006-3-5 15:52:00 Top

java-programmer >> calling java from c dll, that will reside in biztalk? On Sat, 04 Mar 2006 13:10:32 -0800, Elhanan wrote:

> 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.