say i have a session bean that does some work that is not ejb related. for example, it creates a file with some data. the data in the file is based on the contents of an entity bean. now, i want to synchronize on the entity bean so that two sessio beans will not write to the file simultaniously. how can i do that? can i do 'synchronize (entityBean)'? or do i need to create some map from the entityBean's primary key to an object for locking on it? or is there another way? (the data file is for example only, so a solution of locking on the file is not good).
thank you, Ittay -- ======================================= Ittay Dror ([EMAIL PROTECTED]) User Space, R&D Qlusters Inc. Tel: +972-3-6081956 Fax: +972-3-6081841 ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user