I am new to EJB3. I created a Calculator stateless session bean. Here are my 2 
interfaces and 1 class. 

*** CalculatorIF ***
public interface CalculatorIF {
        double add (double x, double y);
}

*** CalculatorRemoteIF ***
import javax.ejb.Remote;

@Remote
public interface CalculatorRemoteIF extends CalculatorIF {
}


*** CalculatorImpl ***
import javax.ejb.Stateless;

@Stateless
public class CalculatorImpl implements CalculatorRemoteIF {
        public double add(double x, double y) {
                return x + y;
        }
}

I create a jar with these 3 class files and a 1 manifest.mf file that ant adds. 
I copy this file to "jboss-4.0.3SP1\server\default\deploy" but nothing happens. 
No success or failure message.

The EJBTrail sample code does nothing out of the ordinary. If I unjar 
"EJB3Trail.ear" and copy the "beans.jar" file in the same directory JBOSS logs 
plenty of message including some errors. I have looked at the EJBTrail sources 
and they use the same annotation that I have.

Have I missed something ?

Thanks
-- Raag
PS: I have Java 1.5.0_06-b05, Ant version 1.6.5

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925975#3925975

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925975


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to