[GeoNetwork-devel] How to use ImportFromDir class to achieve importing the metadata files automatically?

Now, i am monitoring one local directory (such as C:\data) on the computer
where the geonetwork server installed. If new files are saved at the above
local directory, i want to use the ImportFromDir.java class to import the
whole local directory into database (such as jeeves, embedded in
geonetwork). I dont want to import them from the /srv/en/main.home webpage
using the batchimport GUI. I want to do that using program automatically.
How should I do?

Any suggestion will be appreciated!

Thanks in advance!
--
View this message in context: http://n2.nabble.com/How-to-use-ImportFromDir-class-to-achieve-importing-the-metadata-files-automatically--tp2885169p2885169.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.

Hi Anthony, you could have a look to the local filesystem harvester
new in current RC or trunk if you're using those versions.

HTH.

Francois

2009/5/13 anthonyM <owenfan0715@anonymised.com>:

Now, i am monitoring one local directory (such as C:\data) on the computer
where the geonetwork server installed. If new files are saved at the above
local directory, i want to use the ImportFromDir.java class to import the
whole local directory into database (such as jeeves, embedded in
geonetwork). I dont want to import them from the /srv/en/main.home webpage
using the batchimport GUI. I want to do that using program automatically.
How should I do?

Any suggestion will be appreciated!

Thanks in advance!
--

Francois, Thanks for your reply.

Yes, I use the Geonetwork v2.2 now and I find that the ImportFromDir.java
class can complete the batch import through webpage.

But, I still dont know how to use this class to import the files which I
monitored into the database. I think if i could call the ImportFromDir
class (Init and Exec methods) correctly, I could achieve what I want. Is
there any example codes about calling this calss in JAVA, not XSL? I cannot
use XSL. thanks.

Francois wrote:

Hi Anthony, you could have a look to the local filesystem harvester
new in current RC or trunk if you're using those versions.

HTH.

Francois

2009/5/13 anthonyM <owenfan0715@anonymised.com>:

Now, i am monitoring one local directory (such as C:\data) on the
computer
where the geonetwork server installed. If new files are saved at the
above
local directory, i want to use the ImportFromDir.java class to import the
whole local directory into database (such as jeeves, embedded in
geonetwork). I dont want to import them from the /srv/en/main.home
webpage
using the batchimport GUI. I want to do that using program automatically.
How should I do?

Any suggestion will be appreciated!

Thanks in advance!
--

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
View this message in context: http://n2.nabble.com/How-to-batch-import-the-metadata-files-into-metadata-database-automatically--not-from-webpage%2C-but-using-codes-directly-tp2885169p2891020.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.