Dale, 

I think your opinion on entity beans may be clouded by your use of Jonas
1.6.
We used Jonas in our project up until about 3 months ago. The entity bean
performance in jonas is absoulutely terrible - their development team
admitted to it , something to do with RMI calls. The only way round it at
that time was to do what you're doing and write a load of SQL code in
session beans for handling collection stuff. This would be when iterating
over CMP collections would be too slow. In the end we had two lots of code,
one slow that used entity bean calls( that we kept but didn't use) and one
lot fast that used SQL calls.

Then someone mentioned Orion on the Jonas Mailing list, and that the entity
bean performance was a lot better than Jonas. We tried Orion and got it
working (eventually) and were blown away by its performance. In most cases
the entity bean collection code in Orion would be FASTER than the SQL
session code in Jonas. 

Fortunately we kept all the CMP code and we try to steer clear of SQL
statements in any type of EJB - as someone mentioned earlier its not as
portable, but also the java compiler or Orion deployment tool will always
catch table/column name errors and type errors where as hardcoded SQL won't.

Just my 10 euros.

Regards 

Rob Hargreaves

-----Original Message-----
From: Dale Bronk [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2000 14:54
To: Orion-Interest
Subject: Re: Is CMP is useless?



I do not claim to be an expert in any way, these are just my opinions from
my experience.  My experience so far is with Apache, JRun, and Jonas 1.6 as
the container.  I have not had time yet to get into Orion, but plan to soon.
The reason I haven't got into Orion yet is I don't have time to jump in and
battle with it with no real documentation.  I do not like Jonas either.  It
was chosen by my client because they are really into the free open source
stuff.

Let me know if you think I am way off base as would loved to get other
opinions and maybe learn something new.

Dale



Reply via email to