I have made one osb process.It is reading data from one particular mailbox.For that I have configured one proxy,and mentioned one service account in that proxy configuration.It is working fine in my local server and printing logs(I have put some log activity in message flow).
But when I deployed it to one cluster env,It is not printing anything in logs.But I think it is reading data from mailbox.I have set post read action to archive and the mails are archived properly in cluster env,so I am assuming that osb proxy is reading mails.
If the emails are being processed properly, and the issue is that is not logging, could be because the log level in the cluster environment is different than in your dev environment (in weblogic console).
Have you set in the pipeline the log level to debug? Try to change the log level error, just for test purposes. Then double check the log level at the server log, and make sure that is compatible.
Are you sure that the other environment is not consuming the message?
You should be able to see if the message was consumed from the inbox. You should either disable the Proxy Service in the either environment, stop the server or just change the credentials in the service account, to make sure that the message is not being consumed by two different environments.
I have checked that also.When I undeployed the osb code from cluster,the messages are there in inbox,not in archived folder.But as soon as I deploy the osb code,the messages are there in archived folder.
Ok, so it seems that there is an issue with logging. In order to isolate the issue:
1) Create a proxy service which you can invoke synchronously, and do only the logging
2) Check in OSB console Operations -> Global Settings, and make sure that Logging is enabled.
3) As you've a cluster environment, make sure that you are checking the log files in all managed servers
I ave checked logging is enabled.Also other proxy is working fine,just printing in log.
Also when I try to test the proxy I have made in cluster,from console with no attachment in email(as from console I am not able to test with input as one mail with attachment),it is printing logs.
Did you check in weblogic console, if you click in your proxy service (the one which consumes from email server) -> Operational settings, is logging enabled?
In your pipeline, are you logging at the end of the message flow? Do you mind adding a global exception handing and log there as well?
This is what I can think of. Otherwise, try to use a report action from your proxy, just to see if the issue is the logging or the consumption.
If none of this work, I would stop of the managed servers, leave only one running. Then you have a couple of options: Enable tracing or run a tcpdump. These 2 will be the source of truth of what is going on.