OK, try this:
set GERONIMO_OPTS="-Dopenejb.jndiname.format={ejbName}/{interfaceClass}
geronimo.bat start
I tried it.But the default format--{ejbName}{interfaceType.annotationName}
still works,the format doesn't change to {ejbName}/{interfaceClass}.
That is
initialContext.lookup("CalculatorRemote"); works
but initialContext.lookup("Calculator/org.apache.geronimo.samples.slsb.calculator.CalculatorRemote"); failed.
There are my ejb part:
@Remote
interface CalculatorRemote
@Stateless
class Calculator implements CalculatorRemote