Results 1 to 3 of 3

Thread: TransactionProxyFactoryBean

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    13

    Default TransactionProxyFactoryBean

    is it possible for 2 beans set the value of the class to org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean in the application-context file?

    is my question strange?

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Can you try and explain what you are trying to do in more detail?

  3. #3
    Join Date
    Nov 2006
    Posts
    13

    Post

    Actually, now I have a project, the service part is to synchonize the data of the attachment that is in xml format. So, I need to unmarshal the attachment to get the data and then through hibernate to update the data in the database.

    so I try to write the DAO class (facade interface for get and insert....) and service interface (Synchonize the attachemnt), and the write the facadeImpl which can access both dao and service.

    I just saw the sample, usually the service part is just directly update or insert the data in the database, i.e. only access the dao, so the TransactionProxyFactoryBean class is set to the facade interface is easy to understand.

    but if the facadeImpl is implemented with the service part, how should I do the setting.

    Actually, I'm still not sure it is possible to do or not.

Posting Permissions

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