[jboss-user] [EJB 3.0] - Re: can any one help me - having a bad day with ejb3 server

wolfc do-not-reply at jboss.com
Mon May 28 06:37:53 EDT 2007


"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



More information about the jboss-user mailing list