I would first seek for the apologies of
EJB purists. </br>
My query goes as 'can we use URLConnection object within the stateless session bean?'.</br>
My client already has some infrastructure built on ASP,
JSP and stuff like that for doing some basic validation that queries database and retrieves the results. </br>
For example, the credit rating of the customer is already available as a HTTP service which is jolly well used by some of the clients' VB applications.Now we are building a different system which we thought could leverage the existing HTTP services available as said above.</br>
Before I jump to the conclusion, please clarify:</br>
1. Is it advisabel to use URLConnection to avail the existing HTTP services within EJB?
2. Has anyone tried this out and were there any pitfalls/problems faced?</br>
3. Could this be used in a transaction context say for instance in the transaction context of Bean Managed Persistence?</br>
Regards</br>
Kala