Skip to content

Commit

Permalink
Fix cdi2-se example
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Apr 14, 2020
1 parent 15dbc88 commit 0af9096
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/helloworld-cdi2-se/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand All @@ -28,7 +28,7 @@

<properties>
<cdi.api.version>2.0</cdi.api.version>
<weld.version>${weld3.version}</weld.version>
<weld.version>3.1.0.Final</weld.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

package org.glassfish.jersey.examples.helloworld.cdi2se;

import org.jboss.weld.context.ejb.Ejb;

import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
Expand All @@ -24,10 +23,10 @@
@Path("counter")
public class CounterResource {

@Ejb
@Inject
private RequestScopedCounter requestScoped;

@Ejb
@Inject
private ApplicationScopedCounter applicationScoped;

@GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@

package org.glassfish.jersey.examples.helloworld.cdi2se;

import org.jboss.weld.context.ejb.Ejb;

import java.security.Principal;

import javax.inject.Inject;
import javax.inject.Singleton;
import javax.validation.constraints.NotNull;
import javax.ws.rs.GET;
Expand All @@ -34,7 +33,7 @@
@Path("helloworld")
public class HelloWorldResource {

@Ejb
@Inject
private HelloBean helloBean;

@GET
Expand Down

0 comments on commit 0af9096

Please sign in to comment.