Please, correct me if it's wrong:
1. with each EJBObject there is one fixed Handle object that serves as a
persistent network reference to it;
2. changing container-pool-conf in standardjboss.xml for 'Standard Stateless
SessionBean' to:
     <container-pool-conf>
        <MaximumSize>1</MaximumSize>

<feeder-policy>org.jboss.ejb.plugins.TimedInstancePoolFeeder</feeder-policy>
            <feeder-policy-conf>
                <increment>1</increment>
                <period>500</period>
            </feeder-policy-conf>
     </container-pool-conf>
  means that there will be only one instance of each deployed SLSB;
3. from assertion 2, for each deployed SLSB there will be only one handle;

I've written a SLSB with the following rows in a remote method:
String handler = "not specified";
try {
  handler = "" + ctx.getEJBObject().getHandle();
} catch(Exception e) {}
System.out.println("Handler: " + handler);

But in the log I don't even see the same strings. The output is like this:
Handler: org.jboss.proxy.ejb.handle.StatelessHandleImpl@7a9224
Handler: org.jboss.proxy.ejb.handle.StatelessHandleImpl@fdfc58
Handler: org.jboss.proxy.ejb.handle.StatelessHandleImpl@362a63
Handler: org.jboss.proxy.ejb.handle.StatelessHandleImpl@114025
...

Where is my mistake?

Thank you in advance,
alex


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to