[MOBY-dev] Caching revisited
Paul Gordon
gordonp at ucalgary.ca
Fri Mar 28 21:55:47 UTC 2008
Hi Ola,
We decided to create a single caching mechanism in jMoby, and Eddie
implemented this at the BioHackathon last month. I have yet to change
MobyRequest to use this, but it's on my shortlist (It relates to the
problem Mark Fiers was having last week). Your trouble gives me
incentive to switch it over sooner, as in the next couple of days. :-)
In any case, the existing code shouldn't refetch the ontology unless you
either don't call loadDataTypes(yourCacheURL) when you start your JVM,
or you are specifying a different registry argument.
Regards,
Paul
Ola Spjuth wrote:
> Hi,
>
> I just can't get caching to work properly with jMoby! it has cost me
> so many hours and I still can't figure it out. I want to cache as much
> as possible in the background on first start, then on second start
> everything should be as fast as possible. I am able to cache the
> registry (thanks to previous discussion here and Pauls assistance),
> but even so I I still get the annoying Fetching data type ontology
> from http://moby.ucalgary.ca/RESOURCES/MOBY-S/Objects when I invoke a
> service. What am I doing wrong? I have attached a Java snippet with a
> main() that demonstrates this.
>
> It seems it is the invokeService() that always downloads the data type
> ontology. Am I calling this wrong or is it a bug?
>
> Thanks,
>
> .../Ola
>
>
> ------------------------------------------------------------------------
>
More information about the MOBY-dev
mailing list