Merge pull request #841 from pritambanerjee999/master
BAEL 317: Setup EJB
This commit is contained in:
commit
b846bcc35e
@ -10,11 +10,6 @@
|
|||||||
<artifactId>ejb-client</artifactId>
|
<artifactId>ejb-client</artifactId>
|
||||||
<name>EJB3 Client Maven</name>
|
<name>EJB3 Client Maven</name>
|
||||||
<description>EJB3 Client Maven</description>
|
<description>EJB3 Client Maven</description>
|
||||||
<properties>
|
|
||||||
<junit.version>4.12</junit.version>
|
|
||||||
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly</groupId>
|
<groupId>org.wildfly</groupId>
|
||||||
@ -49,6 +44,4 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -13,8 +13,9 @@
|
|||||||
<!-- <name>ejb-remote</name> -->
|
<!-- <name>ejb-remote</name> -->
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jboss.spec.javax.ejb</groupId>
|
<groupId>javax</groupId>
|
||||||
<artifactId>jboss-ejb-api_3.2_spec</artifactId>
|
<artifactId>javaee-api</artifactId>
|
||||||
|
<version>7.0</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -1,13 +1,19 @@
|
|||||||
package com.baeldung.ejb.tutorial;
|
package com.baeldung.ejb.tutorial;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.ejb.SessionContext;
|
||||||
import javax.ejb.Stateless;
|
import javax.ejb.Stateless;
|
||||||
|
|
||||||
@Stateless(name = "HelloWorld")
|
@Stateless(name = "HelloWorld")
|
||||||
public class HelloWorldBean implements HelloWorld {
|
public class HelloWorldBean implements HelloWorld {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private SessionContext context;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getHelloWorld() {
|
public String getHelloWorld() {
|
||||||
return "Welcome to EJB Tutorial!";
|
return "Welcome to EJB Tutorial!";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -36,11 +36,10 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jboss.spec</groupId>
|
<groupId>javax</groupId>
|
||||||
<artifactId>jboss-javaee-7.0</artifactId>
|
<artifactId>javaee-api</artifactId>
|
||||||
<version>1.0.1.Final</version>
|
<version>7.0</version>
|
||||||
<type>pom</type>
|
<scope>provided</scope>
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user