[jboss-user] [EJB 3.0] - SLSB basic design question

vanyatka do-not-reply at jboss.com
Mon Aug 18 12:24:28 EDT 2008


Hi,

There is an SLSB. 
It has a facade method. 
Which calls private methods of the same SLSB. 

How can I pass parameters to those private methods? Via method declaration? 
Or can I use private fields? Like that:

public class SLSB {
  | 
  | int v1;
  | 
  | void facade(int var) {
  |  v1 = var;
  |  call_internal();
  | }
  | 
  | void call_internal() {
  |  use(v1);
  | }
  | }
  | 

Which way is preferred?
Thanks,



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171091#4171091

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171091



More information about the jboss-user mailing list