Forums Register Login

Questions about my JEE application

+Pie Number of slices to send: Send
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 ?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
I didn't say it. I'm just telling you what this tiny ad said.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 613 times.
Similar Threads
better search method?
What Is Web Services?
long post IBM.158
Login/customer account topic questions
Cade's Class Example use of Association
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:20:24.