EJB 3 | Entities with webservices
I want to access a inventory system which is accessible through webservice, What is the best way to integrate, I thought of directly expose the entity facade as a web service using @WebSerive
it's possi开发者_运维百科ble but don't know whether it's a good approach or not, need some advice.
Thanks.
You could eventually define the methods to be exposed in the same class (or maybe create a wrapper).
My understanding is that you want to consume a web service i.e. to implement a web service client. My recommendation would be to use JAX-WS for this. See :
- A Simple JAX-WS Client in the Java EE 5 Tutorial
- Developing JAX-WS Web Service Clients
精彩评论