integrate the geonetwork in other application?

8 messages Options
Embed this post
Permalink
kkk

integrate the geonetwork in other application?

Reply Threaded More More options
Print post
Permalink
Hi:
I have another java swing application and I want to use the geonetwork as a CSW instance.
For example in my application I have to register some ows urls(http://www.example.org:8080/wcs) in a config file,now I want to register them with a CSW insance ,so I try to use geonetwork.
Here I have two problems:
1) Can I integrate the geonetwork into my application?
2) If the answer of the above is yes,so how to do? That's to say how to install the geonetwork quietly when I run the application
Anyone can give some advise?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Heikki Doeleman

Re: integrate the geonetwork in other application?

Reply Threaded More More options
Print post
Permalink
hello Maven,

yes, it should  be possible.

The way to do it should be to include geonetwork.jar in your classpath and treat it like you would any other library. There are probably some dependencies with other jars that normally are in <geonetwork-root>/web/geonetwork/WEB-INF/lib, just copy those as well into your application's classpath.

Kind regards
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:21 AM, maven apache <[hidden email]> wrote:
Hi:
I have another java swing application and I want to use the geonetwork as a CSW instance.
For example in my application I have to register some ows urls(http://www.example.org:8080/wcs) in a config file,now I want to register them with a CSW insance ,so I try to use geonetwork.
Here I have two problems:
1) Can I integrate the geonetwork into my application?
2) If the answer of the above is yes,so how to do? That's to say how to install the geonetwork quietly when I run the application
Anyone can give some advise?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
kkk

Re: integrate the geonetwork in other application?

Reply Threaded More More options
Print post
Permalink


2009/10/27 heikki <[hidden email]>
hello Maven,

yes, it should  be possible.

The way to do it should be to include geonetwork.jar in your classpath and treat it like you would any other library. There are probably some dependencies with other jars that normally are in <geonetwork-root>/web/geonetwork/WEB-INF/lib, just copy those as well into your application's classpath.
Thanks for your reply. 
It seems to be easy. But I am afraid how to register ,query and use the ows(ogc web service) urls.
Since with the independent geonetwork one can do the above operation(register  query) through a web manner,I am not sure how to do it in my application.

Kind regards
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:21 AM, maven apache <[hidden email]> wrote:
Hi:
I have another java swing application and I want to use the geonetwork as a CSW instance.
For example in my application I have to register some ows urls(http://www.example.org:8080/wcs) in a config file,now I want to register them with a CSW insance ,so I try to use geonetwork.
Here I have two problems:
1) Can I integrate the geonetwork into my application?
2) If the answer of the above is yes,so how to do? That's to say how to install the geonetwork quietly when I run the application
Anyone can give some advise?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Heikki Doeleman

Re: integrate the geonetwork in other application?

Reply Threaded More More options
Print post
Permalink
yes, I think it is not quite THAT easy as I sketched :-)

I think you'll might have some difficulty also in setting up things like the Jeeves application context, which normally is set up when the GN web app starts. Although it should be possible to do it from your app too, I think.

As for the operations accessible through the web : I think you could do those operations by "forwarding" them from your own app to GeoNetwork using a programmatic HTTP request from your Java code. It may not be ideal but that may be the easiest way to go forward now.

In future, we hope to have GeoNetwork more modularized, and so make it more easy to use its component parts separately as a library. For now I think you'll need some fiddling around as sketched to get it to work.

Kind regards
Heikki Doeleman



On Tue, Oct 27, 2009 at 8:05 PM, maven apache <[hidden email]> wrote:


2009/10/27 heikki <[hidden email]>

hello Maven,

yes, it should  be possible.

The way to do it should be to include geonetwork.jar in your classpath and treat it like you would any other library. There are probably some dependencies with other jars that normally are in <geonetwork-root>/web/geonetwork/WEB-INF/lib, just copy those as well into your application's classpath.
Thanks for your reply. 
It seems to be easy. But I am afraid how to register ,query and use the ows(ogc web service) urls.
Since with the independent geonetwork one can do the above operation(register  query) through a web manner,I am not sure how to do it in my application.

Kind regards
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:21 AM, maven apache <[hidden email]> wrote:
Hi:
I have another java swing application and I want to use the geonetwork as a CSW instance.
For example in my application I have to register some ows urls(http://www.example.org:8080/wcs) in a config file,now I want to register them with a CSW insance ,so I try to use geonetwork.
Here I have two problems:
1) Can I integrate the geonetwork into my application?
2) If the answer of the above is yes,so how to do? That's to say how to install the geonetwork quietly when I run the application
Anyone can give some advise?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
kkk

Re: integrate the geonetwork in other application?

Reply Threaded More More options
Print post
Permalink


2009/10/27 heikki <[hidden email]>
yes, I think it is not quite THAT easy as I sketched :-)

I think you'll might have some difficulty also in setting up things like the Jeeves application context, which normally is set up when the GN web app starts. Although it should be possible to do it from your app too, I think.

As for the operations accessible through the web : I think you could do those operations by "forwarding" them from your own app to GeoNetwork using a programmatic HTTP request from your Java code. It may not be ideal but that may be the easiest way to go forward now.

In future, we hope to have GeoNetwork more modularized, and so make it more easy to use its component parts separately as a library. For now I think you'll need some fiddling around as sketched to get it to work.

Kind regards
Thank you very much for your  detailed advise!!
So I have a idea but I am not sure it is right or not:
I copy all the files under the GN-roots/* to a directory in my application,so when I run my application I also call a script {maybe :java.lang.Runtime.exec("Myapplication/GN/bin/start-geonetwork.bat")} to start the GN. Also I can add some interface in my application to interact with the GN(CSW).
I wonder the idea is feasible or not?
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:05 PM, maven apache <[hidden email]> wrote:


2009/10/27 heikki <[hidden email]>

hello Maven,

yes, it should  be possible.

The way to do it should be to include geonetwork.jar in your classpath and treat it like you would any other library. There are probably some dependencies with other jars that normally are in <geonetwork-root>/web/geonetwork/WEB-INF/lib, just copy those as well into your application's classpath.
Thanks for your reply. 
It seems to be easy. But I am afraid how to register ,query and use the ows(ogc web service) urls.
Since with the independent geonetwork one can do the above operation(register  query) through a web manner,I am not sure how to do it in my application.

Kind regards
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:21 AM, maven apache <[hidden email]> wrote:
Hi:
I have another java swing application and I want to use the geonetwork as a CSW instance.
For example in my application I have to register some ows urls(http://www.example.org:8080/wcs) in a config file,now I want to register them with a CSW insance ,so I try to use geonetwork.
Here I have two problems:
1) Can I integrate the geonetwork into my application?
2) If the answer of the above is yes,so how to do? That's to say how to install the geonetwork quietly when I run the application
Anyone can give some advise?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Heikki Doeleman

Re: integrate the geonetwork in other application?

Reply Threaded More More options
Print post
Permalink
hi Maven,

I think your approach should work, although it sounds a bit unconventional, you're not really using GN as a library like that but just starting it as a separate application.

In the Bolsena meeting this spring Just van den Broecke has started to write a Junit extension "JeevesTestCase" which I think should contain code to set up the Jeeves application context without actually starting the GeoNetwork web application. It's not yet committed to trunk, but I've asked him to send me the code, if it's useful I'll pass it on to you here.

Kind regards
Heikki Doeleman



On Tue, Oct 27, 2009 at 11:09 PM, maven apache <[hidden email]> wrote:


2009/10/27 heikki <[hidden email]>
yes, I think it is not quite THAT easy as I sketched :-)


I think you'll might have some difficulty also in setting up things like the Jeeves application context, which normally is set up when the GN web app starts. Although it should be possible to do it from your app too, I think.

As for the operations accessible through the web : I think you could do those operations by "forwarding" them from your own app to GeoNetwork using a programmatic HTTP request from your Java code. It may not be ideal but that may be the easiest way to go forward now.

In future, we hope to have GeoNetwork more modularized, and so make it more easy to use its component parts separately as a library. For now I think you'll need some fiddling around as sketched to get it to work.

Kind regards
Thank you very much for your  detailed advise!!
So I have a idea but I am not sure it is right or not:
I copy all the files under the GN-roots/* to a directory in my application,so when I run my application I also call a script {maybe :java.lang.Runtime.exec("Myapplication/GN/bin/start-geonetwork.bat")} to start the GN. Also I can add some interface in my application to interact with the GN(CSW).
I wonder the idea is feasible or not?
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:05 PM, maven apache <[hidden email]> wrote:


2009/10/27 heikki <[hidden email]>

hello Maven,

yes, it should  be possible.

The way to do it should be to include geonetwork.jar in your classpath and treat it like you would any other library. There are probably some dependencies with other jars that normally are in <geonetwork-root>/web/geonetwork/WEB-INF/lib, just copy those as well into your application's classpath.
Thanks for your reply. 
It seems to be easy. But I am afraid how to register ,query and use the ows(ogc web service) urls.
Since with the independent geonetwork one can do the above operation(register  query) through a web manner,I am not sure how to do it in my application.

Kind regards
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:21 AM, maven apache <[hidden email]> wrote:
Hi:
I have another java swing application and I want to use the geonetwork as a CSW instance.
For example in my application I have to register some ows urls(http://www.example.org:8080/wcs) in a config file,now I want to register them with a CSW insance ,so I try to use geonetwork.
Here I have two problems:
1) Can I integrate the geonetwork into my application?
2) If the answer of the above is yes,so how to do? That's to say how to install the geonetwork quietly when I run the application
Anyone can give some advise?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Just van den Broecke

Re: integrate the geonetwork in other application?

Reply Threaded More More options
Print post
Permalink
Hi,

Yes, in order to do unit-testing I needed a way to invoke GN/Jeeves as a
library. This work was initially done in the geocat.ch branch but in
Bolsena (june 2009) I started porting this work into trunk. The test
framework still needs finalization to allow both local and remote
invocation. I just checked-in all modified files. All relevant files can
be found here:
- test framework
http://geonetwork.svn.sourceforge.net/viewvc/geonetwork/trunk/src/org/fao/geonet/test
- sample tests
http://geonetwork.svn.sourceforge.net/viewvc/geonetwork/trunk/test

Back to the question: the class to run Jeeves as a library ("local")
without a servlet engine and dispatch GN requests, is within Jeeves itself:
http://geonetwork.svn.sourceforge.net/viewvc/geonetwork/trunk/jeeves/src/jeeves/server/local

See LocalJeevesMediator.java in the test framework how GN is started
locally. The "trick" is to provide all the proper paths to configs. Hope
this helps.

best,


Just van den Broecke




heikki wrote:

> hi Maven,
>
> I think your approach should work, although it sounds a bit
> unconventional, you're not really using GN as a library like that but
> just starting it as a separate application.
>
> In the Bolsena meeting this spring Just van den Broecke has started to
> write a Junit extension "JeevesTestCase" which I think should contain
> code to set up the Jeeves application context without actually starting
> the GeoNetwork web application. It's not yet committed to trunk, but
> I've asked him to send me the code, if it's useful I'll pass it on to
> you here.
>
> Kind regards
> Heikki Doeleman
>
>
>
> On Tue, Oct 27, 2009 at 11:09 PM, maven apache <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>
>     2009/10/27 heikki <[hidden email] <mailto:[hidden email]>>
>
>         yes, I think it is not quite THAT easy as I sketched :-)
>
>
>         I think you'll might have some difficulty also in setting up
>         things like the Jeeves application context, which normally is
>         set up when the GN web app starts. Although it should be
>         possible to do it from your app too, I think.
>
>         As for the operations accessible through the web : I think you
>         could do those operations by "forwarding" them from your own app
>         to GeoNetwork using a programmatic HTTP request from your Java
>         code. It may not be ideal but that may be the easiest way to go
>         forward now.
>
>         In future, we hope to have GeoNetwork more modularized, and so
>         make it more easy to use its component parts separately as a
>         library. For now I think you'll need some fiddling around as
>         sketched to get it to work.
>
>         Kind regards
>
>     Thank you very much for your  detailed advise!!
>     So I have a idea but I am not sure it is right or not:
>     I copy all the files under the GN-roots/* to a directory in my
>     application,so when I run my application I also call a script {maybe
>     :java.lang.Runtime.exec("Myapplication/GN/bin/start-geonetwork.bat")}
>     to start the GN. Also I can add some interface in my application
>     to interact with the GN(CSW).
>     I wonder the idea is feasible or not?
>
>         Heikki Doeleman
>
>
>
>
>         On Tue, Oct 27, 2009 at 8:05 PM, maven apache
>         <[hidden email] <mailto:[hidden email]>> wrote:
>
>
>
>             2009/10/27 heikki <[hidden email]
>             <mailto:[hidden email]>>
>
>                 hello Maven,
>
>                 yes, it should  be possible.
>
>                 The way to do it should be to include geonetwork.jar in
>                 your classpath and treat it like you would any other
>                 library. There are probably some dependencies with other
>                 jars that normally are in
>                 <geonetwork-root>/web/geonetwork/WEB-INF/lib, just copy
>                 those as well into your application's classpath.
>
>             Thanks for your reply.
>             It seems to be easy. But I am afraid how to register ,query
>             and use the ows(ogc web service) urls.
>             Since with the independent geonetwork one can do the above
>             operation(register  query) through a web manner,I am not
>             sure how to do it in my application.
>
>
>                 Kind regards
>                 Heikki Doeleman
>
>
>
>
>                 On Tue, Oct 27, 2009 at 8:21 AM, maven apache
>                 <[hidden email] <mailto:[hidden email]>>
>                 wrote:
>
>                     Hi:
>                     I have another java swing application and I want to
>                     use the geonetwork as a CSW instance.
>                     For example in my application I have to register
>                     some ows urls(http://www.example.org:8080/wcs) in a
>                     config file,now I want to register them with a CSW
>                     insance ,so I try to use geonetwork.
>                     Here I have two problems:
>                     1) Can I integrate the geonetwork into my application?
>                     2) If the answer of the above is yes,so how to do?
>                     That's to say how to install the geonetwork quietly
>                     when I run the application
>                     Anyone can give some advise?
>
>                     ------------------------------------------------------------------------------
>                     Come build with us! The BlackBerry(R) Developer
>                     Conference in SF, CA
>                     is the only developer event you need to attend this
>                     year. Jumpstart your
>                     developing skills, take BlackBerry mobile
>                     applications to market and stay
>                     ahead of the curve. Join us from November 9 - 12,
>                     2009. Register now!
>                     http://p.sf.net/sfu/devconference
>                     _______________________________________________
>                     GeoNetwork-devel mailing list
>                     [hidden email]
>                     <mailto:[hidden email]>
>                     https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
>                     GeoNetwork OpenSource is maintained at
>                     http://sourceforge.net/projects/geonetwork
>
>
>
>
>             ------------------------------------------------------------------------------
>             Come build with us! The BlackBerry(R) Developer Conference
>             in SF, CA
>             is the only developer event you need to attend this year.
>             Jumpstart your
>             developing skills, take BlackBerry mobile applications to
>             market and stay
>             ahead of the curve. Join us from November 9 - 12, 2009.
>             Register now!
>             http://p.sf.net/sfu/devconference
>             _______________________________________________
>             GeoNetwork-devel mailing list
>             [hidden email]
>             <mailto:[hidden email]>
>             https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
>             GeoNetwork OpenSource is maintained at
>             http://sourceforge.net/projects/geonetwork
>
>
>
>
>     ------------------------------------------------------------------------------
>     Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>     is the only developer event you need to attend this year. Jumpstart your
>     developing skills, take BlackBerry mobile applications to market and
>     stay
>     ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>     http://p.sf.net/sfu/devconference
>     _______________________________________________
>     GeoNetwork-devel mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
>     GeoNetwork OpenSource is maintained at
>     http://sourceforge.net/projects/geonetwork
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> GeoNetwork-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
kkk

Re: integrate the geonetwork in other application?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Heikki Doeleman


2009/10/28 heikki <[hidden email]>
hi Maven,

I think your approach should work, although it sounds a bit unconventional, you're not really using GN as a library like that but just starting it as a separate application.

In the Bolsena meeting this spring Just van den Broecke has started to write a Junit extension "JeevesTestCase" which I think should contain code to set up the Jeeves application context without actually starting the GeoNetwork web application. It's not yet committed to trunk, but I've asked him to send me the code, if it's useful I'll pass it on to you here.

Thanks for your advise,I think I may use the first way(start the geonetwork as a separate app) since this manner would be easier. ^_^


Also thanks for Just van den Broecke's codes! 

Kind regards
Heikki Doeleman




On Tue, Oct 27, 2009 at 11:09 PM, maven apache <[hidden email]> wrote:


2009/10/27 heikki <[hidden email]>
yes, I think it is not quite THAT easy as I sketched :-)


I think you'll might have some difficulty also in setting up things like the Jeeves application context, which normally is set up when the GN web app starts. Although it should be possible to do it from your app too, I think.

As for the operations accessible through the web : I think you could do those operations by "forwarding" them from your own app to GeoNetwork using a programmatic HTTP request from your Java code. It may not be ideal but that may be the easiest way to go forward now.

In future, we hope to have GeoNetwork more modularized, and so make it more easy to use its component parts separately as a library. For now I think you'll need some fiddling around as sketched to get it to work.

Kind regards
Thank you very much for your  detailed advise!!
So I have a idea but I am not sure it is right or not:
I copy all the files under the GN-roots/* to a directory in my application,so when I run my application I also call a script {maybe :java.lang.Runtime.exec("Myapplication/GN/bin/start-geonetwork.bat")} to start the GN. Also I can add some interface in my application to interact with the GN(CSW).
I wonder the idea is feasible or not?
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:05 PM, maven apache <[hidden email]> wrote:


2009/10/27 heikki <[hidden email]>

hello Maven,

yes, it should  be possible.

The way to do it should be to include geonetwork.jar in your classpath and treat it like you would any other library. There are probably some dependencies with other jars that normally are in <geonetwork-root>/web/geonetwork/WEB-INF/lib, just copy those as well into your application's classpath.
Thanks for your reply. 
It seems to be easy. But I am afraid how to register ,query and use the ows(ogc web service) urls.
Since with the independent geonetwork one can do the above operation(register  query) through a web manner,I am not sure how to do it in my application.

Kind regards
Heikki Doeleman




On Tue, Oct 27, 2009 at 8:21 AM, maven apache <[hidden email]> wrote:
Hi:
I have another java swing application and I want to use the geonetwork as a CSW instance.
For example in my application I have to register some ows urls(http://www.example.org:8080/wcs) in a config file,now I want to register them with a CSW insance ,so I try to use geonetwork.
Here I have two problems:
1) Can I integrate the geonetwork into my application?
2) If the answer of the above is yes,so how to do? That's to say how to install the geonetwork quietly when I run the application
Anyone can give some advise?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork