Connecting MIDlet,JSP and mysql database

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2009
Posts: 1
Reputation: jeoff is an unknown quantity at this point 
Solved Threads: 0
jeoff jeoff is offline Offline
Newbie Poster

Connecting MIDlet,JSP and mysql database

 
0
  #1
Apr 2nd, 2009
hi all, am still new in developing J2ME applications.I have a mobile application that needs to connect to mysql database using JSP as the middleware..can anyone please sort me out am stuck on the how to go about it.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: Connecting MIDlet,JSP and mysql database

 
0
  #2
Apr 2nd, 2009
why is JSP middleware? JSP should be used on your front-end... to get the database connection, just get the driver .jar
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,245
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 492
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Connecting MIDlet,JSP and mysql database

 
0
  #3
Apr 2nd, 2009
Wireless Development Tutorial Part II is good starting point for general MIDlet to HTTP connectivity (based upon servlets) it show you how you can send request to server, how it will received and replied to this request through servlet. From here it is only step to build your own application that will send request for database data, servlet receive it, process it and send reply back to your application

Another useful article is Debugging MIDP HTTP Requests

On the end you should download source code for chapter 18 from Kicking Butt with MIDP and MSA, by Jonathan Knudsen, which I consider very best. These examples do not contain any explanation, beside in code comments, so you will have to work out what is going on in the code. However it is very good example as it show use of Threads to maintain connection with server and in doing so avoid connection time out on real device (not emulator as your pc would be presumably connected to internet and have faster connection then average mobile device)
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC