#304 interface-method overload ignored

closed
nobody
None
5
2002-10-21
2002-09-11
No

When I define a convenience method like "addStudent"
below, only the first one is generated into the remote /
local interfaces. Is this a problem or am I not following
the expected pattern for writing interface methods?

*** MY SLSB CLASS

/**
* @ejb:interface-method view-type="both"
* @ejb:permission role-name="user"
*/
public void addStudent(Student student)
throws NamingException,
CreateException,
RemoteException {
addStudent(student.getUid());
}

/**
* @ejb:interface-method view-type="both"
* @ejb:permission role-name="user"
*/
public void addStudent(Integer studentUid)
throws NamingException,
CreateException,
RemoteException {
// real business code here
}

*** GENERATED REMOTE INTERFACE

public void addStudent( Student student ) throws
javax.naming.NamingException,
javax.ejb.CreateException, java.rmi.RemoteException;

Discussion

  • Andy Stevens

    Andy Stevens - 2002-09-12

    Logged In: YES
    user_id=247081

    Again, there's no patch attached so I'm changing this to a
    bug report.

     
  • Konstantin Pribluda

    • status: open --> closed
     
  • Konstantin Pribluda

    Logged In: YES
    user_id=91100

    moved to JIRA XDT.97

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks