• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Java2ME on a Palm; hotsync?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have just downloaded the Micro edition and installed it,
the utilities that came with it a little to basic to be of interest.
Maybe someone know if there is a way to make the java programs on the Palm hotsync with the desktop without to much hazzle.
Something which might have been a useful test application would be a database on the palm syncronizing with the desktop (or several desktops). Any chance of just adding some JDBC drivers and do it more or less like on a desktop model (except JDBC connection is not always available).
I'll be equally happy if someone could just point me in the right direction. Maybe it's in the book? (if so I guess I can get it in Norway...)
On beforehand thanks,
Thomas (wannabe Palm Java programmer
 
Author
Posts: 6055
8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not somehting you can do easily. I think there are some companies trying to create products which do this. Check out SyncML, because htat would probably be the protocol they would be using for cradle syncs.

--Mark
 
Author
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Right now, J2ME solutions tend to be quite distinct from any native device functionality, for two reasons:
- security (I don't want rogue MIDLets monkeying about with my personal address book, reading it, and sending abusive emails to them all)
- portability (anything Palm-specific could not be used on, say, an Accompli 008)
So, the MIDlets sit in isolation currently on a Palm, and you cannot use HotSync.
What can you do?
1. Be the first person to write a Java equivalent generic sync library, and make a mint.
2. Wait for someone else to come up with a sync solution.
Good luck...
 
Richard Taylor
Author
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forgot to say, the book does have a synchronisation chapter. Its good (and I didn't write it!) and demonstrates the problems with syncing, and gives you a source code solution, which can easily be extrapolated out to solve any general sync situation for a bespoke application.
 
Author
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
syncml is particularly horrible and although it has been adopted by the j2me group it is a very complex way to achieve the job so I dont look forward to having to use it.

Originally posted by Mark Herschberg:
It's not somehting you can do easily. I think there are some companies trying to create products which do this. Check out SyncML, because htat would probably be the protocol they would be using for cradle syncs.

--Mark



------------------
Chanoch Wiggers
Architect for Professional Java Mobile Programming
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can build a conduit to have access to the palm databases... try to find more about conduit at http://www.palm.com , you can also write conduit in java.
Another solution is to communicate with a servlet via http and let it do the work of storing (in a real DB... not a palm one) and syncing.
 
Thomas Hansen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Many thanks!
Thank you all for useful input.
I looked into SyncML earlier, but then it was in its early draft stages.
I'll have the library send me a copy of the book also as it seems to have some interesting stuff.
Have a nice weekend,
Thomas
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I herd something about a tool called JSync, for conduit development in Java.
Looks like Coola is using it...
 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MIDP4Palm does not provide direct access to any Palm-specific APIs. Of course, a MIDP record store does map onto a Palm database, although the exact internal format used is unspecified. If you're feeling brave, though, you can indeed write a Palm conduit that can read those record stores and manipulate them. It will take experimentation on your part, though, and should probably only be done when you have a good understanding of Palm and conduit programming.

------------------
Eric Giguere
author of:
Java 2 Micro Edition : A Professional Developer's Guide
PalmTM Database Programming: The Complete Developer's Guide
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MIDP4Palm does not provide direct access to any Palm-specific APIs. Of course, a MIDP record store does map onto a Palm database, although the exact internal format used is unspecified. If you're feeling brave, though, you can indeed write a Palm conduit that can read those record stores and manipulate them. It will take experimentation on your part, though, and should probably only be done when you have a good understanding of Palm and conduit programming.

------------------
Eric Giguere
author of:
Java 2 Micro Edition : A Professional Developer's Guide
PalmTM Database Programming: The Complete Developer's Guide
 
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

If you are interested in SyncML and Java, check out this project:
http://sync4j.sourceforge.net/
 
Mark Herschberg
Author
Posts: 6055
8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"sullis",
Welcome to javaranch.
PROPER NAMES ARE NOW REQUIRED
Please look carefully at official naming policy at javaranch & reregister yourself with proper first & last name. Please adhere to official naming policy & help maintain the decorum of the forum. The naming policy can be found at http://www.javaranch.com/name.jsp
--Mark
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you want to "sync" with the host via a serial cable, see MochaSoft PPP. This program allows a palm to utilize the TCP/IP stack.
http://www.mochasoft.dk/palm.html
 
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic