I have configured aop autoaspect proxy as shown below.
I am deploying my web service in websphere server. Everything is working fine If I configure data source using apache dbcp BasicDataSource:
Code is working fine with the above configuration. Once connection is returned, I am able to set value to client identifier and able to retrieve it from syscontext with audit trigger.
But We have actual data source configuration as shown below:
I cannot change this configuration as it is used by multiple applications and I have to follow the same. With the above configuration While deploying I am getting null pointer exception while creating data source bean. Below is the exception that I am getting:
has anyone followed this approach before. It would be helpful if some one can provide instructions on how to proceed further to to resolve this error. is there any other recommended way to follow this approach. Thanks in advance!
No without aspect its working fine. When I try to do with aspect its throwing an exception with JNDI data source configuration and working fine with aspect If I use other data source configurations as specified in question.
Danger, 10,000 volts, very electic .... tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop