代理服务及商业服务
在 Oracle 服务总线中配置消息流时,是否可以在没有业务服务的情况下使用代理服务?如果是的话我们会在什么场景下使用它?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以创建不使用业务服务的代理服务。
采用这种方法的一些原因是创建一个由其他代理服务使用的公共代理模块,这些代理服务可以在转发到业务服务之前执行一些公共消息处理。
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.
我认为如果没有 OSB 中的业务服务调用,您就无法创建代理服务,但您可以调用在无人监听的 JMS 主题上发布的虚拟业务服务。这种代理服务可以在请求和响应之间实现数据转换(例如 XSLT),或者使用从查找表(fn-bea:execute-sql())检索的数据来丰富响应。
服务总线(例如 OSB)旨在为后端(业务)服务提供外观:路由至现有服务并组合现有服务。您要求的是创建更适合 Java EE 服务器或 Oracle BPEL 的新后端服务。
更新:如果您使用管道对和阶段,但没有路由步骤,则可以创建独立的代理服务。
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.
Update: You can create stand-alone proxy service, if you use pipeline pair and stage, but no route steps.
您可以在没有业务服务的情况下创建代理服务。一个简单的场景是假设您想要从队列中获取数据,可以是 jms 或 mq,并且您不想对这些数据执行任何操作。您只是想清空队列并且不想存储消息。在这种情况下,只需创建代理服务即可实现您的目的。
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.