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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
max2fl
Posts: 33
Joined: Mon May 02, 2011 5:09 pm
Contact:

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

Post 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(){
    }

}

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

This has been updated.
Thanks for your feedback!

student

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

Post 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){
...
}

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. The method return type has now been changed.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests