[jboss-user] [Beginner's Corner] - Re: Access to EJB ( JBoss AS 7 )

chris81t do-not-reply at jboss.com
Sat Jul 23 06:33:29 EDT 2011

chris81t [http://community.jboss.org/people/chris81t] created the discussion

"Re: Access to EJB ( JBoss AS 7 )"

To view the discussion, visit: http://community.jboss.org/message/617164#617164

I've also tried:

+public class Content implements Serializable {+
+          private static final long serialVersionUID = 5526381952953438091L;+
+          private String title = "Hello JBoss AS 7 :-)";+

 *+          @EJB(lookup="java:app/HelloJBossEJB/SimpleEJB!de.example.ejb.ISimpleEJB")+*
+    private ISimpleEJB ejb;+

( source:  https://docs.jboss.org/author/display/AS7/Developer+Guide#DeveloperGuide-JNDIPortableJNDISyntax https://docs.jboss.org/author/display/AS7/Developer+Guide#DeveloperGuide-JNDIPortableJNDISyntax )

But it also does not work... The lookup name must be correct, while I've also deployed the EJB Project standalone to the JBoss. Then it has told me:

+d 1-10) JNDI bindings for session bean named SimpleEJB in deployment unit deployment "HelloJBossEJB.jar" are as follows:+

+        java:global/HelloJBossEJB/SimpleEJB!de.example.ejb.ISimpleEJB+
+        java:app/HelloJBossEJB/SimpleEJB!de.example.ejb.ISimpleEJB+
+        java:module/SimpleEJB!de.example.ejb.ISimpleEJB+
+        java:global/HelloJBossEJB/SimpleEJB+
+        java:app/HelloJBossEJB/SimpleEJB+
+        java:module/SimpleEJB+

+12:14:26,698 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "HelloJBossEJB.jar"+

I hope, someone can help me?!

Kind regards!

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110723/713c0bd6/attachment.html 

More information about the jboss-user mailing list