$Proxy0 class represents the actual proxy class generated on the
fly and as you can deduce it from the class diagram. $Proxy0 is a type of our
interface (SimpleIntf).
Chapter 13
[ 243 ]
To build the sample, first change directory to ch13\JdkProxy and execute ant as
shown here:
cd ch13\JdkProxy
ant
The command ant run will execute the Test class which will print out the following
in the console:
ServiceMix JBI Proxy
Java proxies for the JBI endpoints can be created in ServiceMix using JSR181
components. For this, the requirement is that the JBI endpoints should expose
a WSDL.
A jsr181:endpoint takes a value for the serviceInterface attribute. The JBI
container will be able to generate the WSDL out of this serviceInterface. Thus, if
we have a jsr181:endpoint exposing service to the JBI bus, it is possible to provide
a proxy for that service too.
The basic configuration for defining a JBI proxy is shown as follows:
container="#jbi"
interfaceName="test:HelloPortType"
type="test.Hello" />
Once a proxy is defined, the same can then be referenced from your client bean or
from one of your components.
Pages:
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337