Hi,

2 small tweaks to the POM, I called the version 1.0.0-SNAPSHOT (if a
/tags/releases/xxx-1.0.0-incubating or similar tag gets added, please
change once the code is "frozen") and added ".examples" to the groupID.
Unless we all jointly agree not to care and throw things into the top level.

Bertrand who is also involved in Sling and mentions it as a pattern a lot,
will know how Sling does that. Under a  parent POM for Sling Examples (on
Sling top level groupId) all examples there share
<groupId>org.apache.sling.samples</groupId>

So regardless of examples using a DeviceMap parent POM, the Apache global
ones or none at all, could we follow that practice[?]

Since examples for "Client/Classifier" exist so far, I was wondering if
grouping them together semantically (under "client" or similar) made sense?
Sling doesn't do that, and each individual example project has quite
different versions and levels of maturity as I see, from "0.1.0-SNAPSHOT"
to "2.0.3-SNAPSHOT" there are plenty. I am unbiassed here, an interesting
question is, how if we even need to examples could be tagged?

Given they rarely present a dependency (in Maven or elsewhere) it may not
be so critical and multiple projects even for other languages like VB or C#
(maybe without POM) could co-exist in the "examples" folder.

WDYT?

Werner


On Thu, Jul 24, 2014 at 5:30 PM, Werner Keil <[email protected]> wrote:

> It's mainly used by CDI/JBoss inspired projects like DeltaSpike or
> Agorava, but Arquillian does some of that, setting up an "embedded" EE
> container within a test runner for the desired target environment.
>
> On Thu, Jul 24, 2014 at 5:28 PM, Reza <[email protected]>
> wrote:
>
>> of course, don't forget resin and jetty too :)
>>
>> It might be worth while to look into getting some sort of unit test which
>> bootstraps a servlet container and automates this test. Ive seen it done
>> before and I know tomcat can be bootstrapped without a standalone server.
>>
>>   ------------------------------
>>  *From:* Werner Keil <[email protected]>
>> *To:* "[email protected]" <
>> [email protected]>; Reza <[email protected]>
>> *Sent:* Thursday, July 24, 2014 11:25 AM
>>
>> *Subject:* Re: java webservice example
>>
>> Will try where I can, TomEE the Java EE certified "Big Brother" of Tomcat
>> also can't hurt, beside others like WildFly or Glassfish.
>>
>>
>>
>> On Thu, Jul 24, 2014 at 5:21 PM, Reza <[email protected]>
>> wrote:
>>
>> It should work with 1.6, but I only test web stuff with tomcat7 these
>> days, so I bumped it upto java7.
>>
>> All the other comments are pretty trivial, so feel free to make the
>> changes. Just please test any changes on an app server (preferably
>> tomcat6/7) to make sure nothing breaks... very important.
>>
>>   ------------------------------
>>  *From:* Werner Keil <[email protected]>
>> *To:* "[email protected]" <
>> [email protected]>; Reza <[email protected]>
>> *Sent:* Thursday, July 24, 2014 11:17 AM
>> *Subject:* Re: java webservice example
>>
>> Is it necessary e.g. for additional dependencies like Spring to use JDK
>> 1.7?
>>
>> The actual POM's version is just 2 rather than 3 digits. not horrendous,
>> but it would be great to have the DM projects in sync on that, similar
>> using a parent POM here, either that of the parent project or the Apache
>> master. The "console" project I already created a few days ago also uses
>> Classifier, so at least these two with an identical set of dependencies
>> should be treated as a group, otherwise there will be a "version hell"
>> among different components
>>
>> Werner
>>
>>
>>
>>
>> On Thu, Jul 24, 2014 at 4:55 PM, Reza <[email protected]>
>> wrote:
>>
>> I checked in a java webservice example, it uses plain servlet:
>>
>> http://svn.apache.org/viewvc/incubator/devicemap/trunk/examples/servlet/
>>
>>
>> Its running here:
>>
>> http://devicemap-vm.apache.org/dmap-servlet/
>>
>>
>> direct call:
>>
>> http://devicemap-vm.apache.org/dmap-servlet/classify
>>
>>
>> Im going to do a Spring example too, probably over the weekend. It will
>> pretty much be the same, except it will use a Spring controller. Also, this
>> example uses the 1.1 version of the dmap java client. The toString() method
>> of the v1.1 Device object outputs valid json, so its easier to work with
>> than having to manually generate this json.
>>
>> I need to add an init.d script to tomcat, if the vm restarts, tomcat wont
>> start, this is probably why the service keeps on disappearing in the past.
>>
>>
>>
>>
>>
>>
>>
>>
>

Reply via email to