Yes, Ian JCA is the best approach.
-----Original Message-----
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
[mailto:J2EE-INTEREST@(protected)
Sent: Friday, September 03, 2004 12:21 PM
To: J2EE-INTEREST@(protected)
Subject: Re: J2EE standards?
You could write a JCA wrapping up this native call? Does that
then violate the EJB specification?
--- Parag_Lonhari <Parag_Lonhari@(protected):
> Thanks Anuj,
> Please find below the extract from old archive of this
> same forum
>
> * 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.
>
> *You should not JNI from EJB or from any other class your
> EJB calls.
>
>
> So as per this creation of helper is also not acceptable.
>
> Parag
>
>
>
> -----Original Message-----
> From: Anuj Kumar [mailto:anujkumar73@(protected)]
> Sent: Friday, September 03, 2004 11:33 AM
> To: J2EE-INTEREST@(protected)
> Subject: Re: J2EE standards?
>
>
> hi,
>
>
> U can make a helper class where u can write the code to
> call exe using runtime interface.use this helper class in
> ur EJB.
>
> Thanks
> Anuj
>
> On Fri, 03 Sep 2004 Parag_Lonhari wrote :
> >Hi,
> >
> > I need to call one program (.exe) written in
> C language from
> my
> >EJB (MDB)? I am calling shell program to call that C
> program which is not
> as
> >per J2EE standard. Another approach could be using JNI to
> call that
> program.
> >
> >
> > I want to know is this J2EE standard or not
> (using JNI from
> >EJB)? I know calling JNI from Servlet/Java program is as
> per J2EE standard,
> >but whether call of JNI from EJB is as per standard or
> not?
> >
> >
> >
> > What are the other alternatives to solve
> above mentioned
> >problem?
> >
> >
> >
> >Thanks,
> >
> >Parag Lonhari
> >
> >Sr. Systems Analyst
> >
> >Satyam Computer Services Ltd
> >
>
>***********************************************************************
***
> >This email (including any attachments) is intended for the
> sole use of the
> >intended recipient/s and may contain material that is
> CONFIDENTIAL AND
> >PRIVATE COMPANY INFORMATION. Any review or reliance by
> others or copying or
> >distribution or forwarding of any or all of the contents
> in this message is
> >STRICTLY PROHIBITED. If you are not the intended
> recipient, please contact
> >the sender by email and delete all copies; your
> cooperation in this regard
> >is appreciated.
>
>***********************************************************************
***
> >
>
>=======================================================================
====
> >To unsubscribe, send email to listserv@(protected)
> include in the body
> >of the message "signoff J2EE-INTEREST". For general help,
> send email to
> >listserv@(protected)
> message "help".
> >
>
>
>
========================================================================
===
> To unsubscribe, send email to listserv@(protected)
> include in the body
> of the message "signoff J2EE-INTEREST". For general help,
> send email to
> listserv@(protected)
> message "help".
>
************************************************************************
**
>
> This email (including any attachments) is intended for the
> sole use of the
> intended recipient/s and may contain material that is
> CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by
> others or copying or
> distribution or forwarding of any or all of the contents in
> this message is
> STRICTLY PROHIBITED. If you are not the intended recipient,
> please contact
> the sender by email and delete all copies; your cooperation
> in this regard
> is appreciated.
>
************************************************************************
**
>
>
========================================================================
===
> To unsubscribe, send email to listserv@(protected)
> include in the body
> of the message "signoff J2EE-INTEREST". For general help,
> send email to
> listserv@(protected)
> message "help".
>
========================================================================
===
To unsubscribe, send email to listserv@(protected)
body
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".
===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".