Witold Szczerba wrote, on 11/02/2010 19:40:
> 2010/2/11 Nigel Deakin<Nigel.Deakin_at_sun.com>:
>> Witold,
>>
>> Witold Szczerba wrote, on 11/02/2010 15:41:
>>>
>>> The problem is I cannot use @Resource injection to get rod of those
>>> InitialContext lookups and NamingExceptions:
>>> ----------------------------------------
>>> @Resource(mappedName = "jms/IVTCF")
>>> private ConnectionFactory ivtcf;
>>> @Resource(mappedName = "jms/IVTQueue")
>>> private Queue ivtQueue;
>>> ----------------------------------------
>>
>> Does it work if you try name instead of mappedName?
>>
>> @Resource(name = "jms/IVTCF")
>> private ConnectionFactory ivtcf;
>> @Resource(name = "jms/IVTQueue")
>> private Queue ivtQueue;
>>
>> Nigel
>>
>
> Yes, I forgot about that - I have tried mappedName as well, didn't
> work as well :/
>
Just to clarify: did this change work (in your session bean)?
Nigel