Re: alternative approaches - C, Java, etc.

From: Noah Couture (noah@coutureconsulting.com)
Date: Fri Jun 09 2000 - 18:15:25 EDT


Hey, thats my environment too. Certainly, its a bit more work than perl or php. The direct support for transactions, etc is the best thing going for it. We're actually using webmacro instead of JSP though.

I basically just want to avoid having one section done completely differently than the rest of the site.

noah

  ----- Original Message -----
  From: Doytchin Spiridonov
  To: Noah Couture
  Cc: dev-list@opensrs.org
  Sent: Friday, June 09, 2000 2:24 PM
  Subject: Re: alternative approaches - C, Java, etc.

  Why exactly do you need to do that with Java??
  Right now we are developing an online airline reservation system
  and we chosen Java,JSP,Oracle and WebLogic and believe
  me now I am not sure that was the best option :)))

  Regards,
  Doytchin.

  Noah Couture wrote:

    Hey folks, I'm still hoping to figure out this java approach. I was thinking of trying to do some sort of java/perl bridge. I've never looked into the xs stuff much, but I was thinking it would be possible to do a C wrapper for the perl calls, and then JNI that into java. But thats three layers,.. icky. I found a perl module called jperl that supposedly would let you just call a perl interpreter, but it wanted java 1.1.4 and i'm stuck with 1.2.1. As far as I could tell, it just didn't work anyhow. Meanwhile, O'reilly has JPL, but thats a commercial product it seems. I guess you have to buy the 6 book set of perl stuff to get it. I could also try to use the encryption libraries in java itself to send messages, but from the mailing lists I started to wonder if anything but very specific libraries would work. So, I was thinking i'd use the C library that 'bboy' posted. I've gotten it to work as far as logging in, but he didn't write any specific code for sending any particular commands so far as I can tell. So, my only concern about using that (with JNI from my servlet/EJB context) is that its a bit crustier than the perl stuff, and OpenSRS will likely do something that breaks it within 3 days of me going live. I also thought about writing a simple daemon that used the library, I could open a socket from my servlets and talk to this little daemon that would relay messages to the server. So, this is a bit of noodling about.. I'm very interested in folks' opinions on this subject. --noah



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:35:36 EDT