Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How static method will behave ?  RSS feed

 
Himanshu Babuni
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using session facade.All my logic is in a separate file lets called logic class.If i will declare my methods are static methods in this class then in the multithreaded environment how it will behave?My doubt is when clients call my methods through stateless session bean is there any problem ?

Can anyone clarify my doubt.
Thanx in Advanced .

[ June 15, 2004: Message edited by: Himanshu Babuni ]

[ June 15, 2004: Message edited by: Himanshu Babuni ]
[ June 15, 2004: Message edited by: Himanshu Babuni ]
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In general you should avoid read/write operations such as state management and transition in static methods.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!