开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜