Click here to Skip to main content
15,887,917 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.

example
@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
Sushant
Posted
Updated 9-Oct-13 18:21pm
v4
Comments
Sergey Alexandrovich Kryukov 9-Oct-13 23:51pm    
Huh?
—SA
Sushant Mandhare 10-Oct-13 0:01am    
Huh means????
Sergey Alexandrovich Kryukov 10-Oct-13 0:14am    
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.
—SA

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