1. Can I have stateful session bean that extends a normal Java object and
implements the Session bean interface, and the calls a public method in the
parent class inside a business method of the bean.
For eg
| public class AnalysisTestBean extends AnalysisObject implements SessionBean
{
|
| public AnalysisTestBean() {
| super();
| }
|
| public void setSessionContext(SessionContext ctx)
| throws EJBException,
| RemoteException {
| }
|
| public void ejbRemove() throws EJBException, RemoteException {
|
| }
|
| public void ejbActivate() throws EJBException, RemoteException {
|
| }
|
| public void ejbPassivate() throws EJBException, RemoteException {
|
| }
|
| public void ejbCreate(String param) throws CreateException {
|
| }
|
| /**
| * Business method
| * @ejb.interface-method view-type = "remote"
| */
| public void analyze() {
| super.analyze();
| }
| }
|
Here I have an Analysis parent object with ONLY a public method analyze(), no
static members, and I am trying to design an EJB by inheriting it.
2. Where do I put the Jar file containing the parent object Analysis in the
Jboss distribution tree, so that it can be discovered by JBoss during
deployment?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861895#3861895
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861895
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user