"wiggy" wrote :
| in my EJB project i declare a bean like this
| package app;
| |
| | import javax.ejb.Remote;
| | import javax.ejb.Stateless;
| |
| | import app.client.HelloUser;
| |
| | // (see later comments on client lookup) @Remote (HelloUser.class)
| | @Stateless
| | public class HelloUserBean implements HelloUser
| | {
| | HelloUserBean()
| | {};
| |
| | public String sayHello (String text)
| | {
| | String msg = "hello " + text + " /n";
| | System.out.println(msg);
| |
| | return msg;
| | }
| | }
|
The bean does not implement a remote interface.
There is no EJB 3 application client deployer in AS 4.2, so injection won't work in main classes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049001#4049001
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049001