I'm writing a rich client so I go about getting my spring bean factory a bit 
differently... but I wonder if this is thread safe (with SwingWorker threads 
running around outside of the event thread). 





ClassPathXmlApplicationContext appContext = new 
ClassPathXmlApplicationContext(

    new String[] {"applicationContext.xml", 
"applicationContext-dataSource.xml"}); 

// of course, an ApplicationContext is just a BeanFactory 

BeanFactory factory = (BeanFactory) appContext;



and elsewhere in the code



MyEntityDao myEntityDao = 
(MyEntityDao)factory.getBean("myEntityDao");

myEntity.setSomeRelationShip(someOtherObject); 

myEntityDao.update(myEntity);
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1677#1677
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to