Ok, I follow your hints with only a difference:
I've two interfaces implemented by the same pojo, the MBean interface and an
interface for internal use.
Next I've registered in the jndi this pojo using the Nonserializablefactory.
By this way I can cast it in the internal interface for business
this is the solution i've found:
my stateless session bean:
| public class CounterBean implements SessionBean {
|
|public static MovementsMgr myMBean=null;
|
|public void ejbCreate() throws CreateException {
| if (myMBean == null){
| myMBean= new
I like the idea but I've a question about.
Does it work in a clustered evironment?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938146#3938146
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938146
Sorry I made a mistake posting the code in the forum..
The real code I used is import javax.ejb.*;
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3937125#3937125
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937125
There is a way to use a method of a class that implements an MBean interface
but not for that particular method?
This is the case:
I want to push data from a stateless session bean into a management component
I've developed, so that I can see the total amount of a parameter passed to the
I cannot get rid of this:
I've a trivial ejb3 stateless session bean.
package com.alblab.ejb3.interfaces;
| // remote interface
|
| import javax.ejb.Local;
|
| @Remote
| public interface RemoteCalculator {
| public double calculate(int a,int b);
| }
//implementation bean
I worked around the problem: installing the EJB-3.0_RC4 and changing the JNDI
reference accordingly the sample work ... but I'm still puzzled about the
behavior described in the post... 'cause I've not found yet a solution for the
old environment.
View the original post :