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

Thread: Aop in child-parent context relationship

  1. #11
    Join Date
    Mar 2007
    Location
    Poland
    Posts
    341

    Default

    Hi

    Marten, I am wondering if you have time to run examples I provided.

  2. #12
    Join Date
    Mar 2007
    Location
    Poland
    Posts
    341

    Default

    Hi

    I decided to do it on my own

    I asked my friend to deploy app on Glassgish 2 U2.

    Beside a change constructor paramter of org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory i made no modifications.

    Application has started but unfortunately I haven't called WS method cause I don't have code of my WS client with me and just didn't feel like writing it again - I'll call WS tommorow.

    From logs i see that on glassfish everything works as it should, so no proxy for beans in webservices module context are created.

    So this time I decided to deploy app on our test server: Webpshere 6.1.0.13, unix.

    After deployment i see in logs that this time proxies are created !!!


    These are snippets from my logs:
    Code:
    [root@virtlinux test]# grep TestKlasa GlassFishHibernateSpring.log
    2008-09-08 20:44:07,406 DEBUG  - Found injected field on class [pl.test.aop.ws.endpoint.EndParticipantCallEndPoint]: AutowiredFieldElement for private pl.test.aop.ws.util.TestKlasa pl.test.aop.ws.endpoint.EndParticipantCallEndPoint.testKlasa [log=InjectionMetadata]
    2008-09-08 20:44:07,406 DEBUG  - Processing injected field of bean 'endParticipantCallEndPoint': AutowiredFieldElement for private pl.test.aop.ws.util.TestKlasa pl.test.aop.ws.endpoint.EndParticipantCallEndPoint.testKlasa [log=InjectionMetadata]
    Code:
    [root@virtlinux test]# grep TestKlasa HibernateSpring.log
    2008-09-08 22:53:48,999 DEBUG  - Found injected field on class [pl.test.aop.ws.endpoint.EndParticipantCallEndPoint]: AutowiredFieldElement for private pl.test.aop.ws.util.TestKlasa pl.test.aop.ws.endpoint.EndParticipantCallEndPoint.testKlasa [log=InjectionMetadata]
    2008-09-08 22:53:49,000 DEBUG  - Processing injected field of bean 'endParticipantCallEndPoint': AutowiredFieldElement for private pl.test.aop.ws.util.TestKlasa pl.test.aop.ws.endpoint.EndParticipantCallEndPoint.testKlasa [log=InjectionMetadata]
    2008-09-08 22:53:49,004 DEBUG  - Not strongly caching class [pl.test.aop.ws.util.TestKlasa] because it is not cache-safe [log=CachedIntrospectionResults]
    2008-09-08 22:53:49,008 DEBUG  - Creating CGLIB2 proxy: target source is SingletonTargetSource for target object [pl.test.aop.ws.util.TestKlasa@c820c82] [log=Cglib2AopProxy]
    2008-09-08 22:53:49,012 DEBUG  - Unable to apply any optimisations to advised method: public void pl.test.aop.ws.util.TestKlasa.dawaj() [log=Cglib2AopProxy]
    [root@virtlinux test]# grep TestKlasa GlassFishHibernateSpring.log
    2008-09-08 20:44:07,406 DEBUG  - Found injected field on class [pl.test.aop.ws.endpoint.EndParticipantCallEndPoint]: AutowiredFieldElement for private pl.test.aop.ws.util.TestKlasa pl.test.aop.ws.endpoint.EndParticipantCallEndPoint.testKlasa [log=InjectionMetadata]
    2008-09-08 20:44:07,406 DEBUG  - Processing injected field of bean 'endParticipantCallEndPoint': AutowiredFieldElement for private pl.test.aop.ws.util.TestKlasa pl.test.aop.ws.endpoint.EndParticipantCallEndPoint.testKlasa [log=InjectionMetadata]
    Tomorrow i will run webservices but i am quite sure i will see entries in my log files what means that interceptors are fired...

    I am wondering what can i do more..

    Should i raise jiira issue on that?

  3. #13
    Join Date
    Mar 2007
    Location
    Poland
    Posts
    341

    Default

    Ok,

    After a few jar problems i am nearly able to call WS method successfully.

    I still got
    Code:
     java.lang.UnsupportedOperationException
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:101)
    when constructing response message but have enough info in my logs.

    As I was suspecting in my previous post "no extra" interceptors are fired on glassfish.
    Everything works as defined in application context files.

    But on Websphere things got weird - beans defined in context file inside webservices modules are wrapped by one of the interceptors.

    Logs from the ws request processing

    websphere:
    Code:
    >>>[2008-09-09 12:38:04,703] INFO  ModuleInterceptor: org.springframework.xml.xsd.XsdSchemaCollection.getXsdSchemas [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:04,843] INFO  ModuleInterceptor: org.springframework.ws.WebServiceMessageFactory.createWebServiceMessage [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:04,921] INFO  ModuleInterceptor: org.springframework.ws.server.EndpointMapping.getEndpoint [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:04,984] INFO  ModuleInterceptor: java.lang.Object.toString [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:04,984] INFO  ModuleInterceptor: java.lang.Object.toString [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:05,000] INFO  ModuleInterceptor: org.springframework.ws.server.EndpointInterceptor.handleRequest [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:05,000] INFO  EndPointInterceptor: org.springframework.ws.server.endpoint.MessageEndpoint.invoke [log=EndPointInterceptor]
    >>>[2008-09-09 12:38:05,000] INFO  ModuleInterceptor: org.springframework.ws.server.endpoint.MessageEndpoint.invoke [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:05,015] INFO  ModuleInterceptor: org.springframework.oxm.mime.MimeUnmarshaller.unmarshal [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:05,109] DEBUG Unmarshalled payload request to [pl.test.aop.ws.schema.EndPaticipantCallRequest@62dc62dc] [log=EndParticipantCallEndPoint]
    >>>[2008-09-09 12:38:05,109] INFO  EndParticipantCallEndPoint.invokeInternal [log=EndParticipantCallEndPoint]
    >>>[2008-09-09 12:38:05,109] INFO  ModuleInterceptor: pl.test.aop.ws.util.TestKlasa.dawaj [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:05,109] INFO  timeMeasureInterceptor1220956685109 pre invoke()   IPrintable.doSth [log=TimeMeasureInterceptor]
    >>>[2008-09-09 12:38:05,109] INFO  timeMeasureInterceptor1220956685109 pre invoke()   IJakiesDAO.daoMethod [log=TimeMeasureInterceptor]
    >>>[2008-09-09 12:38:05,109] INFO  timeMeasureInterceptor1220956685109 post invoke()   IJakiesDAO.daoMethod() 0 ms. [log=TimeMeasureInterceptor]
    >>>[2008-09-09 12:38:05,109] INFO  timeMeasureInterceptor1220956685109 post invoke()   IPrintable.doSth() 0 ms. [log=TimeMeasureInterceptor]
    >>>[2008-09-09 12:38:05,125] INFO  ModuleInterceptor: org.springframework.ws.WebServiceMessageFactory.createWebServiceMessage [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:05,125] DEBUG Marshalling [pl.test.aop.ws.schema.EndPaticipantCallResponse@3f403f4] to response payload [log=EndParticipantCallEndPoint]
    >>>[2008-09-09 12:38:05,125] INFO  ModuleInterceptor: org.springframework.oxm.mime.MimeMarshaller.marshal [log=ModuleInterceptor]
    >>>[2008-09-09 12:38:05,218] INFO  ModuleInterceptor: org.springframework.ws.server.EndpointInterceptor.handleResponse [log=ModuleInterceptor]
    Glassfish:
    Code:
    INFO  EndPointInterceptor: org.springframework.ws.server.endpoint.MessageEndpoint.invoke [log=EndPointInterceptor]
    >>>[2008-09-09 12:56:07,111] DEBUG Unmarshalled payload request to [pl.test.aop.ws.schema.EndPaticipantCallRequest@1356db6] [log=EndParticipantCallEndPoint]
    >>>[2008-09-09 12:56:07,111] INFO  EndParticipantCallEndPoint.invokeInternal [log=EndParticipantCallEndPoint]
    >>>[2008-09-09 12:56:07,111] INFO  timeMeasureInterceptor1220957767111 pre invoke()   IPrintable.doSth [log=TimeMeasureInterceptor]
    >>>[2008-09-09 12:56:07,111] INFO  timeMeasureInterceptor1220957767111 pre invoke()   IJakiesDAO.daoMethod [log=TimeMeasureInterceptor]
    >>>[2008-09-09 12:56:07,111] INFO  timeMeasureInterceptor1220957767111 post invoke()   IJakiesDAO.daoMethod() 0 ms. [log=TimeMeasureInterceptor]
    >>>[2008-09-09 12:56:07,111] INFO  timeMeasureInterceptor1220957767111 post invoke()   IPrintable.doSth() 0 ms. [log=TimeMeasureInterceptor]

    As it was mentioned above call to
    com.sun.xml.messaging.saaj.soap.MessageFactoryImpl .createMessage(MessageFactoryImpl.java:101)
    throws exception on glassfish so some entries do not exist in glassfish log file.

    So it looks as it is websphere problem.

Posting Permissions

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