File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Tuscany, SCA, and Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Tuscany, SCA, and Swing" Watch "Tuscany, SCA, and Swing" New topic

Tuscany, SCA, and Swing

david boureau

Joined: Oct 01, 2008
Posts: 17
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



SCJP 5, SCWCD "5", SCBCD 5, SCJD with java SE 6, SCDJWS 5

david boureau

Joined: Oct 01, 2008
Posts: 17
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.
I agree. Here's the link:
subject: Tuscany, SCA, and Swing
Similar Threads
WS 2 WS call in same JVM
Problem with classes from included jar libraries
How Tuscany differs from Camel, ServiceMix or Mule?
SCA Implementations on other platforms
how to access SCA c++ componet via web service?(about SCA, AXIS2/C)