Mileage should be debted the points that you have used. Buying ticket mileage account would mean that you are using your mileage points.
As far creating a controlling class goes, it depends how you plan to do it. If Mileage Account is an entity bean then you can as well use a StateLess Session Bean to debt it. As per my understanding accessing mileage account - either for points balance or for debting/reducing points based on purchase is a onetime thing. We do not need conversational state for that.
posted 11 years ago
thanks s khosa,
but i wanna know when we should earn miles point either buying with credit card or using mileage account for debit. I be thinking if payment mode has relation to earn miles.