I just tested this on a Windows 10 VM and my custom plugin was loaded as
expected when placed in the instance's lib directory.

Also, you mentioned that the instance folder in 2.39.0 "is rather
different" from 2.30.0, but when I compare the two I only see 2 new files
in the instance directory in 2.39.0 - artemis-utility.profile and
log4j2-utility.properties. These extra files were added in 2.37.0 [1] to
allow folks to customize JVM & logging parameters for broker utility
commands (e.g. consumer, producer, queue stat, etc.) as opposed to those
used to actually run the broker.


Justin

[1]
https://activemq.apache.org/components/artemis/documentation/latest/versions.html#2-37-0


On Fri, Mar 7, 2025 at 3:57 PM Justin Bertram <jbert...@apache.org> wrote:

> I just tested this from scratch using 2.39.0 on Linux with a custom plugin
> and everything is working fine when placing the jar in the instance's lib
> directory. I'll try to test on Windows.
>
>
> Justin
>
> On Fri, Mar 7, 2025 at 1:53 PM John Lilley <john.lil...@redpointglobal.com>
> wrote:
>
>> I'm pretty sure I created it from scratch.  The instance folder is rather
>> different than it was in 2.30.
>>
>> -----Original Message-----
>> From: Justin Bertram <jbert...@apache.org>
>> Sent: Wednesday, March 5, 2025 1:10 PM
>> To: users@activemq.apache.org
>> Subject: Re: Server plugin for artemis 2.39
>>
>> *** [Caution] This email is from an external source. Please use caution
>> responding, opening attachments or clicking embedded links. ***
>>
>>
>> I can't recall any particular changes here. Did you create your instance
>> of
>> 2.39.0 from scratch or did you upgrade it from 2.30.0?
>>
>>
>> Justin
>>
>> On Wed, Mar 5, 2025 at 12:48 PM John Lilley <
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__john.lilley-40redpointglobal.com&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=VpU5fPwEQ8wKbKY5SBkV1DYypS_WKWolD9Eue6u6sYo&m=0azbtipDkgIDLKuefR1a5q4uJ5hUjMIkVdnyE81ZNDhjdRP8e3xuRlzLO2AYLY6D&s=ftGvqgx7Sa5J6hVJv2kGuK7MQ3E0_bPpKvkeBdBAbIE&e=
>> >
>> wrote:
>>
>> > I'm having trouble getting my plugin recognized by artemis 2.39 under
>> > Windows x64.
>> >
>> > I configure it
>> > <broker-plugins>
>> >     <broker-plugin
>> > class-name="net.redpoint.rpdm.artemis_logger.RpdmArtemisLogger"/>
>> > </broker-plugins>
>> >
>> > And place the jar in the instance lib folder, but I'm getting
>> > java.lang.IllegalStateException: java.lang.ClassNotFoundException:
>> > net.redpoint.rpdm.artemis_logger.RpdmArtemisLogger
>> >
>> > This works in the 2.30 broker.
>> >
>> > If I put the jar in the root lib folder, it works.  But that's not the
>> > recommended place.  Did something change?  Do I need to add the
>> > instance-lib folder to the classpath explicitly?
>> > PLEASE NOTE: This e-mail from Redpoint Global Inc. ("Redpoint") is
>> > confidential and is intended solely for the use of the individual(s)
>> > to whom it is addressed. If you believe you received this e-mail in
>> > error, please notify the sender immediately, delete the e-mail from
>> > your computer and do not copy, print or disclose it to anyone else. If
>> > you properly received this e-mail as a customer, partner or vendor of
>> > Redpoint, you should maintain its contents in confidence subject to
>> > the terms and conditions of your agreement(s) with Redpoint.
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@activemq.apache.org
>> For additional commands, e-mail: users-h...@activemq.apache.org
>> For further information, visit: https://activemq.apache.org/contact
>>
>>

Reply via email to