oracle 代理服务和商务服务
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2506044/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Proxy Service & Business Service
提问by hakish
Can i use a proxy service without a business service while configuring message flows in Oracle service bus? If so is what scenarios would we use it?
在 Oracle 服务总线中配置消息流时,我可以在没有业务服务的情况下使用代理服务吗?如果是这样,我们会在哪些场景中使用它?
回答by sweetfa
You can create a proxy service that does not use a business service.
您可以创建不使用业务服务的代理服务。
Some reasons for such an approach is to create a common proxy module that is used by other proxy services that may do some common message processing before forwarding to a business service.
这种方法的一些原因是创建一个公共代理模块,由其他代理服务使用,这些代理服务可能会在转发到业务服务之前进行一些公共消息处理。
回答by Soumya
You can create a proxy service without a business service. A simple scenario is suppose you want to fetch the data from the queue, could be jms or mq, and you don't want to do anything with that data. You just simply want to empty the queue and do not want to store the message. In this case, your purpose can be fulfilled by simply creating a proxy service.
您可以在没有业务服务的情况下创建代理服务。一个简单的场景是假设您想从队列中获取数据,可以是 jms 或 mq,并且您不想对这些数据做任何事情。您只是想清空队列而不想存储消息。在这种情况下,只需创建一个代理服务即可实现您的目的。
回答by Miklos Csuka
I think you cannot create a proxy service without a business service call in OSB, but you can call dummy business services that publish on a JMS topic that nobody listens on. This kind of proxy service could implement data transformation (e.g. XSLT) between the request and response, or enrich the response with data retrieved from a lookup table (fn-bea:execute-sql()).
A service bus, like OSB is meant to provide a fa?ade to back-end (business) services: route to and compose existing services. What you are asking for is to create new back-end services which is more suited for Java EE servers or Oracle BPEL.
我认为如果没有 OSB 中的业务服务调用,您就无法创建代理服务,但是您可以调用在无人监听的 JMS 主题上发布的虚拟业务服务。这种代理服务可以实现请求和响应之间的数据转换(例如 XSLT),或者使用从查找表 (fn-bea:execute-sql()) 检索到的数据来丰富响应。
服务总线(如 OSB)旨在为后端(业务)服务提供外观:路由到并组合现有服务。您要求的是创建更适合 Java EE 服务器或 Oracle BPEL 的新后端服务。
Update: You can create stand-alone proxy service, if you use pipeline pair and stage, but no route steps.
更新:如果您使用管道对和阶段,但没有路由步骤,您可以创建独立代理服务。