You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by mps fhs <ms...@fh-salzburg.ac.at> on 2012/07/16 17:50:30 UTC
Start developing a CMIS Server
Hello there!
I'm in the need to develop a CMIS Server but I didn't get it to have a
functional base to start developing. I downloaded the sources and build
the whole stuff using maven with success. I read the article on
http://chemistry.apache.org/java/how-to/how-to-create-server.html as
this was exactly what I was looking for: a step-by-step guide for
creating a server skeleton. I prefered the method without maven but
there is no download for a package called "OpenCMIS Server Framework".
So I did the maven-way, found out the correct values for the maven
scripts and got a working war file. I must confess I don't know waht to
do next. I read the line "In order to use your connector, copy your
compiled connector code into this WAR file and overwrite
|/WEB-INF/classes/repository.properties|." but unfortunately I haven't
got any idea how to to this. Can I create just a plain java project in
for example eclipse, include the libs from opencmis, build to a class
file and copy this file (teh files) into the war-container?
Thank in advance for your suggestions
Michael
Re: Start developing a CMIS Server
Posted by Jens Hübel <je...@googlemail.com>.
Hi Michael,
if you have built the whole project using maven I recommend you to perform
a maven eclipse:eclipse. Then you get generated all your eclipse projects
and you can import those from your Eclipse by using File/Import…
Take a look the project chemistry-opencmis-server-inmemory. It contains
all the dependencies you will need and can act as a sample for your setup.
If you don't want to use maven you can create a similar layout manually
for your project. You can omit the client-bindings (only used for unit
tests) and test-util. server-support is optional (contains for example the
query parser).
In the server-bindings project you will find a .war and .jar file. Add the
.jar to your dependencies.
An alternative way to get started is to open the server-bindings project.
You also can take this as a base and extend it step by step. This is the
reason why it is packaged as a war. It contains the minimum to get
started. repository.properties is central point where you can hook your
classes to the server framework. Again you may look at the InMemory server
how it is done.
Hope that helps…
Jens
On Mon, Jul 16, 2012 at 5:50 PM, mps fhs <
mschieferer.itsb-b2009@fh-salzburg.ac.at> wrote:
> Hello there!
>
> I'm in the need to develop a CMIS Server but I didn't get it to have a
> functional base to start developing. I downloaded the sources and build the
> whole stuff using maven with success. I read the article on
> http://chemistry.apache.org/**java/how-to/how-to-create-**server.html<http://chemistry.apache.org/java/how-to/how-to-create-server.html>as this was exactly what I was looking for: a step-by-step guide for
> creating a server skeleton. I prefered the method without maven but there
> is no download for a package called "OpenCMIS Server Framework". So I did
> the maven-way, found out the correct values for the maven scripts and got a
> working war file. I must confess I don't know waht to do next. I read the
> line "In order to use your connector, copy your compiled connector code
> into this WAR file and overwrite |/WEB-INF/classes/repository.**properties|."
> but unfortunately I haven't got any idea how to to this. Can I create just
> a plain java project in for example eclipse, include the libs from
> opencmis, build to a class file and copy this file (teh files) into the
> war-container?
>
> Thank in advance for your suggestions
> Michael
>
Re: Start developing a CMIS Server
Posted by Florian Müller <fm...@apache.org>.
Hi Michael,
Your are looking for the "OpenCMIS Server WAR" package.
Create a "Dynamic Web Project" in Eclipse and copy the WEB-INF directory
from the "OpenCMIS Server WAR" package into the WEB-INF directory of the
Eclipse project. (You may want to skip the websphere directory if you
don't want to deploy it on WebSphere.)
Add the libraries in the /WEB-INF/lib directory to your Eclipse project
and you are ready to go.
Now you have implement two classes that are derived from
AbstractServiceFactory and AbstractCmisService. Put the class name of
your service factory class into repository.properties file.
If you need a bit of inspiration, have a look at the FileShare
implementation [1].
- Florian
[1]
https://svn.apache.org/repos/asf/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-fileshare/src/main/java/org/apache/chemistry/opencmis/fileshare/
> Hello there!
>
> I'm in the need to develop a CMIS Server but I didn't get it to have a
> functional base to start developing. I downloaded the sources and build
> the whole stuff using maven with success. I read the article on
> http://chemistry.apache.org/java/how-to/how-to-create-server.html as
> this was exactly what I was looking for: a step-by-step guide for
> creating a server skeleton. I prefered the method without maven but
> there is no download for a package called "OpenCMIS Server Framework".
> So I did the maven-way, found out the correct values for the maven
> scripts and got a working war file. I must confess I don't know waht to
> do next. I read the line "In order to use your connector, copy your
> compiled connector code into this WAR file and overwrite
> |/WEB-INF/classes/repository.properties|." but unfortunately I haven't
> got any idea how to to this. Can I create just a plain java project in
> for example eclipse, include the libs from opencmis, build to a class
> file and copy this file (teh files) into the war-container?
>
> Thank in advance for your suggestions
> Michael
>
Re: Start developing a CMIS Server
Posted by "Huebel, Jens" <j....@sap.com>.
Hi Michael,
if you have built the whole project using maven I recommend you to perform
a maven eclipse:eclipse. Then you get generated all your eclipse projects
and you can import those from your Eclipse by using File/ImportŠ
Take a look the project chemistry-opencmis-server-inmemory. It contains
all the dependencies you will need and can act as a sample for your setup.
If you don't want to use maven you can create a similar layout manually
for your project. You can omit the client-bindings (only used for unit
tests) and test-util. server-support is optional (contains for example the
query parser).
In the server-bindings project you will find a .war and .jar file. Add the
.jar to your dependencies.
An alternative way to get started is to open the server-bindings project.
You also can take this as a base and extend it step by step. This is the
reason why it is packaged as a war. It contains the minimum to get
started. repository.properties is central point where you can hook your
classes to the server framework. Again you may look at the InMemory server
how it is done.
Hope that helpsŠ
Jens
On 16.07.12 17:50, "mps fhs" <ms...@fh-salzburg.ac.at>
wrote:
>Hello there!
>
>I'm in the need to develop a CMIS Server but I didn't get it to have a
>functional base to start developing. I downloaded the sources and build
>the whole stuff using maven with success. I read the article on
>http://chemistry.apache.org/java/how-to/how-to-create-server.html as
>this was exactly what I was looking for: a step-by-step guide for
>creating a server skeleton. I prefered the method without maven but
>there is no download for a package called "OpenCMIS Server Framework".
>So I did the maven-way, found out the correct values for the maven
>scripts and got a working war file. I must confess I don't know waht to
>do next. I read the line "In order to use your connector, copy your
>compiled connector code into this WAR file and overwrite
>|/WEB-INF/classes/repository.properties|." but unfortunately I haven't
>got any idea how to to this. Can I create just a plain java project in
>for example eclipse, include the libs from opencmis, build to a class
>file and copy this file (teh files) into the war-container?
>
>Thank in advance for your suggestions
>Michael