Tamino JAR Problems

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Tamino JAR Problems

Ryan Puddephatt

Hi all,

            I have had problems with the tamino isolation and locking mode, it doesn’t seem to be taking effect! I decided to download the java file from CVS and found (what I think) is a small problem

 

                // Initialize isolation degree and lock mode as set in properties

                {

                    OXFProperties.PropertySet propertySet = OXFProperties.instance().getPropertySet();

                    TIsolationDegree isolationDegree = (TIsolationDegree)

                            ISOLATION_DEGREE_VALUES.get(propertySet.getString(ISOLATION_DEGREE_PROPERTY));

                    TLockMode lockMode = (TLockMode)

                            LOCK_MODE_VALUES.get(propertySet.getString(LOCK_MODE_PROPERTY));

                    if (isolationDegree != null)

                        newConnection.setIsolationDegree(isolationDegree);

                    if (lockMode != null)

                        newConnection.setLockMode(lockMode);

                }

 

                        newConnection.setIsolationDegree(TIsolationDegree.SERIALIZABLE);

                        newConnection.setLockMode(TLockMode.PROTECTED);

 

You appear to set the Isolation Degree and Lock Mode using the properties.xml file and then set them to the highest level of locking in the next two lines.

 

I have attached the java file with the last two lines removed (you’ll need to rename it to .java), unless there is a reason for them being there

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

TaminoProcessor.txt (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Tamino JAR Problems

Alessandro  Vernet
Administrator
Hi Ryan,

Nice catch. That was some older code that I forgot to remove. Thank
you for the patch; it's now checked in and will be in the next
unstable build.

Alex

On 3/6/06, Ryan Puddephatt <[hidden email]> wrote:

>
>
>
> Hi all,
>
>             I have had problems with the tamino isolation and locking mode,
> it doesn't seem to be taking effect! I decided to download the java file
> from CVS and found (what I think) is a small problem
>
>
>
>                 // Initialize isolation degree and lock mode as set in
> properties
>
>                 {
>
>                     OXFProperties.PropertySet propertySet =
> OXFProperties.instance().getPropertySet();
>
>                     TIsolationDegree isolationDegree = (TIsolationDegree)
>
>
> ISOLATION_DEGREE_VALUES.get(propertySet.getString(ISOLATION_DEGREE_PROPERTY));
>
>                     TLockMode lockMode = (TLockMode)
>
>
> LOCK_MODE_VALUES.get(propertySet.getString(LOCK_MODE_PROPERTY));
>
>                     if (isolationDegree != null)
>
>
> newConnection.setIsolationDegree(isolationDegree);
>
>                     if (lockMode != null)
>
>                         newConnection.setLockMode(lockMode);
>
>                 }
>
>
>
>
> newConnection.setIsolationDegree(TIsolationDegree.SERIALIZABLE);
>
>                         newConnection.setLockMode(TLockMode.PROTECTED);
>
>
>
> You appear to set the Isolation Degree and Lock Mode using the
> properties.xml file and then set them to the highest level of locking in the
> next two lines.
>
>
>
> I have attached the java file with the last two lines removed (you'll need
> to rename it to .java), unless there is a reason for them being there
>
>
>
> Thanks
>
>
>
> Ryan
>
>
>
> Ryan Puddephatt
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet