Hi All,

 

I’m writing a second Swing application, and this time around I’m using an existing Hibernate middletier.

The problem I’m experiencing is that the HibernateUtil stores a Hibernate Session per ThreadLocal, which is posing a problem for my application.

 

It appears that 2 Hibernate sessions are being created, one for the main thread and one for the event-dispatching thread.

 

I’m not sure how to prevent my DAO code from running on the event-dispatching thread.

Or, how do I force my DAO code to run on the main thread?

 

Any suggestions?

 

Enrico Goosen

Software Developer

SAICOM TECHNOLOGY

TEL:       +2721 417 1375

FAX:     +2721 417 1361

CEL:     +2783 305 5676

EMAIL: [EMAIL PROTECTED]

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---

Reply via email to