users@glassfish.java.net

Re: OSGI and Java Native Interface

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Sun, 05 Feb 2012 20:15:33 +0530

Peter,

I am sure you will find some useful examples about OSGi/JNI in Internet.

If you turn your managed bean into an EJB, which is very simple, then
you can call the managed beans via OSGi service bridge that we have in
GlassFish.

Sahoo
On Sunday 05 February 2012 07:52 PM, forums_at_java.net wrote:
> Hi,
>
> I will be glad if someone answer me these qustions. I have a few
> questions
> about Glassfish, OSGI and Java Native Interface:
>
> 1. Is it possible to access JNI from OSGI bundle? Is there any example
> that
> I can use?
>
> 2. Is it possible OSGI bundle to call java methods from managed bean.
> In my
> case I want to create OSGI bundle with JNI interface which listens for
> network connections. After the network connection is received the
> OSGI bundle must call java method from managed bean.
>
> Best wishes
>
> Peter
>
>
> --
>
> [Message sent by forum member 'rcbandit']
>
> View Post: http://forums.java.net/node/883282
>
>