You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by David Sean Taylor <da...@bluesunrise.com> on 2004/04/21 00:42:46 UTC

[J2] OJB issues

On Apr 20, 2004, at 3:14 PM, Brian McCallister wrote:

> I'm here.
>
> (David cornered me into coming over to see if I could help with OJB 
> related issues)

> -Brian
>

I want to introduce Brian McCallister, a developer on OJB.
We were discussing J2 and the issues we had with OJB on the Jakarta 
general mailing list.
Brian has kindly offered to help us with the issues we were 
experiencing with the 2 latest release candidates of OJB.
I'd like to step back and let the two developers most involved with OJB 
describe the problems in detail: Scott Weaver and David Le Strat.
Both developers are on the east coast so this discussion might not get 
started until tomorrow....

--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office]   +01 707 773-4646
[mobile] +01 707 529 9194



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [J2] OJB issues

Posted by Brian McCallister <br...@apache.org>.
On Apr 24, 2004, at 5:30 PM, David Sean Taylor wrote:

>
> On Apr 23, 2004, at 5:29 PM, Brian McCallister wrote:
>
>> Some odd errors. Let me grab JetSpeed head and nose around.
>>
>> OTM is definitely an unstable piece of code right now. It provides a 
>> lot of really nice functionality but is... young.
>>
>> cascade delete (auto delete) changed some in RC6, old expected 
>> behavior should be preserved to my understanding, but I don't often 
>> use PB level cascades.
>>
> Why not let the database handle the cascade deletes?

This is exactly what I prefer to do.

> Or at least make it configurable.

It is. The entertaining part comes in when you combine caching, as soon 
as you have something modifying the database which does not take part 
in the cache system you cannot use the cache. Per-broker caching is, 
generally, the only acceptable cache for any large installation

> What is the OJB solution when you have more than one machine running 
> on the same OJB network of objects?

If they are both using OJB you can use a distributed cache and 
distributed lock manager, or optimistic transactions. The most 
performant distributed lock manager is the LockServer, which Thomas M. 
hasn't really documented yet =( You can also lock via mutexes in 
database.

If you are using the PB API you need cannot get object-level 
transactions anyway, so the database transaction and a distributed 
cache (or more often a per-broker cache) will have to do. Always (this 
applies to any O/R mapper, including Hibernate) re-obtain object 
references inside a new transaction if you care about transactional 
integrity =)

Personally, I haven't had a case where optimistic transactions haven't 
been acceptable, and this is generally much preferred as it scales much 
more nicely.

>
>> At least the error messages and examples aren't all in German ;-)
>>
>> Seriously, will grab head and nose. Any pointers to where in your 
>> source tree your persistent objects, and code that controls their 
>> persistence is hidden?
>>
> Look at components/registry and components/persistence for starters

Thank you!

-Brian

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [J2] OJB issues

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Apr 23, 2004, at 5:29 PM, Brian McCallister wrote:

> Some odd errors. Let me grab JetSpeed head and nose around.
>
> OTM is definitely an unstable piece of code right now. It provides a 
> lot of really nice functionality but is... young.
>
> cascade delete (auto delete) changed some in RC6, old expected 
> behavior should be preserved to my understanding, but I don't often 
> use PB level cascades.
>
Why not let the database handle the cascade deletes?
Or at least make it configurable.
I personally prefer having the database handle integrity constraints
What is the OJB solution when you have more than one machine running on 
the same OJB network of objects?


> At least the error messages and examples aren't all in German ;-)
>
> Seriously, will grab head and nose. Any pointers to where in your 
> source tree your persistent objects, and code that controls their 
> persistence is hidden?
>
Look at components/registry and components/persistence for starters



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [J2] OJB issues

Posted by Brian McCallister <br...@apache.org>.
Some odd errors. Let me grab JetSpeed head and nose around.

OTM is definitely an unstable piece of code right now. It provides a 
lot of really nice functionality but is... young.

cascade delete (auto delete) changed some in RC6, old expected behavior 
should be preserved to my understanding, but I don't often use PB level 
cascades.

At least the error messages and examples aren't all in German ;-)

Seriously, will grab head and nose. Any pointers to where in your 
source tree your persistent objects, and code that controls their 
persistence is hidden?

-Brian

On Apr 21, 2004, at 9:22 AM, Scott T Weaver wrote:

> Hi Brian,
>
> Thanks for offering to help us with our OJB issues!  Here are some of 
> the things I have noticed in RC4 (these may have been already fixed).
> - Clearing the cache or removing an object from the cache can cause 
> odd behavior within the object graph.  Example: cascading deletes not 
> being
>  processed. The same thing happened when using the EmptyCacheImpl.  
> Just generally unpredictable behavior with regards to the cache.
>
> - Cascading deletes did not seem to descend very far into the object 
> graph:
>  Delete operation:
>     PortletApplication (deleted OK)
>                       \ (1:n)
>                        PortletDefintion (deleted OK)
>                                         \ (1:n)
>                                          Parameter (deleted OK)
>                                                   \(1:1)
>                                                    ParameterValue 
> (deleted FAILED)
>
>
>
> - From RC4 to RC5 the number of dependent jars increased 
> substantially.  It would be nice to know exactly, up front what is and 
> what isn't a requirement.
>
> - from RC4 to RC5 PortletPreference objects'  PreferenceValue 
> collections were not being populated.  This worked in 4 then stopped 
> in 5.  I also noticed unpredictability regarding reference and 
> collection descriptors in general.
>
> - Also, I tried to convert things over to OTM (RC5), but that ended up 
> turning out to be a BIG mess that I will never here the end of ;)
>
> - And this one has been killing me for awhile, a good portion of the 
> errors thrown by OJB have no indication as to what the problem is.  
> For example, we use OJB in some other application here where I work.  
> Some converted from RC4 to RC5 and started getting a ClassDefNotFound 
> exception with absolutely NO indication of what class was not found.
>
> That's all I can think of right now.
>
>                                     Regards,
>
> -- 
> ******************************************
> *           Scott T. Weaver              *
> *         <we...@apache.org>            *
> * -------------------------------------- *
> *   Apache Jetspeed Enterprise Portal    *
> *     Apache Pluto Portlet Container     *
> *                                        *
> * OpenEditPro, Website Content Mangement *
> *     <http://www.openeditpro.com>       *
> ******************************************
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [J2] OJB issues

Posted by Scott T Weaver <sc...@binary-designs.net>.
Hi Brian,

Thanks for offering to help us with our OJB issues!  Here are some of 
the things I have noticed in RC4 (these may have been already fixed). 

- Clearing the cache or removing an object from the cache can cause odd 
behavior within the object graph.  Example: cascading deletes not being
  processed. The same thing happened when using the EmptyCacheImpl.  
Just generally unpredictable behavior with regards to the cache.

- Cascading deletes did not seem to descend very far into the object graph:
  Delete operation:
     PortletApplication (deleted OK)
                       \ (1:n)
                        PortletDefintion (deleted OK)
                                         \ (1:n)
                                          Parameter (deleted OK)
                                                   \(1:1)
                                                    ParameterValue 
(deleted FAILED)



- From RC4 to RC5 the number of dependent jars increased substantially.  
It would be nice to know exactly, up front what is and what isn't a 
requirement.

- from RC4 to RC5 PortletPreference objects'  PreferenceValue 
collections were not being populated.  This worked in 4 then stopped in 
5.  I also noticed unpredictability regarding reference and collection 
descriptors in general.

- Also, I tried to convert things over to OTM (RC5), but that ended up 
turning out to be a BIG mess that I will never here the end of ;)

- And this one has been killing me for awhile, a good portion of the 
errors thrown by OJB have no indication as to what the problem is.  For 
example, we use OJB in some other application here where I work.  Some 
converted from RC4 to RC5 and started getting a ClassDefNotFound 
exception with absolutely NO indication of what class was not found.

That's all I can think of right now.

                                     
Regards,

-- 
******************************************
*           Scott T. Weaver              *
*         <we...@apache.org>            *
* -------------------------------------- *
*   Apache Jetspeed Enterprise Portal    *
*     Apache Pluto Portlet Container     *
*                                        *
* OpenEditPro, Website Content Mangement *
*     <http://www.openeditpro.com>       *
******************************************


                                

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org