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
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

Linus Larsen made changes - 07/Apr/08 11:42 AM
Field Original Value New Value
Attachment AmqJNDIPooledConnectionFactory.java [ 16305 ]
Rob Davies made changes - 04/Sep/08 11:06 AM
Assignee Rob Davies [ rajdavies ]
692178 by  Rob Davies (1 file)
04/Sep/08 11:06 AM (14 months, 19 days ago)
Repository Revision Date User Message
AMQ #692178 Thu Sep 04 11:06:50 PDT 2008 rajdavies Patch for https://issues.apache.org/activemq/browse/AMQ-1614
Files Changed
ADD /activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/AmqJNDIPooledConnectionFactory.java

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

Rob Davies made changes - 04/Sep/08 11:07 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 5.2.0 [ 11841 ]
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?


Krunal Shimpi made changes - 19/Jun/09 03:09 PM
Status Resolved [ 5 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
799530 by  Rob Davies (1 file)
31/Jul/09 12:26 AM (3 months, 30 days ago)
Repository Revision Date User Message
AMQ #799530 Fri Jul 31 00:26:56 PDT 2009 rajdavies Fix for https://issues.apache.org/activemq/browse/AMQ-1614
Files Changed
MODIFY /activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/AmqJNDIPooledConnectionFactory.java

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

Rob Davies made changes - 31/Jul/09 12:27 AM
Resolution Fixed [ 1 ]
Fix Version/s 5.2.0 [ 11841 ]
Fix Version/s 5.3.0 [ 11914 ]
Status Reopened [ 4 ] Resolved [ 5 ]
Create crucible review for all 2 changesets in