Does this project have an example Java J2EE web application which uses the latest DeviceMap Java API? I was using the old OpenDDR API as my guide which may explain the oddr issue. If we dont, I can check in my REST service app and use that as a start.
________________________________ From: Werner Keil <[email protected]> To: [email protected]; Reza <[email protected]> Sent: Tuesday, May 7, 2013 9:56 AM Subject: Re: DeviceMap Java API Reza/all, I remember Bertrand (I believe it was him) said he refactored the package namespace so org/openddr/simpleapi/oddr/<https://svn.apache.org/repos/asf/incubator/devicemap/trunk/openddr/java/src/main/java/org/openddr/simpleapi/oddr/>. should be found elsewhere under something like org/apache/devicemap/simpleapi/ddr/<https://svn.apache.org/repos/asf/incubator/devicemap/trunk/openddr/java/src/main/java/org/openddr/simpleapi/oddr/>. (just guessing, that's probably not the actual package) does anybody know where those classes went?? Werner On Tue, May 7, 2013 at 3:52 PM, Reza <[email protected]> wrote: > So I spent some time last night working with the DeviceMap Java API. Good > news is that I was able to get everything working as needed. My next step > is finish up a few web pages and have a fully functioning "demo" site. > Hopefully this will be done and ready in the next week or two. > > That being said, I would like focus more on the Java API next. Here are > some issues I found which I think can be addressed (mostly maven related): > > -The oddr package is empty: > https://svn.apache.org/repos/asf/incubator/devicemap/trunk/openddr/java/src/main/java/org/openddr/simpleapi/oddr/. > The example here makes use of oddr: > https://github.com/OpenDDRdotORG/OpenDDR-Java. So this needs to be > rectified and/or the example needs to be updated. > > -We have a maven project for the DeviceMap resources ( > https://svn.apache.org/repos/asf/incubator/devicemap/trunk/openddr/data/) but > the Java API cannot load resources from a jar source. I havent looked > deeply at the code, but this is fixable. If this functionality exists > today, please guide me in the right direction. > > -Make the project "zero configuration", or close to it. I would like to > simply add 2 dependencies to my POM and then add 5-10 lines of code and be > done. I think this is possible. The dependencies would be DeviceMap data > (resources) and the DeviceMap Java API. We could even make a version of the > data called LATEST which would always pull our latest DDR. This way you get > the latest devices on every compile (if you choose). > > -Streamline the Java API. Once I get the structural changes completed, I > would like to begin work on maybe making the API a bit more streamlined and > more accurate. A few ideas have been tossed around for this, so I will > leave this as the last task. Some of the steps above will accomplish part > of this task. > > Thoughts? > > thanks, > Reza
