What does java:comp/env/ do?

Quoting https://web.archive.org/web/20140227201242/http://v1.dione.zcu.cz/java/docs/jndi-1.2/tutorial/beyond/misc/policy.html At the root context of the namespace is a binding with the name “comp”, which is bound to a subtree reserved for component-related bindings. The name “comp” is short for component. There are no other bindings at the root context. However, the root context is reserved for the future expansion of the policy, specifically … Read more

Pass arguments to Constructor in VBA

Here’s a little trick I’m using lately and brings good results. I would like to share with those who have to fight often with VBA. 1.- Implement a public initiation subroutine in each of your custom classes. I call it InitiateProperties throughout all my classes. This method has to accept the arguments you would like … Read more