Fixes for code review.

Fixed the issues with jndi_name so that can be preferred method.
Fixed els if so its no longer broken.
Fixed debug to have more information.
Fixed timestamp so use_jms_timestamp works.