S
sss
I am trying to follow this example to figure out how to
call an ejb from the ejb client.
http://java.sun.com/javaee/5/docs/tutorial/doc/EJB2.html
Within the Netbeans, I should be able to execute the following source.
@EJB
private static ConverterBean converterBean;
public static void main(String[] args) {
BigDecimal param = new BigDecimal ("100.00");
BigDecimal amount = converterBean.dollarToYen(param);
System.out.println( amount );
}
however, always gives me error saying ConverterBean can't be found.
Is there any extra step i have to take?
call an ejb from the ejb client.
http://java.sun.com/javaee/5/docs/tutorial/doc/EJB2.html
Within the Netbeans, I should be able to execute the following source.
@EJB
private static ConverterBean converterBean;
public static void main(String[] args) {
BigDecimal param = new BigDecimal ("100.00");
BigDecimal amount = converterBean.dollarToYen(param);
System.out.println( amount );
}
however, always gives me error saying ConverterBean can't be found.
Is there any extra step i have to take?