Issue Details (XML | Word | Printable)

Key: AMQ-1614
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Rob Davies
Reporter: Linus Larsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

PooledConnectionFactory not JNDI refereceable

Created: 08/Mar/08 02:31 AM   Updated: 31/Jul/09 12:27 AM
Return to search
Component/s: JMS client
Affects Version/s: 5.0.0
Fix Version/s: 5.3.0

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works AmqJNDIPooledConnectionFactory.java 2008-04-07 11:42 AM Linus Larsen 3 kB
Java Source File AmqJNDIPooledConnectionFactory.java 2008-03-08 02:31 AM Linus Larsen 3 kB
Environment: All

Patch Info: Patch Available


 Description  « Hide
The PooledConnectionFactory does not extend JNDIBaseStorable neither implements JNDIStorableInterface which makes it impossible to store it in a JNDI tree. It is not a problem when using Spring, but when using for example Tomcat and context.xml as configuration it simply does not work.

Attaching a simple fix on how this can be resolved.



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Hiram Chirino added a comment - 07/Apr/08 09:24 AM
Hi Linus,

I would love to add this patch to the ActiveMQ distribution but I can't unless you submit the patch with the Apache copyright headers and you click the check box saying you grant the ASF a license to this code when you submit the patch. Please resubmit so I can get this included in the 5.1.0 release.


Linus Larsen added a comment - 07/Apr/08 11:42 AM - edited
Sure thing, i think it would work now. Let me know otherwise

Rob Davies added a comment - 04/Sep/08 11:07 AM
Patch applied in SVN revision 692178

Krunal Shimpi added a comment - 19/Jun/09 03:09 PM
The fix provided in patch is not 100% complete.

PooledConnectionFactory provides following 3 constructors:
1. PooledConnectionFactory()
2. PooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
3. PooledConnectionFactory(String brokerURL)

The New class AmqJNDIPooledConnectionFactory fixes JNDI problem but though this class extends PooledConnectionFactory, it is provided with support for zero argument constructor.

Can you please provide all 3 constructors for AmqJNDIPooledConnectionFactory class and release patch again?


Rob Davies added a comment - 31/Jul/09 12:27 AM
Fixed by SVN revision 799530