Installing Parancoe

9 views
Skip to first unread message

Jondow

unread,
Mar 3, 2008, 10:41:43 AM3/3/08
to Parancoe-users
I'm developing a Grails application. Alongside that I'm developing a
web services API. All of these run inside an instance of Tomcat. I'm
using Grails for the DD definition, and then reverse-engineering the
database to generate the EJB3/JPA classes with annotations, which I
will then use in my web services API.

I came across Parancoe when looking into how to hook up my DD classes
with Spring 2.5. It seems like a very useful library, but I'm a bit
confused as to which components/JAR files I need if I only want to
make use of the persistence aspect. Perhaps somebody could elaborate?
So that would be to use the persistence features, and hook everything
into Spring so that my classes are automatically discovered and
decorated via annotations and Springs application context
configuration.

All advice appreciated.

Warm Regards,
Darryl Pentz

Lucio Benfante

unread,
Mar 3, 2008, 12:37:06 PM3/3/08
to paranco...@googlegroups.com
Jondow ha scritto:
Hi Darryl,
I'm not sure to have fully understood your problem.

I'll try a reply. Please elaborate more, if it doesn't solve your doubt.

If you are using Maven 2, for using the persistence part, you only need
the parancoe-core module. So add this dependency to your project:

<dependency>
<groupId>org.parancoe</groupId>
<artifactId>parancoe-core</artifactId>
<version>0.3.4</version>
<scope>compile</scope>
</dependency>

If you aren't using Maven 2, you can download one of the following files:

http://parancoe.googlecode.com/files/parancoe-core-0.3.4-bin-with-dependencies.zip
http://parancoe.googlecode.com/files/parancoe-core-0.3.4-bin-with-dependencies.tar.gz

Unfortunately at present Parancoe is using Spring 2.0.x.

If you need Spring 2.5, You have two possibilities:

1. checkout from the svn repository the Parancoe projects, change the
dependencies, and rebuild yourself. It should work, as Spring 2.5 is
fully compatible with the older versions. But be careful with the
dependencies, or you'll experience strange errors.

2. There is an experimental Parancoe 2 branch in the svn repository that
is using Spring 2.5. You can checkout and build it. Unfortunately there
isn't a release of that branch yet.

Let me know if this solve your problem.

Kind regards,
Lucio

--
Lucio Benfante
JUG Padova http://www.parancoe.org ...have a look at it!
www.jugpadova.it http://www.jugevents.org

Jondow

unread,
Mar 3, 2008, 1:00:34 PM3/3/08
to Parancoe-users
Hi Lucio,

I'm not using Maven, but I guess that's irrelevant now since I am
using Spring 2.5. I'll try and have a go at building the experimental
version out of SVN, though I'm a bit reluctant to forge ahead with an
experimental version.

Nevertheless, Parancoe seems like an excellent idea. Certainly to me,
the DAO functionality is brilliant, and is very much like the GORM
functionality in a framework called Grails, but that uses Groovy code,
which I don't want to do in my web services application due to
scaleability requirements. So it's a great pity that Parancoe is not
yet Spring 2.5 compliant. All the best though with the project. Sounds
very useful.

Regards,
Darryl Pentz
> http://parancoe.googlecode.com/files/parancoe-core-0.3.4-bin-with-dep...http://parancoe.googlecode.com/files/parancoe-core-0.3.4-bin-with-dep...
>
> Unfortunately at present Parancoe is using Spring 2.0.x.
>
> If you need Spring 2.5, You have two possibilities:
>
> 1. checkout from the svn repository the Parancoe projects, change the
> dependencies, and rebuild yourself. It should work, as Spring 2.5 is
> fully compatible with the older versions. But be careful with the
> dependencies, or you'll experience strange errors.
>
> 2. There is an experimental Parancoe 2 branch in the svn repository that
> is using Spring 2.5. You can checkout and build it. Unfortunately there
> isn't a release of that branch yet.
>
> Let me know if this solve your problem.
>
> Kind regards,
> Lucio
>
> --
> Lucio Benfante
> JUG Padova http://www.parancoe.org...have a look at it!www.jugpadova.it http://www.jugevents.org
>
> smime.p7s
> 4KDownload

Jondow

unread,
Mar 3, 2008, 1:08:32 PM3/3/08
to Parancoe-users
Lucio,

One other thing. I grabbed that file and took a look at the dependency
JAR's required by Parancoe and was a bit astounded. Are *all* those
JAR's required just to use, say, the persistence behaviour? The
problem for me is that there are a number of JAR's in there that I am
already using but which conflict in version number with those that are
in Parancoe. So it seems like I truly am between a rock and a hard
place as concerns using Parancoe in my project. :-(

Thanks,
Darryl
> >http://parancoe.googlecode.com/files/parancoe-core-0.3.4-bin-with-dep......
>
> > Unfortunately at present Parancoe is using Spring 2.0.x.
>
> > If you need Spring 2.5, You have two possibilities:
>
> > 1. checkout from the svn repository the Parancoe projects, change the
> > dependencies, and rebuild yourself. It should work, as Spring 2.5 is
> > fully compatible with the older versions. But be careful with the
> > dependencies, or you'll experience strange errors.
>
> > 2. There is an experimental Parancoe 2 branch in the svn repository that
> > is using Spring 2.5. You can checkout and build it. Unfortunately there
> > isn't a release of that branch yet.
>
> > Let me know if this solve your problem.
>
> > Kind regards,
> > Lucio
>
> > --
> > Lucio Benfante
> > JUG Padova http://www.parancoe.org...havea look at it!www.jugpadova.it http://www.jugevents.org
>
> > smime.p7s
> > 4KDownload

Lucio Benfante

unread,
Mar 3, 2008, 1:09:21 PM3/3/08
to paranco...@googlegroups.com
Jondow ha scritto:

> Hi Lucio,
>
> I'm not using Maven, but I guess that's irrelevant now since I am
> using Spring 2.5. I'll try and have a go at building the experimental
> version out of SVN, though I'm a bit reluctant to forge ahead with an
> experimental version.
>
> Nevertheless, Parancoe seems like an excellent idea. Certainly to me,
> the DAO functionality is brilliant, and is very much like the GORM
> functionality in a framework called Grails, but that uses Groovy code,
> which I don't want to do in my web services application due to
> scaleability requirements. So it's a great pity that Parancoe is not
> yet Spring 2.5 compliant. All the best though with the project. Sounds
> very useful.
>

Hi Darryl,
at present it's just a conservative choice to have the largest possible
compatibility.

In fact, one of the Parancoe developers (Enrico Giurin) some weeks ago
did successfully try to move the main branch of Parancoe to Spring 2.5.
So, You can simply get the parancoe-core-x.y.z.jar and use it with all
the dependencies from Spring 2.5 (but it is a little difficult to say
which is the minimum set of dependencies without running a maven build
with that dependencies).

But we are fast (I hope) moving to the Parancoe 2 branch...so be
confident! :)

Kind regards,
Lucio

--
Lucio Benfante

Lucio Benfante

unread,
Mar 3, 2008, 1:11:23 PM3/3/08
to paranco...@googlegroups.com
Jondow ha scritto:

> Lucio,
>
> One other thing. I grabbed that file and took a look at the dependency
> JAR's required by Parancoe and was a bit astounded. Are *all* those
> JAR's required just to use, say, the persistence behaviour? The
> problem for me is that there are a number of JAR's in there that I am
> already using but which conflict in version number with those that are
> in Parancoe. So it seems like I truly am between a rock and a hard
> place as concerns using Parancoe in my project. :-(
>
I think it's because you are using a more recent version of Spring.

Get the most recent versions of the jars. It should work.

Lucio

--
Lucio Benfante

Jondow

unread,
Mar 7, 2008, 7:34:19 AM3/7/08
to Parancoe-users
I decided to *not* use Parancoe because of the overwhelming number of
dependency JAR's and the fact that I don't really have the time to
fiddle with using Maven and hacking together the Spring 2.5
dependency. I've since gone with a barebones implementation as per
that IBM article you mention in your code that was the inspiration for
GenericDao. Now that I'm more familiar with it, I see the great
similarities with your code and how Parancoe is even more empowering
as you have to do far less to work with your DAO's. It is a pity that
there isn't a document or ZIP/tar download with just the core and the
few dependency JAR's needed. I would suggest to you that there are a
lot of people who don't use Maven, and who don't have any need to do
so, and who will opt out of using Parancoe for this reason, despite
the fact that your code looks quite competent.

I would encourage any one of the core developers to take some time to
do this. I think it would greatly encourage use of your library.

Best of luck regardless,
Darryl Pentz
> JUG Padova http://www.parancoe.org...have a look at it!www.jugpadova.it http://www.jugevents.org
>
> smime.p7s
> 4KDownload
Reply all
Reply to author
Forward
0 new messages