-
1. Re: JNI MBean
juha Oct 24, 2002 6:26 PM (in response to rdelima)not as far as I can think of
what is the error you're having more specifically?
when you're trying to code outside JBoss, is it still within an MBean server? -
2. Re: JNI MBean
rdelima Oct 29, 2002 7:12 PM (in response to rdelima)Thanks for the reply...
There isn't any specific error. I think the MBean is operating correctly. From what I see, this is the process my MBean should follow:
1) Load shared Library
There are calls in the bean that do the following:
2) Make a JNI Call to a Baan function called start_ci()
'start_ci()' will create a special shell with the Baan server. From what I see, it spawns a new process and communicate back with its parent through a pipe. This process is the communications link to the Baan server.
3) Make a JNI Call to make a query for the Baan server. Using the pipe from 2, the query is run and a result is returned.
This is the problem: When start_ci() runs, it creates the process and the communication link, but the communication link loses scope for part 3. I have tried running these processes as seperate JNI calls and as a single JNI call. I still get the same result.
I guess I need to know what I am doing wrong to lose scope..or is external process out of scope completely because it is outside the container?
Thanks for your help in advance.