I'm training myself with the EJB 3 technology.
I followed a guide that helped me to create my first stateless bean.
Now, I want to go to the next step, I would like to create a stateless bean that instead of returning a String, it returns an object.
I tried in the same way I did with the first exercise, but I'm getting several errors.
Can someone explain me the way or some good internet guide?
So since you are doing a remote bean you need some special iiop configuration on the client mvc side in order to access the remote bean. If both EARS are on the same server you can try a local bean. I'd start with putting everything into a single ear and use local beans first.
Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member