Skip to content

Altered behaviour for JNDI lookup  #270

@zeitiger

Description

@zeitiger

I tried to integrate version 3.x and failed because of the altered behaviour. In reference to weld documentation of integration within a plain Tomcat (and same thing match also to Jetty)

Tomcat only allows you to bind entries to java:comp/env, so the BeanManager will be available at java:comp/env/BeanManager

I know the spec of EE define that it should be java:comp/BeanManager, but within plain servlet container its different. The old custom logic matched this state of reality.

https://github.com/vaadin/cdi/blob/2.0/vaadin-cdi/src/main/java/com/vaadin/cdi/internal/CDIUtil.java#L30

But with the replacement of DeltaSpike 1.7.x this logic now breaks for me.

https://github.com/apache/deltaspike/blob/ds-1.7.2/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/provider/BeanManagerProvider.java#L306

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🔖 Normal Priority (P2)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions