Results 1 to 3 of 3

Thread: After advice design question

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    18

    Default After advice design question

    Hi,

    we have multiple clients (struts, soap, etc) that access a services tier whereby transaction demaraction is control via an around advice. We also have another cross cutting conern that I can encapsulate in an after advice. However, unlike the transaction advice these clients may need to do other processing specific to that particular client type, ie a struts action would need to do a forward, etc.

    So, my question is how can these different clients be informed that they need to do extra 'client-specific' logic based on the after advice. I dont want to throw an exception, so my only other idea at this point is to set something, ie a flag, in a threadlocal that the client could then check? If I cant do this, then the logic in the after advice would need to be duplicated across the struts actions and soap handlers.


    thanks in advance.

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    I would suggest using a thread local, as you mention.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Sep 2005
    Posts
    8

    Default

    hi,

    I think that you should learn some ideas with JavaServerFaces. These days I began to learn it. May be the term "UI component" fitted to you.

Similar Threads

  1. design question: passing context
    By Alarmnummer in forum Management
    Replies: 0
    Last Post: Oct 3rd, 2005, 01:20 PM
  2. Bean design question
    By egervari in forum Container
    Replies: 1
    Last Post: May 12th, 2005, 12:43 PM
  3. Newbie's question: design interface for remote access
    By Savagearts in forum Architecture
    Replies: 2
    Last Post: Mar 17th, 2005, 12:02 AM
  4. Replies: 6
    Last Post: Oct 8th, 2004, 02:21 PM
  5. Design question, c3p0 and more..
    By kantorn in forum Data
    Replies: 4
    Last Post: Oct 7th, 2004, 08:20 AM

Posting Permissions

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