• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Frequent Flyer assumptions

 
Ådne Brunborg
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like some feedback on the assumptions I'm making about the FF system:

1) Assumption 1 is: "The FF system is a n-tier application, with HTML and CGI used for the presentation layer, and Perl used for the business logic layer." Basically, I am assuming that the system (being new) is well-designed and clearly separated in presentation logic, business logic and data storage.

2) Assumption 2 is "There is a fair amount of business logic in the FF system, but the commands called by the CGI scripts are basic CRUD operations" This indicates that rewriting the Perl logic to Java while keeping the database is too time consuming and costly, in addition to being contrary to the CEO's wishes.

Based on these two assumptions, I will recommend creating a wrapper around the Perl scripts, using JNI, disregarding the HTML and CGI, and leaving the database untouched.

This isn't the only solution, I am well aware, but I'm asking if it is a good solution? All hinges on the use of Perl for business logic - and I have never used Perl, so I don't know if that is plausible.
 
Jacek Ostrowski
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that it will not be possible to use JNI to interface with perl scripts .
JNI requires a library that would be loaded and JVM would forward method calls to it. You could use perl libraries for this and execute perl scripts in JVM but it not be easy, I think.

I'm going to solve this at db level. Since FFMS is in perl and perl is a scripting language so sources are available and we can analyze them and connect directly to db.

Jacek
 
Ådne Brunborg
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, you basically agree in most of my assumptions, except that you don't think it'll be too time consuming to rewrite the Perl scripts to Java... fair enough, thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic