This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes using generic types in web service methods Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "using generic types in web service methods" Watch "using generic types in web service methods" New topic
Author

using generic types in web service methods

sh. garg
Greenhorn

Joined: Jan 21, 2009
Posts: 10
Hi
I am trying to use generic request and repsonse classes in the a stateless session bean method exposed as a webservice.
Scenario is
1)Request object that takes a generic type. i.e. Request<T>
Now i use this object as the input parameter for a stateless session bean method.
i.e. signature of the method is
Response<Employee> createEmployee(Request<Employee> emp).
Now, when we use @WebService annotation to expose the bean as webservice we do not see the specific type i.e. Employee in this case in the request structure.

Any idea on how can this be used.

Regards,
sh
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: using generic types in web service methods
 
Similar Threads
Session Bean Methods Call
EJBContext - caller principal : propagate credentials to webservice
TransactionAttribute Question
Stateless beans and SessionSynchronization
Stateless session beans and Transactions