On Jul 10, 2008, at 2:04 PM, Dain Sundstrom wrote:
On Jul 9, 2008, at 11:04 PM, David Blevins wrote:On Jul 3, 2008, at 1:32 AM, Manu George wrote:Hi, I was looking for a way to get the ejb3 beans registered in jndi under the name a user provides in the mappedName attribute of the@Stateless ,@Stateful annotations . One way that David told me to givecustom jndi names was to set the jndi-name as deployment-id via thejndi name configuration property and then give custom deployment ids. However suppose the user wants a way to set a custom mappedName in the annotation and that should be the jndi name. On looking at the code I find that we are not processing for the mappedName. If this is so thenI think that we should be processing the mapped name so that a user can also specify that as a part of auto created deployment ids like shown below. eg: openejb.jndiname.format={deploymentId} openejb.deploymentId.format={mappedName}I wonder if we shouldn't just cut out the middle man and let the mappedName be used as a jndiname format.So I could have an annotation like @Stateless(mappedName="{deploymenId}/Whatever")?
Right, something like that.
Also possible:
@Stateless(mappedName="{interfaceClass}")
@Stateless(mappedName="{ejbName}/{interfaceClass}")
etc.
-David
