Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E365180A3 for ; Fri, 10 Jul 2015 14:57:41 +0000 (UTC) Received: (qmail 70564 invoked by uid 500); 10 Jul 2015 14:57:41 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 70506 invoked by uid 500); 10 Jul 2015 14:57:41 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 70495 invoked by uid 99); 10 Jul 2015 14:57:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 14:57:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mkrieken@hotmail.com designates 157.55.2.43 as permitted sender) Received: from [157.55.2.43] (HELO DUB004-OMC3S34.hotmail.com) (157.55.2.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 14:55:25 +0000 Received: from DUB124-W40 ([157.55.2.7]) by DUB004-OMC3S34.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 10 Jul 2015 07:57:13 -0700 X-TMN: [mlnWsjdOkGnYxyl9RRVQhOB9AMCNTln+] X-Originating-Email: [mkrieken@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_cf257651-871b-42f7-94a7-a0798abf0df9_" From: martin krieken To: "dev@chemistry.apache.org" Subject: RE: Cmisservlet init param Date: Fri, 10 Jul 2015 16:57:12 +0200 Importance: Normal In-Reply-To: <7d5d308e8192c8c7d3104b2362e265e3@jpberlin.de> References: ,<7d5d308e8192c8c7d3104b2362e265e3@jpberlin.de> MIME-Version: 1.0 X-OriginalArrivalTime: 10 Jul 2015 14:57:13.0289 (UTC) FILETIME=[B45A0390:01D0BB20] X-Virus-Checked: Checked by ClamAV on apache.org --_cf257651-871b-42f7-94a7-a0798abf0df9_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Florian I will give it a try=2C but i think it should work. Thank you for you suppo= rt. Kind Regards=2C Martin > Date: Fri=2C 10 Jul 2015 16:23:53 +0200 > From: fmui@apache.org > To: dev@chemistry.apache.org > CC: mkrieken@hotmail.com > Subject: Re: Cmisservlet init param >=20 > Hi Martin=2C >=20 > Have you tried setting the init parameters directly=2C like so: >=20 > dispatcher.setInitParameter("cmisVersion"=2C "1.0")=3B >=20 >=20 > If that works for you=2C then you don't need your=20 > SpringCmisWebServicesServlet class. >=20 >=20 > - Florian >=20 >=20 > > I am a java programmer and i currently i working myself into spring 4 > > (with java 8). I am trying to build a Dam and a cmis connector would > > be a really nice feature to have esp with the connector with Adobe=20 > > drive. > >=20 > > I looked into the project and esp into the inmemory setup. I was able > > to connect a spring project but i encounterd some thing that were not > > compatible with the non-xml setup i am trying to run. I was able to > > get it running but with some overriding etc=2C but i would really like > > to avoid it if posible. > >=20 > > One of the things that is currently set as an init param on the > > servlet using the xml setup is the Cmisversion. > > Both versions use the same servlet and it then sets the version based > > on the init param. Would it be posible to make those functions public > > or maybe pass the version in using a constructor? > >=20 > > CmisWebServicesServlet servlet =3D new CmisWebServicesServlet()=3B > > servlet.setCmisVersion("1.0") //Or a double maybe..dunno how the=20 > > nummering goes > >=20 > > I am using a setup where i use spring in combination with a non-xml > > setup. Currently i do something likes this > >=20 > > public class CmisInitializer implements WebApplicationInitializer { > >=20 > > public void onStartup(ServletContext servletContext){ > > WebApplicationContext context =3D getContext()=3B > > servletContext.addListener(new=20 > > ContextLoaderListener(context))=3B > >=20 > > ServletRegistration.Dynamic dispatcher =3D > > context.addServlet(name=2C new SpringCmisWebServicesServlet(version))= =3B > >=20 > > dispatcher.setLoadOnStartup(1)=3B > > dispatcher.setAsyncSupported(true)=3B > > dispatcher.addMapping(mapping)=3B > > } > >=20 > > } > >=20 > > Currently i made a SpringCmisWebServicesServlet where i could pass it > > in using a constructor=2C but having a function would be maybe more > > clear for the future. > >=20 > > Kind Regards=2C > >=20 > > Martin van Krieken >=20 = --_cf257651-871b-42f7-94a7-a0798abf0df9_--