[Migrated content. Thread originally posted on 26 March 2012]
Hello
When using the cobolbean.dispose() function the application server crashes. I have the following code:@Stateful
@LocalBean
public class DataTypeTestBeanImpl extends CobolBean {
...
@PreDestroy
public void destroy() throws CobolException, Exception {
super.dispose(); // CobolBean
}
@Remove
public void remove() {
}
were remove() is called from the client to signal the application server that the stateful bean is not needed anymore. The AS will call destroy() afterwards and should dispose() the CobolBean.
I didn't check yet when it happens, after the dispose itself or for the next or a parallel session. I also did't check when catching the exceptions in destroy() itself saves the AS.
I thought dispose should only cleanup the used working storage. What other things does dispose() do ? Any ideas why the AS is crashing ?
I can invest further checks earliest wednesday, hoping to get some answers beforehand.
Simon




