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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...