Search code examples
oracle-databasesoatelnetosboracle-service-bus

Oracle Service Bus - Unix authorization over telnet


I'm completely new to Oracle's Service Bus. The problem I'm facing is that OSB 11g is to be used in a rather specific environment meaning - OSB needs to send CSV formatted messages over telnet to a Legacy System. Before that the connection must be authorized with a Unix login and password. As login/pass authorization is fairly simple with such transports as FTP or HTTP I came up with two solutions:

  • developing a new socket transport with an appropriate authorization procedure (ie. using http://sadun-util.sourceforge.net/) basing on sample-transport that comes with the OSB installation
  • JMS using JCA socket adapter and Java Callout with an authorization method in request pipeline - is the one valid?

My question is what is the best way to resolve the problem? Is there any preferred way of dealing with such problems?

Thanks in advance for your answers.
Regards,
P.


Solution

  • Alright, after some testing and browsing I came to two conclusions. Development of a custom transport is worthwile whenever the service you're accessing is to be widely used. On the other hand you can use Java Callout that does custom handshake (this case login/password/accesskey in unix over telnet using apache commons). What is more, you can use a Service Account to authorize the user. In my case solution is like: Business Service for Client Webservice. Proxy accessing BS with a Java Callout that does handshake. Next stage sends message and demands the request.