• Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions about my JEE application  RSS feed

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
While I'm not sure if this forum is suitable, but here is my question.
I have a J2EE reservation system (EJBs, Servlets) .
In order to check if the customer has good credit, my application talkes to another application via web services.
This web services application uses a database.
Tis database contains a table called PRIVATE_DATA , this table
contains : customer_id , credit_card_id , amount_of_money
When the customer makes a reservation, the application subtracts the value of the ticket from amount_of_money field.
Here are my question :
1. In a real world application, when a user booked a ticket from my organization and used his -lets say- Master Card credit card, How my company will get its money ?
Would you tell more about this process ?
2. In order to dilever the ticket to the customer, I created a small component, this component extracts the required data from the database, converts it to XML and then use XSLT to transform this XML data to a HTML file -this HTML file shows my logo and other specific things- , then
the application prints out this HTML document.
What do you think of this approach ?
Do you suggest another ways ? What do real applications use ?
3. In the case if I have a Java swing application deployed by JNLP, and this application uses EJB, should I package EJBs classes with JWS jar file ?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John,
1) Typically, the web services is a credit card company that handles crediting your bank account. If that is not the case here, you need to call a credit card company's API or have a manual procedure in place.
2) Your approach is fine. Another way, is to get the data from the database and store it in a data transfer (Java) object. Then you can write a JSP to output the HTML page filling in the data from your object. Both of these approaches are common enough.
3) You need to include the EJB stubs/skeletons, but not the full EJB.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply .....
About my first question :
I want to know, if someone booked a ticket from my company, how my company will get its money ?
Example :
When I buy some books from Amazon.com , Amazon ask me for my credit card, if its ok, they will order my books.
But how Amazon will get its money ?
I just want to know more information about this process ....
Thanks again.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!