Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.364 :

Posted: Tue Jun 07, 2011 2:49 pm
by max2fl
Hi,

please correct methods' return type:

Code: Select all

public interface SLRemote{
  void process();
}

public interface SLLocal{
  int m1();
  void m2(int value);
}

@Stateless
@Remote(SLRemote.class)
@Local(SLLocal.class)
public class SLSBean 
{

     public void m1(int value){
      ...
     }

    public int m2(){
     ...
    }

    public void process(){
    }

}
correct:

Code: Select all

public interface SLRemote{
  void process();
}

public interface SLLocal{
  int m1();
  void m2(int value);
}

@Stateless
@Remote(SLRemote.class)
@Local(SLLocal.class)
public class SLSBean 
{

     public int m1(int value){
      ...
     }

    public void m2(){
     ...
    }

    public void process(){
    }

}

Re: About Question enthuware.oce-ejbd.v6.2.364 :

Posted: Tue Jun 07, 2011 8:07 pm
by admin
This has been updated.
Thanks for your feedback!

Re: About Question enthuware.oce-ejbd.v6.2.364 :

Posted: Thu May 10, 2012 3:25 am
by student
Return types of method m2(...) aren't the same in the interface and bean implementation.

SLLocal:

Code: Select all

void m2(int value);
SLSBean:

Code: Select all

public int m2(int value){
...
}

Re: About Question enthuware.oce-ejbd.v6.2.364 :

Posted: Thu May 10, 2012 8:01 pm
by admin
You are right. The method return type has now been changed.

thank you for your feedback!