There should be a 'safe' way to allow (certify) an EJB to use JNI. This
is a relatively common need.

Tony
----

Robert Castaneda wrote:
>
> You could wrapper the C++ code inside a C++ CORBA server and then call this
> CORBA server from your EJB.
>
> -Rob
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Charles Paclat
> Sent: Tuesday, March 28, 2000 3:21 AM
> To: [EMAIL PROTECTED]
> Subject: Re: EJB and JNI
>
> It sounds from quote as though there needs to be some tags in the deployment
> descriptor that specifies that a given component relies on a native library
> and have the container load that library.  I was unable to find evidence of
> this in the EJB specification.  The only other option would be to create a
> resource that is loaded by the application server.  This makes you
> application server specific anyways.
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Aravind Naidu
> Sent: Monday, March 27, 2000 7:36 AM
> To: [EMAIL PROTECTED]
> Subject: Re: EJB and JNI
>
> You should not use JNI inside an EJB.
> See Section 18.1.2 of the EJB spec, on programming restrictions.
>
> An extract below.
>
> <Quote>
> � The enterprise bean must not attempt to load a native library.
> This function is reserved for the EJB Container. Allowing the enterprise
> bean to load native code would create a security hole.
> </Quote>
>
> -- Aravind
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Ulrich Kriegel
> > Sent: Monday, 27 March 2000 18:55
> > To: [EMAIL PROTECTED]
> > Subject: EJB and JNI
> >
> >
> > Hi there,
> > we will encapsulate an C++ calculation module as an EJB. Exists any
> > exprience about the performance of EJBs using JNI to delegate work to
> > C++-modules. What about the status of an C++-module in case the
> > container moves the EJB to secondary store?
> > --
> > Thanks
> > --ukriegel
> > ---------------------------------------------------------------------
> > Dr. E.Ulrich Kriegel, [EMAIL PROTECTED],
> > Fraunhofer ISST, Mollstra�e 1, D-10178 Berlin, Germany
> > tel:   (++49(0)30) 243 06 446 fax:   (++49 (0) 30) 24306 199.
> > For public key either send mail with subject ##public-key or look at
> > http://www.isst.fhg.de/~ukriegel/public-key.html
> > =====================================================================
> >
> > ==================================================================
> > =========
> > 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".
>
> ===========================================================================
> 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".

--
Tony Holderith                      | Interactive Business Solutions
[EMAIL PROTECTED]  | NetCentric Solutions
http://www.interactivebusiness.com  | Business Objects
voice: 310.414.6760, 805.893.4503   | fax: 310.414.6759

Don't connect to the Internet - be there.        IBS

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