After non-reference gbean dependencies (
GERONIMO-512) are implemented, jndi refs should result in creating these dependencies. They need to be optional to take account of (at least) these scenarios:
1. circular ejb references A uses B uses A.
2. An ejb has 2 resource refs: if the first one isn't available, it tries the backup second one.
So, the naming schema needs an optional <optional/> tag to prevent a ref from turning into a dependency.