This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Tuscany, SCA, and Swing  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

After a google search and a quick tour of this forum, I found no topic dealing with a Swing app "swimming" in a SCA app.

I discovered Apache Tuscany a few weeks ago and found it very powerful. The encapsulation of thread-management and the way you can make every component atomic absolutely amazing for unit testing and "separation of purpose".

But a Swing app needs to manage its own threads, and I'm scary about compatibility between SCA thread management and Swing app thread management... What if a component ask the "View" component to display something... The caller will call from a Thread that is not the EDT.

Any idea of how to make that work? I dont need a full example code, just to know if it is crazy or not

++

David.
 
david boureau
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I think I found the answer. It looks like the SwingUtilities.invokeLater make the invocation of the inner code to happen in th EDT. Mixing a component that calls this utility method, linked to the object that handles the Swing interface should work fine.
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!