tdeng 35 posts since
Oct 17, 2007
3.
Re: Can Curl be used in OLTP? Jun 3, 2008 7:06 PM

in response to:
promiseliu
A curl applet tipically talks to a database with the folloing flow:
Curl Applet <--1-> Sever side application (ie: java sevlet) <--2-> Database (like oracle)
When and how a sevlet talks to databases(step 2 above) has nothing to do with a Curl applet, what Curl applet needs to know is just the interface to access web services provided by application servers like Apache/Tomcat. So, for Curl applications to communicate with a server, what all you need to do is to define an interface for retrieving/sending data from/to the web service, in step 1 above.
RecordSet is a good data model used to manipulate data from server on the clientside for Curl applets, but you need not always use RecordSet to hold data, you could define your own data class for using in your application ofcourse.
As I stated above, whether a java application on server side will talk to a database is completely upon to how you provide/implement the web service, and nothing between the java application and database will affect your Curl applet .
I strongly recommend you read the Curl Document shipped with the free Curl IDE, especially for the follwing sections(Under Curl Developer's Guide ):
- Interaction with External Resources
- Interacting with Web Sites
- Creating Web Forms
- The SOAP Interface (WSDK, the better)
- AAccessing Files and Other Resources
- synchronous Stream IO (for synchronous reading of data streams)