Hey Guys,

Well ... I did the JNI interfacting with an Entity bean using Weblogic 5.1 .
It does it ..... But theres no proper documentation for it .. so i had to do
the rnd myself...

You could declare the JNI methods as native in yr Entity Bean.
Use System.loadLibrary to load the dll in yr Entity Bean Class
And in the C++ code do not forget to give the COMPLETE and i repeat the
Complete path of yr Entity bean Class(include the package too).

Should you have any questions ... do not hesitate to mail me.
Regds,
Samir Mathur



-----Original Message-----
From: Jonathan K. Weedon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 21, 2000 2:06 PM
To: [EMAIL PROTECTED]
Subject: Re: EJB and JNI


<vendor>

Likewise, our AppServer supports JNI.  That being said, I
STRONGLY recommend using CORBA to integrate native code
into your EJB application.  Having developed quite a bit
of JNI code (and mountains of CORBA code) I can easily
vouch for the fact that integrating C or C++ code using
CORBA is substantially easier than using JNI.

</vendor>

-jkw

Evan Ireland wrote:
>
> Francesco Marchioni wrote:
> >
> > > > Do EJB containers allow this?
> > >
> > > Some do.
> > Do you know if weblogic allows it ? if not any others that you know ?
>
> I have no idea if WebLogic supports it. You should ask BEA.
>
> <vendor>
>
> Sybase EAServer supports beans using JNI. Please note: using JNI makes
your
> beans non-portable.
>
> </vendor>
>
> > Francesco

> > > Mageshkumar Maruthapillai wrote:
> > > >
> > > > Hi,
> > > >
> > > >      I want to if there would be any problems using JNI with EJB.
> > > > I am trying to use JNI from my entity beans to access some legacy
code
> > > > which accesses my business object data.
> > > >
> > > > Do EJB containers allow this?
> > >
> > > Some do.
> > >
> > > > Any comments would be very helpful.
> > >
> > > If you are not concerned about portability of the code (which seems
likely
> > if
> > > you are interfacing with a legacy system), you could use JNI if your
> > server
> > > supports it. Or you could write some C++ CORBA components and access
them
> > > using CORBA calls from your EJBs.
> > >
> > > > Thanks,
> > > > Magesh.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to