From 93b4f3620251b86dee37403e0cd46ec20fe96c91 Mon Sep 17 00:00:00 2001 From: Pritam Banerjee Date: Sun, 21 May 2017 13:34:17 -0700 Subject: [PATCH] Fixed Package Names --- .../com/baeldung/ejb/stateful/EJBClient1.java | 11 +++++++++++ .../com/baeldung/ejb/stateful/EJBClient2.java | 11 +++++++++++ .../com/baeldung/ejb/stateful/StatefulEJB.java | 10 ++++++++++ .../com/baeldung/ejb/stateless/EJBClient1.java | 10 ++++++++++ .../com/baeldung/ejb/stateless/EJBClient2.java | 11 +++++++++++ .../baeldung/ejb/stateless/StatelessEJB.java | 11 +++++++++++ .../com/readlearncode/stateful/EJBClient1.java | 17 ----------------- .../com/readlearncode/stateful/EJBClient2.java | 17 ----------------- .../com/readlearncode/stateful/StatefulEJB.java | 16 ---------------- .../com/readlearncode/stateless/EJBClient1.java | 16 ---------------- .../com/readlearncode/stateless/EJBClient2.java | 17 ----------------- .../readlearncode/stateless/StatelessEJB.java | 16 ---------------- .../ejb/test}/stateful/StatefulEJBTest.java | 13 ++++++------- .../ejb/test}/stateless/StatelessEJBTest.java | 13 ++++++------- 14 files changed, 76 insertions(+), 113 deletions(-) create mode 100644 ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/EJBClient1.java create mode 100644 ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/EJBClient2.java create mode 100644 ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/StatefulEJB.java create mode 100644 ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/EJBClient1.java create mode 100644 ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/EJBClient2.java create mode 100644 ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/StatelessEJB.java delete mode 100644 ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/EJBClient1.java delete mode 100644 ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/EJBClient2.java delete mode 100644 ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/StatefulEJB.java delete mode 100644 ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/EJBClient1.java delete mode 100644 ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/EJBClient2.java delete mode 100644 ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/StatelessEJB.java rename ejb/ejb-session-beans/src/test/java/com/{readlearncode => baeldung/ejb/test}/stateful/StatefulEJBTest.java (88%) rename ejb/ejb-session-beans/src/test/java/com/{readlearncode => baeldung/ejb/test}/stateless/StatelessEJBTest.java (89%) diff --git a/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/EJBClient1.java b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/EJBClient1.java new file mode 100644 index 0000000000..0387beeb3c --- /dev/null +++ b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/EJBClient1.java @@ -0,0 +1,11 @@ +package com.baeldung.ejb.stateful; + +import javax.ejb.EJB; + +public class EJBClient1 { + + @EJB + public StatefulEJB statefulEJB; + + +} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/EJBClient2.java b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/EJBClient2.java new file mode 100644 index 0000000000..54f88a993d --- /dev/null +++ b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/EJBClient2.java @@ -0,0 +1,11 @@ +package com.baeldung.ejb.stateful; + +import javax.ejb.EJB; + +public class EJBClient2 { + + @EJB + public StatefulEJB statefulEJB; + + +} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/StatefulEJB.java b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/StatefulEJB.java new file mode 100644 index 0000000000..17bb08491a --- /dev/null +++ b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateful/StatefulEJB.java @@ -0,0 +1,10 @@ +package com.baeldung.ejb.stateful; + +import javax.ejb.Stateful; + +@Stateful +public class StatefulEJB { + + public String name; + +} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/EJBClient1.java b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/EJBClient1.java new file mode 100644 index 0000000000..0d6f06449b --- /dev/null +++ b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/EJBClient1.java @@ -0,0 +1,10 @@ +package com.baeldung.ejb.stateless; + +import javax.ejb.EJB; + +public class EJBClient1 { + + @EJB + public StatelessEJB statelessEJB; + +} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/EJBClient2.java b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/EJBClient2.java new file mode 100644 index 0000000000..a7fe650b1b --- /dev/null +++ b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/EJBClient2.java @@ -0,0 +1,11 @@ +package com.baeldung.ejb.stateless; + +import javax.ejb.EJB; + +public class EJBClient2 { + + @EJB + public StatelessEJB statelessEJB; + + +} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/StatelessEJB.java b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/StatelessEJB.java new file mode 100644 index 0000000000..d4e9749252 --- /dev/null +++ b/ejb/ejb-session-beans/src/main/java/com/baeldung/ejb/stateless/StatelessEJB.java @@ -0,0 +1,11 @@ +package com.baeldung.ejb.stateless; + +import javax.ejb.Stateless; + + +@Stateless +public class StatelessEJB { + + public String name; + +} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/EJBClient1.java b/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/EJBClient1.java deleted file mode 100644 index a61a3fef0c..0000000000 --- a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/EJBClient1.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.readlearncode.stateful; - -import javax.ejb.EJB; - -/** - * Source code github.com/readlearncode - * - * @author Alex Theedom www.readlearncode.com - * @version 1.0 - */ -public class EJBClient1 { - - @EJB - public StatefulEJB statefulEJB; - - -} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/EJBClient2.java b/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/EJBClient2.java deleted file mode 100644 index 350df5ff86..0000000000 --- a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/EJBClient2.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.readlearncode.stateful; - -import javax.ejb.EJB; - -/** - * Source code github.com/readlearncode - * - * @author Alex Theedom www.readlearncode.com - * @version 1.0 - */ -public class EJBClient2 { - - @EJB - public StatefulEJB statefulEJB; - - -} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/StatefulEJB.java b/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/StatefulEJB.java deleted file mode 100644 index 771508584e..0000000000 --- a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateful/StatefulEJB.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.readlearncode.stateful; - -import javax.ejb.Stateful; - -/** - * Source code github.com/readlearncode - * - * @author Alex Theedom www.readlearncode.com - * @version 1.0 - */ -@Stateful -public class StatefulEJB { - - public String name; - -} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/EJBClient1.java b/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/EJBClient1.java deleted file mode 100644 index e8e6e79a2d..0000000000 --- a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/EJBClient1.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.readlearncode.stateless; - -import javax.ejb.EJB; - -/** - * Source code github.com/readlearncode - * - * @author Alex Theedom www.readlearncode.com - * @version 1.0 - */ -public class EJBClient1 { - - @EJB - public StatelessEJB statelessEJB; - -} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/EJBClient2.java b/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/EJBClient2.java deleted file mode 100644 index ff90f2fcf1..0000000000 --- a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/EJBClient2.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.readlearncode.stateless; - -import javax.ejb.EJB; - -/** - * Source code github.com/readlearncode - * - * @author Alex Theedom www.readlearncode.com - * @version 1.0 - */ -public class EJBClient2 { - - @EJB - public StatelessEJB statelessEJB; - - -} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/StatelessEJB.java b/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/StatelessEJB.java deleted file mode 100644 index 1f60d12e71..0000000000 --- a/ejb/ejb-session-beans/src/main/java/com/readlearncode/stateless/StatelessEJB.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.readlearncode.stateless; - -import javax.ejb.Stateless; - -/** - * Source code github.com/readlearncode - * - * @author Alex Theedom www.readlearncode.com - * @version 1.0 - */ -@Stateless -public class StatelessEJB { - - public String name; - -} \ No newline at end of file diff --git a/ejb/ejb-session-beans/src/test/java/com/readlearncode/stateful/StatefulEJBTest.java b/ejb/ejb-session-beans/src/test/java/com/baeldung/ejb/test/stateful/StatefulEJBTest.java similarity index 88% rename from ejb/ejb-session-beans/src/test/java/com/readlearncode/stateful/StatefulEJBTest.java rename to ejb/ejb-session-beans/src/test/java/com/baeldung/ejb/test/stateful/StatefulEJBTest.java index 04d01975f6..2f3e45a769 100644 --- a/ejb/ejb-session-beans/src/test/java/com/readlearncode/stateful/StatefulEJBTest.java +++ b/ejb/ejb-session-beans/src/test/java/com/baeldung/ejb/test/stateful/StatefulEJBTest.java @@ -1,4 +1,4 @@ -package com.readlearncode.stateful; +package com.baeldung.ejb.test.stateful; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; @@ -9,14 +9,13 @@ import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; +import com.baeldung.ejb.stateful.EJBClient1; +import com.baeldung.ejb.stateful.EJBClient2; +import com.baeldung.ejb.stateful.StatefulEJB; + import javax.inject.Inject; -/** - * Source code github.com/readlearncode - * - * @author Alex Theedom www.readlearncode.com - * @version 1.0 - */ + @RunWith(Arquillian.class) public class StatefulEJBTest { diff --git a/ejb/ejb-session-beans/src/test/java/com/readlearncode/stateless/StatelessEJBTest.java b/ejb/ejb-session-beans/src/test/java/com/baeldung/ejb/test/stateless/StatelessEJBTest.java similarity index 89% rename from ejb/ejb-session-beans/src/test/java/com/readlearncode/stateless/StatelessEJBTest.java rename to ejb/ejb-session-beans/src/test/java/com/baeldung/ejb/test/stateless/StatelessEJBTest.java index 8c7d3e1bc9..9f88d478b7 100644 --- a/ejb/ejb-session-beans/src/test/java/com/readlearncode/stateless/StatelessEJBTest.java +++ b/ejb/ejb-session-beans/src/test/java/com/baeldung/ejb/test/stateless/StatelessEJBTest.java @@ -1,4 +1,4 @@ -package com.readlearncode.stateless; +package com.baeldung.ejb.test.stateless; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; @@ -9,14 +9,13 @@ import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; +import com.baeldung.ejb.stateless.EJBClient1; +import com.baeldung.ejb.stateless.EJBClient2; +import com.baeldung.ejb.stateless.StatelessEJB; + import javax.inject.Inject; -/** - * Source code github.com/readlearncode - * - * @author Alex Theedom www.readlearncode.com - * @version 1.0 - */ + @RunWith(Arquillian.class) public class StatelessEJBTest {