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

PAYARA-3110 Made TracedInterceptor serializable #3169

Merged

Conversation

Cousjava
Copy link
Contributor

This resolves a warning when persisting session scoped beans

This resolves a warning when persisting session scoped beans
@Cousjava Cousjava added this to the Payara 5.184 milestone Sep 17, 2018
@Cousjava Cousjava requested a review from Pandrex247 September 17, 2018 14:28
@Cousjava
Copy link
Contributor Author

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

Copy link
Contributor

@smillidge smillidge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you reinstate the Bean Manager after the bean is retrieved from the session?

@Cousjava
Copy link
Contributor Author

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

@svendiedrichsen
Copy link
Contributor

@Cousjava You could keep the TracedInterceptor serializable if you don't inject the BeanManager but use CDI.getBeanManager() whenever the BeanManager is needed.

@arjantijms
Copy link
Contributor

@smillidge @Cousjava @svendiedrichsen

The concern regarding the bean manager is addressed by section 6.6.3 of the CDI spec:

the built-in beans of type Instance, Event, InjectionPoint and BeanManager are passivation capable dependencies.

See https://docs.jboss.org/cdi/spec/2.0-PFD/cdi-spec.html#passivation_capable_dependency

@payara-ci
Copy link
Contributor

Jenkins2 test please

@Pandrex247 Pandrex247 merged commit be7b4e6 into payara:master Oct 12, 2018
Cousjava pushed a commit to Cousjava/Payara that referenced this pull request Oct 25, 2018
…store-error

PAYARA-3110 Made TracedInterceptor serializable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants