Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: AOP with spring dm server

  1. #11
    Join Date
    Nov 2008
    Posts
    232

    Default

    Hi Andy ,

    i have attached the binaries

    regards,
    vishal
    Attached Files Attached Files

  2. #12
    Join Date
    Nov 2008
    Posts
    232

    Default

    Hi Andy,

    Have attached the binaries
    Attached Files Attached Files

  3. #13
    Join Date
    Oct 2008
    Posts
    493

    Default

    As far as I can tell, this is working as it should. By default dm Server captures System.out and System.err and routes it to the log files. To make things a bit easier I changed the configuration in com.springsource.osgi.medic.properties to disable this so that the output would be visible in the console:

    Code:
    dump.root.directory=serviceability/dump
    log.wrapSysOut=false
    log.wrapSysErr=false
    log.dump.level=DEBUG
    log.dump.bufferSize=10000
    log.dump.pattern=[%d{yyyy-MM-dd HH:mm:ss.SSS}] %-28.28thread %-64.64logger{64} %X{medic.eventCode} %msg %ex%n

    I also modified your bundles slightly (to use Import-Package, rather than Import-Bundle for their dependency upon Aspect J) and deployed them. This resulted in the following output:

    Code:
    [2009-11-16 16:55:16.121] deployer-recovery            <DE0059I> Starting bundle 'ServiceCounterRef' version '1.0.0'. 
    com.xyz.myservice.MyServiceImpl
    Class Name com.xyz.service.IServiceMethod sayHello
    Hello
    com.xyz.myservice.MyServiceImpl
    Class Name com.xyz.service.IServiceMethod sayHello
    Hello
    com.xyz.myservice.MyServiceImpl
    Class Name com.xyz.service.IServiceMethod sayHello
    Hello
    com.xyz.myservice.MyServiceImpl
    Class Name com.xyz.service.IServiceMethod sayHello
    Hello
    com.xyz.myservice.MyServiceImpl
    Class Name com.xyz.service.IServiceMethod sayHello
    Hello
    [2009-11-16 16:55:16.267] start-signalling-1           <DE0060I> Started bundle 'ServiceCounterRef' version '1.0.0'.
    Andy Wilkinson
    SpringSource

  4. #14
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    Hi Andy,

    Can you give us some more insight on regions ,basically user region and kernel region. I have lot of doubts like

    • what gets into user region and what gets into kernel region ?
    • What is the configuration to set what gets into user/kernel region ?
    • Whats shared between user and kernel region ? This is to avoid bloating . Whats the configuration for this ?


    Any blog explaining these would be of great help.

  5. #15
    Join Date
    Nov 2008
    Posts
    232

    Default

    Hi Andy ,

    Sorry for the incorrect binaries , you can see the aop config being defined in both the implementation bundle(impl.jar/META-INF/spring/module-context.xml) and interface bundle(intf.jar/META-INF/spring/context.xml)

    I prefer it to be kept only in interface bundle .Is that feasible.
    Last edited by vishalj; Nov 17th, 2009 at 02:47 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
  •