I had a couple ideas in this area, basically thinking that we could
replace the hard-coded strings in GeronimoMappedName with values we
pull from system properties (or better, the more private
SystemInstance.get().getProperties()) that way the values could always
be changed in the Geronimo OpenEjbSystemGBean to match whatever
Geronimo is currently using.
We'd just need a couple properties specified in OpenEjbSystemGBean like:
SystemInstance.get().setProperty("geronimo.mappedNamePrefix",
"jndi:java:comp/geronimo/env/");
SystemInstance.get().setProperty("geronimo.mejbDeploymentId",
"MEJBGBean/MEJB");
Then they'd need to get checked for in the GeronimoMappedName
constructor and wired into the mapReferences() method.
Anyone want to work on that?
-David
On Oct 5, 2007, at 12:14 PM, Joe Bohn wrote:
if (null == mappedName && ref.getEjbRefName().equals("ejb/MEJB")) {
ref.setMappedName("MEJBGBean/MEJB");
}