Menu

#57 Stateful Session beans

open
nobody
None
5
2004-02-12
2004-02-12
No

I am running version 2.1.2 of eclipse and Lomdoz with
JBoss 3.2.3

When I generate the stubs from a Stateful session
bean,it does not create the ejbCreate() method so I
cant deploy the bean. If I edit the file and add the
method, everthing is okay but it's a bit aof a pain doing
this every time i re-gen the stubs.

If I change the tag to a Stateless bean, the method is
generated. Any Idea what I am doing wrong?

Also, I have several sets of code in one progect. Some
stand alone, run anywhere code. A bean, a servelet and
a test client. The bean is in the same package as the
standalon code but the serverlet is in a different
package. I have created a Web module for the Serverlet
and a ejb module for the bean. When I build the jar and
war files, all the code is included in both archives. To
get it to work, I have to manually remove the web stuff
from the jar file. I can't belive that this is right. Again,
has anybody got any ideas what I am doing wrong?

All help appreciated

Discussion


Log in to post a comment.

MongoDB Logo MongoDB