Yes makes perfect sense.
On Thu, Jul 10, 2008 at 11:34 AM, David Blevins <[EMAIL PROTECTED]> 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 give
>> custom jndi names was to set the jndi-name as deployment-id via the
>> jndi 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 then
>> I 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.
>
> -David
>
>