2 Replies Latest reply on Nov 22, 2004 11:26 PM by bhakthi

    Field Interception

    bhakthi

      Hi,
      AOP is new for me. So i started of exploring with the traditional uses of aspects .i.e, logging and exceptional handling. Currently i am facing a small problem in my AOP project - i need to log the 'Field' values which is of primitive data types. I can trace the read and write invocation but i don't know how to trace the values. For eg. in case of data base connection i may need to log the url, server name and so on.

      Is there any way to solve this problem?
      Please help me.

      Thanks in advance.

        • 1. Re: jboss aop on websphere
          bill.burke

          I'm using 1.4.1 of the IBM VM. We're pretty much tied to WebSphere on this project, so even if we did upgrade to 6.0 in the near term (which we won't) we'd still only be on 1.4.2.

          I tried altering the following part of the replace call in AspectManager.getInstrumentedClassLoader():

          + " $_ = $proceed($1, newBytes, 0, newBytes.length, $5) ;"


          with

          + " $_ = $proceed($1, newBytes, 0, newBytes.length, $5, $6, $7) ;"


          Just like before when I set jboss.aop.verbose to true it chatters on about trying to transform certain objects and determining what methods should be aspectized. That seems to indicate that the AspectManager is being called at the correct time before the defineClass0 method is called, and that classes are successfully being loaded to some degree.

          Ultimately it dies at the same place as before. It still throws the same exception, stating that it is unable to aspectize a class because it is unable to find another class that it references.

          Not sure if the above fix is the fix you were envisioning or not, but I thought I'd give it a try from what I understand about the code.

          As far as the recursive classloading techniques, I'd be interested in trying that out, would I need to dig into javassist? I'll start there and see what I can find, but please feel free to give any directions you might find helpful (I understand that you're pretty strapped for time).

          Thanks for the help,

          Tom

          • 2. 3851807
            bhakthi

             

            "iwadasn" wrote:

            This is basically asking for a short architectural overview. Some of this I dug up on the forums, but I would like a fairly detailed overview. Here's a little bit of a starting point......

            Have you checked out our wiki? That's where all the info is kept (and in the forums!)
            http://www.jboss.org/wiki/Wiki.jsp?page=MailServices

            "iwadasn" wrote:

            I take it that the mail services uses ejb-cmp in order to store all the actual data. IMAP support is planned, but not available yet (so I hear).


            Correct
            "iwadasn" wrote:

            Does the email server support attachments? Do these attachments get stored in the database, or does the system use one of those horrible hybrid db/file systems that leaves half the data on your app server and half of it in the database.

            It is all stored in the database

            "iwadasn" wrote:

            Can the mail server integrate with one of the java webmail systems out there? Is there a plan to integrate it with http://sourceforge.net/projects/jwma at some point in the future?

            Web mail is planned. HOW has not been decided, but thanks for bringing up jwma

            "iwadasn" wrote:

            Is there a plugin architecture for spamasassin and similar modules?

            It is planned. As Andy pointed out in some other thread, we need more users trying out JBoss Mail and demanding features for the project to go forward :-)