Calling C programs on Unix box

Discussions

EJB programming & troubleshooting: Calling C programs on Unix box

  1. I am currently developing EJBs to acces various DBs. What I was wondering is there anyone who knows a method in which I can call a remote C program stored on the server from a client. I need and EJB to invoke this C program such that a PICK database can be intterrogated for information.

    I would appreciate any help.

    Thanks

    Jason
  2. Hi <funny name>... well yes you can, though the JNI API but that approach is not recommended due to restrictions in the usability of the EJB.

    As an aside, I would like to refer to a small but good article by Sanjay Mahapatra at Sun regarding EJB programming restrictions. Check that out for more information on what should be done and not.

    http://www.javaworld.com/javaworld/jw-08-2000/jw-0825-ejbrestrict.html