jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KÖLL Claus <C.KO...@TIROL.GV.AT>
Subject AW: JBoss JTA transaction timeout
Date Mon, 02 Jul 2007 05:33:41 GMT
hi mihai,

maybe you have the same problem as here described ..
http://issues.apache.org/jira/browse/JCR-769

BR,
Claus

-----Ursprüngliche Nachricht-----
Von: Mihai Anescu [mailto:manescu@totalsoft.ro] 
Gesendet: Freitag, 29. Juni 2007 15:52
An: users@jackrabbit.apache.org
Betreff: JBoss JTA transaction timeout

Hi,

 

I have this situation/problem:

 

We are using JBoss Seam, I have a Stateless EJB configured to do all the
work for the JackRabbit repository, and I have a method that just
retrieves content (files that were previously added by other methods).

So, the flow would be:

 

1) Load the entity

2) Get a reference to the stateless EJB

3) Call the method to retrieve the content

4) If something is found I put a download button on the interface

 

The content in the repository is linked to the entity (via an XPath
composed from the entity type + hierarchy + id)

 

So in the step 3 method, I open a session, and call some methods:

        Session session = getSession();

        Node node = retrieveNode(session, path);

        Node content = null;

        if (node.hasNode(JCR_CONTENT)) {

           content = node.getNode(JCR_CONTENT);

...

I just read content from the repository, I don't add/modify anything!

 

But when the method is called I get:

[org.apache.jackrabbit.core.TransactionContext] Transaction rolled back
because timeout expired.

So what's the cause? 

If I use session.logout() then I get another exception, I read somewhere
that the session attaches itself to the current JTA transaction.

 

Regards,

Mihai


Mime
View raw message