I'm trying to write a scheduling Tool, where a MessageDriven Bean gets a hit to start scheduling, because it takes some time. This MDB passes the call to either a Session Bean or a standard JavaClass, where the logic is implemented.
The deal to assign 25 Employees recursive to about 500 activities. When I run it with the standard JavaClass it takes about 1,5 Hours. When I run it with the SessionBean the first assignments run about 5 times faster, but after nearly 5 minutes I get a timeout and another minute of errorstack.
The question is, how can I fasten the JavaClass or avoid the timeout with the SessionBean?