On Mon, 2003-03-17 at 08:57, citiz wrote:
> /**
>  * @ejb:bean name="test/CounterSession"
>  *           display-name="My Counter Session Bean"
>  *           type="Stateful"
>  *           transaction-type="Container"
>  *           jndi-name="ejb/test/CounterSession"
>  **/
> public class CounterSessionBean
>    implements SessionBean
> {
>    private int val;
>    /**
>    * @ejb:interface-method view-type="remote"
>    **/
>    public int count() throws RemoteException
...
> How to make the local method work?

@ejb.bean view-type="local"
or
@ejb.bean view-type="both"

You only need the method level view-type parameters if you're using the
class level view-type="both", to tell it which methods are for which
interface, otherwise it'll assume they're for whatever interface(s) are 
specified at the class level.  Also, if you specify e.g. local view type
at class level and remote at the method level, don't be surprised if the
interface is empty...

Default for the class-level tag is "remote", which is why you're having
trouble getting them in the local interface.


Andrew.




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
  • ... Шевчик Виктор Александрович
    • ... Stefan Groschupf
    • ... Stefan Groschupf
      • ... Alex Shneyderman
        • ... Stefan Groschupf
          • ... Alex Shneyderman
            • ... Stefan Groschupf
              • ... Alex Shneyderman
                • ... Andrew Stevens
            • ... citiz
              • Andrew Stevens

Reply via email to