Question : Problem: SQL Query from Blackberry 8800

I'm trying to get data from a database and initiate processing on the blackberry at an x interval. What would be the best way to do this? The handheld in question is a blackberry 8800 so the language I will need to program in is Java.  I was thinking the most efficient way to achieve this would be to create a servlet on tomcat, the servlet would execute the query and return an XML document. Is this the most efficient way? How would I go about initiating a http connection to the servlet and returning the xml back to the device for processing. Sample code for the blackberry end would be greatly appreciated

Thanks in Advance!

Answer : Problem: SQL Query from Blackberry 8800

You can supply parameters to a sql query in the href (eg http://server/servlet?id=3&sort=2) of the HttpConnection you will establish:
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800429/How_To_-_Establish_an_HTTP_connection.html?nodeid=800632&vernum=0

Parsing XML in devices that support BBOS4.0 or greater - this example combines the connection and retrieval of xml result:
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800599/How_To_-_Use_the_XML_Parser.html?nodeid=820554&vernum=0
Random Solutions  
 
programming4us programming4us