Hi,
Can I have a design where in I would have abstract methods in a plain abstract java class and then have my stateless session bean extend it.
Will there be any problem with this approach?
Thanks
Ash
-
Session bean (3 messages)
- Posted by: Ash H
- Posted on: March 23 2005 09:44 EST
Threaded Messages (3)
- Session bean by Bill Lasley on March 23 2005 11:11 EST
- Session bean by Ash H on March 23 2005 12:34 EST
- Session bean by Bill Lasley on March 23 2005 05:40 EST
- Session bean by Ash H on March 23 2005 12:34 EST
-
Session bean[ Go to top ]
- Posted by: Bill Lasley
- Posted on: March 23 2005 11:11 EST
- in response to Ash H
Yes, you can. I don't think you should have any problems.
Bill Lasley
Versant Corp.
http://www.versant.com -
Session bean[ Go to top ]
- Posted by: Ash H
- Posted on: March 23 2005 12:34 EST
- in response to Bill Lasley
Hi,
<br>
What if I have setSessionContext etc ejb related methods in this simple Java class?
Will it be in control of container<br>
Ash -
Session bean[ Go to top ]
- Posted by: Bill Lasley
- Posted on: March 23 2005 17:40 EST
- in response to Ash H
Yes, you can define ejb related methods in your abstract class.
public abstract class AbstractJunk {
// a business method
public abstract void execute(String s, int value);
// an EJB method
public abstract void setSessionContext(javax.ejb.SessionContext ctx);
}
Bill Lasley
Versant Corp.
http://www.versant.com