You could use the REST interface. That would just require you to fire off some 
HTTP requests to manage datastores/layers/etc:

http://docs.geoserver.org/2.0.0/user/extensions/rest/index.html

Regards,

Miles

> -----Original Message-----
> From: Lmhelp [mailto:[email protected]]
> Sent: Monday, 18 April 2011 3:08 AM
> To: [email protected]
> Subject: [Geoserver-users] Create data store, layers,
> [SEC=Unclassified] layers group programmatically in Java
> [SEC=Unclassified]
>
> Hi list,
>
> Thank you for reading my post.
>
> I have downloaded GeoServer WAR file.
> "http://localhost:8080/geoserver/"; works well.
>
> I am using a PostGIS database D with two tables T1 and T2.
>
> With the GeoServer Web client administration tool
> (http://localhost:8080/geoserver/) :
> (STEP 1)
> - I have created a store S "coupled with" D.
> - I have added two layers L1 and L2 respectively "coupled with" T1 and
> T2.
> - I have created a layers group G containing the two layers L1 and L2.
>
> (STEP 2)
> I have clicked "Layer Preview" and then I have chosen "OpenLayers" for
> G:
> it works well.
>
> My question is the following:
> I want to do STEP 1 programmatically (in Java).
> What JAR files do I have to use/add to my (Eclipse) project?
> What classes, interfaces... will allow me to do STEP 1?
> Can you advise me a tutorial, code example or a book?
>
> Thank you.
> Sincerely,
> --
> Lmhelp
>
>
> -----------------------------------------------------------------------
> -------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and
> improve
> application availability and disaster protection. Learn more about
> boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-
> sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not 
the
intended recipient, you are notified that use or dissemination of this 
communication is
strictly prohibited by Commonwealth law. If you have received this transmission 
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 
3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to