Results 1 to 2 of 2

Thread: Gateways and proxies

  1. #1
    Join Date
    Sep 2012
    Location
    Spain
    Posts
    1

    Default Gateways and proxies

    I am currently working on an application which uses some external Jars as "base frameworks" that force to use CGLIB proxies.

    I am trying to use CGLIB proxy in Gateways but i dont know how to achieve this, I have seen this GatewayProxyFactoryBean constructor:

    public GatewayProxyFactoryBean(Class<?> serviceInterface) {
    Assert.notNull(serviceInterface, "'serviceInterface' must not be null");
    Assert.isTrue(serviceInterface.isInterface(), "'serviceInterface' must be an interface");
    this.serviceInterface = serviceInterface;
    }

    It's posible to use CGLIB proxy in this kind of object? In case i can not use CGLIB proxies, How can i deal mixing CGLIB y JDK proxies?

    Thanks in advance.

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,142

    Default

    A gateway proxy is not a proxy for some other class (JDK or otherwise), it is an implementation of a supplied interface created by the framework. Gateways are used by client classes to interact with the messaging system (send/receive messages) without the client code having any knowledge of the messaging system itself. A user class is never involved in a gateway; user classes can be used in other components such as service activators etc, which can (if necessary) be proxied by any mechanism, including CGLIB.

    Perhaps if you can explain exactly what you are trying to do with these classes, someone will be able to help you.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •