Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPEC-259: Correctly identify if timer service relates to managed entity #4117

Merged
merged 1 commit into from Aug 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -82,21 +82,10 @@ public EJBTimerServiceWrapper(
ejbContext_ = ejbContext;
BaseContainer container = (BaseContainer) ejbContext.getContainer();
ejbDescriptor_ = container.getEjbDescriptor();
entity_ = false;
entity_ = ejbContext instanceof EntityContext;
timedObjectPrimaryKey_ = null;
}

public EJBTimerServiceWrapper(
EJBTimerService persistentTimerService,
EJBTimerService nonPersistentTimerService,
EntityContext entityContext) {
this(persistentTimerService, nonPersistentTimerService, ((EJBContextImpl) entityContext));
entity_ = true;
// Delay access of primary key since this might have been called
// from ejbCreate
timedObjectPrimaryKey_ = null;
}

@Override
public Timer createTimer(long duration, Serializable info)
throws IllegalArgumentException, IllegalStateException, EJBException {
Expand Down