The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by cwsteck]

Hi...I'm Back

I wrote a MIDlet application with the aid of your book and am, now, in the
process of writing a Conduit for it. Using the Conduit Manager, I plug in the
name for "Remote Database" with the name of the RecordStore that I use in the
MIDlet. When I run the Conduit using either the hardcoded name or
props.remoteNames[0] (Conduit Manager - Remote Database), I get...

"SyncException: File Not Found: Error Opening Database".

Where am I going wrong?

How do I identify the database associated with the MIDlet with the Conduit?

I would appreciate help on this.
Thanks
Charlie
import-bot (20211) [Avatar] Offline
#2
Re: MIDlet Database names and Conduits
[Originally posted by jwhite]

Charlie,

MIDlet databases are associated with a MIDlet Suite. Unfortunately today,
they must be crated by and then administered by the applications (midlets) of
the suite. In other words, one of your applications must set up or initialize
the database on the target device. This is one of the features being looked
at in MIDP the next generation.

jim

> Hi...I'm Back
>
> I wrote a MIDlet application with the aid of your book and am, now, in the
> process of writing a Conduit for it. Using the Conduit Manager, I plug in the
> name for "Remote Database" with the name of the RecordStore that I use in the
> MIDlet. When I run the Conduit using either the hardcoded name or
> props.remoteNames[0] (Conduit Manager - Remote Database), I get...
>
> "SyncException: File Not Found: Error Opening Database".
>
> Where am I going wrong?
>
> How do I identify the database associated with the MIDlet with the Conduit?
>
> I would appreciate help on this.
> Thanks
> Charlie
import-bot (20211) [Avatar] Offline
#3
No Java Conduit for MIDlet Database?
[Originally posted by oliver]

Hi, Jim,
I am trying to write a java conduit for a java palm application.I had the
exactly same problem with Charlie. I'm just not sure what you were saying.
Did you mean we can NOT write a java conduit to deal with a RecordStore of
MIDP reside in handheld? Is there another altertive way to do so?( In java )If
no way to handle the RecordStore of MIDP, is there a blank gap between JSync
Suite( CDK of Palm) and java applications(MIDP) on handheld device?
Very appreciate your help.

Oliver

> Charlie,
>
> MIDlet databases are associated with a MIDlet Suite. Unfortunately today,
> they must be crated by and then administered by the applications (midlets) of
> the suite. In other words, one of your applications must set up or initialize
> the database on the target device. This is one of the features being looked
> at in MIDP the next generation.
>
> jim
>
> > Hi...I'm Back
> >
> > I wrote a MIDlet application with the aid of your book and am, now, in the
> > process of writing a Conduit for it. Using the Conduit Manager, I plug in
the
> > name for "Remote Database" with the name of the RecordStore that I use in
the
> > MIDlet. When I run the Conduit using either the hardcoded name or
> > props.remoteNames[0] (Conduit Manager - Remote Database), I get...
> >
> > "SyncException: File Not Found: Error Opening Database".
> >
> > Where am I going wrong?
> >
> > How do I identify the database associated with the MIDlet with the Conduit?
> >
> > I would appreciate help on this.
> > Thanks
> > Charlie
import-bot (20211) [Avatar] Offline
#4
No Java Conduit for MIDlet Database?
[Originally posted by jwhite]

Oliver,

Thanks for your interest.

The current MIDP spec does not provide directly for Palm HotSync. As I
indicated in my previous message, the current version of the spec ties the
record stores to their application suites.

However, the URL below will point you to an interesting article in Java World
where a gentlemen has apprently worked to develop a HotSync conduit to
transfer information to an MIDP application. In effect, it appears that he
has written a conduit that communicates with an MIDP app that stores its data
in a MIDP record store.

http://www.javaworld.com/javaworld/jw-05-2002/jw-0531-palm.html

I should note that the author, Jeb Beich, appropriately warns "that HotSync
does not fall into the MIDP specification and hence is not supported by Sun
Microsystems" and he mentions portability across platforms can be an issue.

I haven't tried this yet myself, but you can bet I will be taking a look at
this myself. Many of you may find this unique approach helpful, at least
until improved MIDP specs and products are available.

Jim


> Hi, Jim,
> I am trying to write a java conduit for a java palm application.I had the
> exactly same problem with Charlie. I'm just not sure what you were saying.
> Did you mean we can NOT write a java conduit to deal with a RecordStore of
> MIDP reside in handheld? Is there another altertive way to do so?( In java )If
> no way to handle the RecordStore of MIDP, is there a blank gap between JSync
> Suite( CDK of Palm) and java applications(MIDP) on handheld device?
> Very appreciate your help.
>
> Oliver
>
> > Charlie,
> >
> > MIDlet databases are associated with a MIDlet Suite. Unfortunately today,
> > they must be crated by and then administered by the applications (midlets)
of
> > the suite. In other words, one of your applications must set up or
initialize
> > the database on the target device. This is one of the features being looked
> > at in MIDP the next generation.
> >
> > jim
> >
> > > Hi...I'm Back
> > >
> > > I wrote a MIDlet application with the aid of your book and am, now, in the
> > > process of writing a Conduit for it. Using the Conduit Manager, I plug in
> the
> > > name for "Remote Database" with the name of the RecordStore that I use in
> the
> > > MIDlet. When I run the Conduit using either the hardcoded name or
> > > props.remoteNames[0] (Conduit Manager - Remote Database), I get...
> > >
> > > "SyncException: File Not Found: Error Opening Database".
> > >
> > > Where am I going wrong?
> > >
> > > How do I identify the database associated with the MIDlet with the
Conduit?
> > >
> > > I would appreciate help on this.
> > > Thanks
> > > Charlie
import-bot (20211) [Avatar] Offline
#5
I AM TRYING!
[Originally posted by oliver]

Hello, Jim,
Thank you so much for your answer. I am trying the method in the article which
you mentioned.
Very appreciate your help!

Oliver
> Oliver,
>
> Thanks for your interest.
>
> The current MIDP spec does not provide directly for Palm HotSync. As I
> indicated in my previous message, the current version of the spec ties the
> record stores to their application suites.
>
> However, the URL below will point you to an interesting article in Java World
> where a gentlemen has apprently worked to develop a HotSync conduit to
> transfer information to an MIDP application. In effect, it appears that he
> has written a conduit that communicates with an MIDP app that stores its data
> in a MIDP record store.
>
> http://www.javaworld.com/javaworld/jw-05-2002/jw-0531-palm.html
>
> I should note that the author, Jeb Beich, appropriately warns "that HotSync
> does not fall into the MIDP specification and hence is not supported by Sun
> Microsystems" and he mentions portability across platforms can be an issue.
>
> I haven't tried this yet myself, but you can bet I will be taking a look at
> this myself. Many of you may find this unique approach helpful, at least
> until improved MIDP specs and products are available.
>
> Jim
>
>
> > Hi, Jim,
> > I am trying to write a java conduit for a java palm application.I had the
> > exactly same problem with Charlie. I'm just not sure what you were saying.
> > Did you mean we can NOT write a java conduit to deal with a RecordStore of
> > MIDP reside in handheld? Is there another altertive way to do so?( In java
)If
> > no way to handle the RecordStore of MIDP, is there a blank gap between JSync
> > Suite( CDK of Palm) and java applications(MIDP) on handheld device?
> > Very appreciate your help.
> >
> > Oliver
> >
> > > Charlie,
> > >
> > > MIDlet databases are associated with a MIDlet Suite. Unfortunately today,
> > > they must be crated by and then administered by the applications (midlets)
> of
> > > the suite. In other words, one of your applications must set up or
> initialize
> > > the database on the target device. This is one of the features being
looked
> > > at in MIDP the next generation.
> > >
> > > jim
> > >
> > > > Hi...I'm Back
> > > >
> > > > I wrote a MIDlet application with the aid of your book and am, now, in
the
> > > > process of writing a Conduit for it. Using the Conduit Manager, I
plug in
> > the
> > > > name for "Remote Database" with the name of the RecordStore that I use
in
> > the
> > > > MIDlet. When I run the Conduit using either the hardcoded name or
> > > > props.remoteNames[0] (Conduit Manager - Remote Database), I get...
> > > >
> > > > "SyncException: File Not Found: Error Opening Database".
> > > >
> > > > Where am I going wrong?
> > > >
> > > > How do I identify the database associated with the MIDlet with the
> Conduit?
> > > >
> > > > I would appreciate help on this.
> > > > Thanks
> > > > Charlie
hslikhari (1) [Avatar] Offline
#6
Re: MIDP Sync
Hi there,

I have created an MIDP (Java 2 ME) application and converted it into a .prc file so it will run on the Palm Emulator. I now need to synchronise data between this application and a text file that resides on my PC. I have used the Conduit Development Kit to create a conduit in Java however I get errors when I try to perform synchronisation. The first error I received from HotSync Manager was "Unknown Error Opening Database". I got this error when I designed my conduit to create a database on the Palm and open it. Since this did not work, I changed my MIDP application so that it would create a database instead of the conduit. I then got an error from HotSync Manager when I tried to write to the database: "Error writing to database".

I have tried running the Hello example available at http://www.javaworld.com/javaworld/jw-05-2002/jw-0531-palm.html but that suffers from the first error I got.. "Unknown Error Opening Database".

Does anybody have any example source code in Java for an MIDP application and a Java Conduit that successfully synchronises data (i.e. the PDA updates the PC records and vice-versa, using HotSync).