Hi

Note that EJB threads are forbidden from calling LoadLibrary and thus this
_will not work_ in properly implemented EJB servers.

Implement your shared library in a resource/connector instead.

Joel Crisp, Senior Java Architect, SUN PS Java Center UK

Nittle Gupta wrote:
>
> Hello friend,
>         Will you please send me the whole code you have written.I have written
> a simple "Hello World" pgm. in C & trying to call it through
> EJBean.But,some link error are coming.I would like to compare it with
> your code.I am using Weblogic.What app.server you are using?
> Eagerly waiting for reply,
> Nittile Gupta.
>
> >----------
> >From:  G Srinivas[SMTP:[EMAIL PROTECTED]]
> >Sent:  Wednesday, October 27, 1999 9:36 AM
> >To:    [EMAIL PROTECTED]
> >Subject:       Re: How to call native methods in EJBeans?
> >
> >Hello Nittle,
> >
> >Nittle Gupta wrote:
> >Hi All,
> >
> >>         Anybody tried with calling a native method through an EJBean.
> >> with regards,
> >> Nittile.
> >
> >I have tried small application where in I used JNI to call the Native
> >Method.
> >It works fine and is as simple as calling a JNI call from normal java
> >class.
> >
> >Only I faced problem in having a database transaction in the Native
> >function (
> >using embedded SQL in C library on MSSQL server  ).  As the transaction
> >context
> >get attached to the thread , this context doesnt allow me to have any
> >transactions in C library with new connection in native funtion.
> >
> >I am looking forward for suggestions on how to do transaction in the
> >native
> >method.
> >
> >Thank you,
> >
> >G Srinivas
> >Software Engineer
> >==========================================
> >L&T Information Technology Ltd.
> >Safire Park Galleria,
> >Next to Shivaji Nagar Rly Station,
> >1st Floor ,
> >Mumbai Pune Road,
> >Shivajinagar,
> >Pune - 411 005 (India).
> >Phone : 91-20-5812162/4262/5462//6079/4012
> >Fax   : 91-20-5815742
> >
> >EMail  : [EMAIL PROTECTED]
> >Web   : www.ltitl.com
> >==========================================
> >
> >========================================================================
> >===
> >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".

Reply via email to