Click here to Skip to main content
15,063,944 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,

Can Interface as a return type in EJB method, because i m trying it but java class not deploy.
Interface means ResultSet,Connections not user define interfaces.

@WebMethod(operationName = "MethodName")
public Connection MethodName(@WebParam(name = "username") String username)
Connection conn;
return conn;

but i m trying to deploy but it not deploy in glassfish server.

Thanks all
Updated 9-Oct-13 18:21pm
Sushant Mandhare 10-Oct-13 0:01am
Huh means????
Sorry. This is an English interjection pronounces when one could not hear a person and asks to repeat. Your post is so unclear, that it sounds like I could not hear you, please repeat in understandable way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900