The integration with Shindig in Eureka Streams is at an adapter layer. Our model is written to JPA, but the model works for Eureka Streams and is then adapted to shindig through the service handlers. The JPA model itself wouldn't be totally portable, but it is a good reference.
I didn't realize that the sample model inside shindig was not JPA. To be honest, I haven't looked too much at the sample model inside Shindig. Steve T. From: Mark Weitzel [mailto:[email protected]] Sent: Monday, October 11, 2010 6:10 PM To: [email protected] Cc: Dave Johnson; Steve Terlecki; Terlecki, Stephen Subject: EXTERNAL: Re: "java/samples" causes dependency conflict Paul, In addition to Dave, I think Steve Terlecki and the Eureka Streams team used JPA. Maybe there's something they might want to contribute back to replace samples. On Mon, Oct 11, 2010 at 1:02 PM, Paul Lindner <[email protected]<mailto:[email protected]>> wrote: ugh.. One could probably force use of of ehcache-core instead of ehcache like this: --- a/java/samples/pom.xml +++ b/java/samples/pom.xml @@ -140,7 +140,15 @@ <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId> <version>3.2.6.ga<http://3.2.6.ga></version> + <exclusions> + <!-- ehcache vs ehcache-core blow up --> + <exclusion> + <groupId>net.sf.ehcache</groupId> + <artifactId>ehcache</artifactId> + </exclusion> + </exclusions> </dependency> + <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> Can you test? Otherwise it might be a fun project to convert the samples to use JPA... (Paging snoopdave who did this for roller....) On Mon, Oct 11, 2010 at 1:47 AM, Rocks Wang <[email protected]<mailto:[email protected]>> wrote: > Hi all, > > > > I was trying to test samples following the instructions given by > > https://cwiki.apache.org/confluence/display/SHINDIG/Connect+mysql+database+t > o+shindig > > However it's not smooth, when I was running Jetty, guice injection failed > due to "NoSuchMethodException", I found that it's because Hibernate > (introduced by samples) depends on ehcache 1.2.3 which conflicts with > ehcache-core-2.2.0.jar (used by shindig). > > I've tried to add "net.sf.ehcache: ehcache" into "exclusions", however > "ehcache-1.2.3.jar" is still going into the .war file every time I rebuild > the project. > > I can work around it by manually deleting ehcache-1.2.3.jar every time, but > it's really boring. > > I am not proficient in Maven, is there anyone here can help me with this > problem? > > > > Regards, > > Rocks > > -- Paul Lindner -- [email protected]<mailto:[email protected]> -- linkedin.com/in/plindner<http://linkedin.com/in/plindner>
