• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic