Return valueb

Hi,I am new to EJB.I am creating session beans (stateless) .Can anyone say me whether it is ok to have return value as int in an ejb method ?Also, can I call a singleton class's method from a bean method ?Thanks in advance,
[252 byte] By [tmmeta] at [2007-11-27 9:04:43]
# 1

Yes, primitives are allowed as both parameters and return values for both local and remote business

methods.

The EJB specification does not define Singletons. Using them can be tricky within Java EE since

their behavior is tightly coupled to the classloader hierarchy.In addition, accessing static, mutable

state is not portable within EJB.

ksaksa at 2007-7-12 21:38:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...