WLS 10.3.0 - EJBGen doesn't generate the method signature correctly in remote interface.

(Doc ID 1267203.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.
***Checked for relevance on 30-DEC-2013***

Symptoms

On WLS 10.3 a stateless session bean (SLSB) with a remote method which contains a generic as return type.

@Session()
public class BatchNDPServiceEJB implements SessionBean {
@RemoteMethod
public List<String> execute(){}
}


Compiling the SLSB using EJBGenAntTask ant task will produce incorrect business interface:

/**
* @weblogic.ejbgen.RemoteMethod UNSPECIFIED
*/
public java.util.List execute() throws RemoteException;


When the expected business interface should be as below:

/**
* @weblogic.ejbgen.RemoteMethod
*/
public java.util.List<java.lang.String> execute() throws RemoteException;

Changes

N/A.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms