• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Questions about my JEE application

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic