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

SnapshotService - RunAs on Glassfish - CDI/EJB conflict #41

Open
rsoika opened this issue Nov 24, 2018 · 0 comments
Open

SnapshotService - RunAs on Glassfish - CDI/EJB conflict #41

rsoika opened this issue Nov 24, 2018 · 0 comments

Comments

@rsoika
Copy link
Member

rsoika commented Nov 24, 2018

CDI events and runAs annotation is not working on glassfish. So the deployment will fail if the runAs annotation is not disabled by ejb-jar.xml

...
		<session>
			<ejb-name>SnapshotService</ejb-name>
			<ejb-class>org.imixs.archive.core.SnapshotService</ejb-class>
			<session-type>Stateless</session-type>
			<security-identity>
				<use-caller-identity></use-caller-identity>
			</security-identity>
		</session>
...

See discussion here: payara/Payara#3415 (comment)

Solution:
The best solution seems to separate the onSave event in a CDI bean which is itself injecting an EJB with a runAs annotation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant