Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie Questions (db sychronization, apis to work with scanner and cameras)

 
Katie Lee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am a total newbie in the j2me world. I hope you guys don't mind me asking a series of questions on my 1st post. Anyway, I am currently working on a j2me project and it involves a pocket pc and constant database synchronizations (as often as the user enters a new transaction). We have a wireless network setup inhouse. I am using DB2e as my local DB and a DB2 backend database. For database synchronization, I will need to utilize the db2 synchronization server. I've read some resources online regarding synchronizations, I have an idea on how to do it, however, nothing had ever been said about what if there's no network connections? In that case, the user should still be able to work offline and store the changes locally to the local DB. I m just wondering if there's any java apis that can detect whether network connection's available? For instance, I would like to keep the data locally if there's no network connection, but delete data in tables after a successful synchronization with the server. How can I implement that logic in my code? anyone know what methods to call to determine if network connection's available? or shud I just treat it as a sychronization failure to know that I can't sync? The thing is if sync fails, it could be other reasons other no network connections? what is the best way to handle this ?
Another question will be users will be scanning a barcode from a built-in scanner on the pocket pc. Are there any sample codes or generic j2me apis that does that? My app also needs to take a image of the product at the end of the transaction with a built in camera. Do I utilize the MMAPI ? anyone familiar w/ how well it works? or have sample code to share?
I am planning on implementing everything utiliting IBM's implementation (SMF Framework) of the OSGI framework. So, everything will be built in bundles.
I am sorry for asking so many questions but I found that resources are quite limited even on the IBM websites. Also, I am the only person working on this project so I am helpless when it comes to questions. I've bought books on j2me but most of them talks about the cldc and midp configurations. I have also purchased enterprise j2me by michael yuan which is a book that better suited my needs, but still I have more specific questions that need answered. Anyone with any knowledge with the above topics, please be kind enough to help me! I would really appreciate it. =) Thank you so much for your help in advance. =D

Regards,
KT
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic