[jboss-user] [EJB 3.0] - simple ejb3 not binding
600114046
do-not-reply at jboss.com
Mon Oct 9 07:31:59 EDT 2006
Hi, I've created a simple ejb to try out ejb3 on Jboss AS jboss-4.0.4.GA(running on jdk 1.5) but after deploying the three simple classes (code below) into a jar into the {jboss AS home}\server\{server name}\deploy directory it doesn't seem to pick it up. The console doesn't recognise anything as it would if it was an ear file and their is no JNDI bind in the JMX Console -> service=JNDIview -> Global JNDI namespace. Any ideas on what i'm doing wrong??
Thanks
Local interface:
---------------------------------------
import javax.ejb.Local;
@Local
public interface MMAPILocal
{
String echoString(String echo);
}
-----------------------------------------
Remote interface:
-----------------------------------------
import javax.ejb.Remote;
@Remote
public interface MMAPIRemote
{
String echoString(String echo);
}
-----------------------------------------
Implementation bean
-----------------------------------------
import javax.ejb.Stateless;
import javax.persistence.PersistenceContext;
import javax.persistence.EntityManager;
@Stateless
public class MMAPIBean implements MMAPILocal, MMAPIRemote
{
public String echoString(String echo)
{
return "I am echoing : " + echo;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976947#3976947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976947
More information about the jboss-user
mailing list