gb
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Originally posted by Goutam Bhattacharjee:
Folks, can somebody shed any light on what connectivity options do we have to access TransMaster from the ejb layer? TransMaster uses a XML-RPC api, does that mean it should be available and can be accessed as a Web-Service? I do not think we can use generic java sockets, as socket connections are not allowed from within an ejb. Also, this as per specifications, this is a synchronous call, therefore we cannot use message queueing techniques.
So, what's the solution?
Regards
Goutam...
gb
gb
gb
Thanks & Regards,<br />Chandramouli Ram
Thanks & Regards,<br />Chandramouli Ram
Thanks & Regards,<br />Chandramouli Ram
gb
Originally posted by Goutam Bhattacharjee:
Let me respond to Rashmi's strategy as per the specifications.
The 1st point is: TransMaster API is an RPC API, which is, by nature, synchronous.
2ndly, according to the interview session with FBN CEO/CIO, TransMaster have committed a response time of no more than 3 seconds.
Lastly, according to the 'Pay For Itinerary' use case, the system 'waits for authorization' - this means, if the connectivity to TransMaster is done from, a session bean method, that method will NOT return until the XML-response comes back from TransMaster.
(Correct me if these assumptions ar wrong)
These are strong forces against using any asynchronous model. I had thought
about JMS and MDB(s) while communicating to TransMaster, but after considering these, I had to reject them.
Now, Rashmi has suggested an alternative in using a JAVA implementation of XML-RPC.
The problem is, while the XML-request in TransMaster uses the RPC format, the response does NOT !
This means that, we need to do a customized XML parsing of the response from TransMaster. Thus, using any XML-RPC API, according to me, will not help. Therefore, treating TransMaster as a typical web-service is out of the way.
Rejection of those options leaves me with the alternative of using core java.net classes like URLConnection or HttpURLConnection, to establish 'https' connection to the TransMaster interface.
While explaining my views here, it may be appropriate to raise a pertinent point: Can we cache the URLConnection instances? Suppose we create a pool for URLConnection instances? This may be good idea to speed up performance, rather than creating a new URLConnection instance every time
Deepak, what's ur view on this?
By the way, thanks to Manju for clarifying the issue of XML-encryption. Manju do u think my suggestion of using sun.misc.BASE64Encoder for encrypting the credit-card number is sufficiently secured?
Waiting to hear from all of you intelligent minds..
gb.
Originally posted by Ram Chandramouli:
Hi Goutam,
I just figured out that it's indeed possible to connect to URL from EJB. My sincere apologies for publishing a wrong info. Here is the relevant URL from Sun's site:
http://java.sun.com/j2ee/sdk_1.2.1/techdocs/guides/ejb/html/Advanced4.html
SCEA, SCBCD, SCWCD, SCJD, SCJP
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|