Hello,
EJB 2.0 spec says :
"If an enterprise bean is deployed multiple times in the same Container, each deployment results in the creation of a distinct home. The Deployer may set different values for the enterprise bean environment
entries for each home."
I got really confused by reading the above lines.
when I deploy my ejb for the first time HOME1 is created and it sets a environment variable envvar to 1 and I realized that I had given a wrong value for my variable so I deply my ejb again in the same container I change the DD to have a new value for my environment variable envvar as 2 HOME2 is created this time
as per the ejb-spec lines in quote above, there will be two Homes HOME1 and HOME2
HOME1 is having an incorrect value for my variable. My question is : How to avoid getting HOME1 ?
Please let me know.
Thanks!