Re: Active MQ - runtimeConfigurationPlugin - Set Message Priority - Not working

2017-07-06 Thread Tim Bain
Can you please confirm via JMX that the queue in question (with that exact
name) has PrioritizedMessages=true in its attributes? Let's make sure the
problem is that the setting isn't getting applied, rather than that it's
getting applied but not having the expected result.

Tim

On Jul 6, 2017 8:13 AM, "akpuvvada"  wrote:

> I have configured the 'runtimeConfigurationPlugin' and started the Active
> MQ.
>
> Then added the below in policyEntries:
>  prioritizedMessages="true" useCache="false" expireMessagesPeriod="0" />
>
> After saving the config file, I am able to see that the console log got
> updated saying that config changes are detected and loaded.
>
> When tested, however, Message Priority is not being enforced as expected on
> the queue.
>
> Please advise where and what I am doing wrong?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Active-MQ-runtimeConfigurationPlugin-Set-Message-Priority-Not-
> working-tp4728264.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: upgrade activemq from 5.6 to 5.9

2017-07-06 Thread Tim Bain
Here are a few options off the top of my head:

1. Don't upgrade ActiveMQ till you can upgrade BouncyCastle.
2. Use a debugger to trace the Spring code to figure out which DH algorithm
is the one causing the problem, and then disable its use by your client
code. I've personally never used BouncyCastle, so I don't know offhand how
the disabling gets done (sorry), but I'm confident that the Internet does.
3. Split out your ActiveMQ broker into a standalone process, where its JARs
won't conflict with your app's JARs on the classpath.
4. Stop using the REST API and use the Java JMS client instead.

Tim

On Jul 6, 2017 12:30 PM, "devworkslogin"  wrote:

> Unfortunately, we cannot upgrade yet to bc-1.47. Is there any other
> approach
> that can be considered?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/upgrade-activemq-from-5-6-to-5-9-tp4728235p4728290.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: Active MQ getting restarted automatically

2017-07-06 Thread Tim Bain
Are you getting any log lines to indicate that the broker is choosing to
exit? Or could you be running out of memory?

Tim

On Jul 6, 2017 7:47 AM, "tejas13"  wrote:

> Dear All,
>
>
> Thank in advance.
>
> We are facing one major issue in production environment. We are using
> Active
> MQ 5.14.5 stable version. We  observed that Active MQ server is getting
> restarted automatically after 2,3 days.
>
> We are using topic based communication. we are using 20 Topics.
>
> Previously we found that max connection exceeded exception in log. So we
> cross checked all code and found that all application are closing pooled
> connection mechanism. Then we upgraded active MQ server.
>
> We tried to monitor using JConsole also but did not got anything.
>
> Please suggest required actions and good active mq monitoring tool.
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Active-MQ-getting-restarted-automatically-tp4728251.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: AMQ service stops on network disconnection

2017-07-06 Thread Tim Bain
How is this configuration different from the one that wasn't working?

Tim

On Jul 6, 2017 7:57 AM, "sgtech"  wrote:

> Hello Tim,
>
> We finally get through this issue using the below AMQ lease database locker
> configuration.
>
>  dataSource="#mssql-ds" lockKeepAlivePeriod="5000">
> 
> 
> 
> 
> 
>
> Now AMQ service survive network disconnection and auto-reconnection from/to
> AMQ & database.
>
> Thank you for your help.
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/AMQ-service-stops-on-network-disconnection-
> tp4728212p4728259.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: Artemis v2.1 Spring MessageListener Netty StackOverflow

2017-07-06 Thread abhijith
https://github.com/netty/netty/issues/6931 



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Artemis-v2-1-Spring-MessageListener-Netty-StackOverflow-tp4728139p4728291.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: upgrade activemq from 5.6 to 5.9

2017-07-06 Thread devworkslogin
Unfortunately, we cannot upgrade yet to bc-1.47. Is there any other approach
that can be considered? 



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/upgrade-activemq-from-5-6-to-5-9-tp4728235p4728290.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Artemis v2.1 Spring MessageListener Netty StackOverflow

2017-07-06 Thread Clebert Suconic
Mind sharing the link where that was said? Just curious now.

On Thu, Jul 6, 2017 at 1:27 PM, abhijith  wrote:
> To close this loop, Netty guys suggested to increase stack size(Xss) instead
> of downgrading version.  Bumping stack size from 256K to 1024K worked and we
> don't see the error anymore.
>
> Thanks everyone for quick help
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Artemis-v2-1-Spring-MessageListener-Netty-StackOverflow-tp4728139p4728286.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Clebert Suconic


Re: Artemis v2.1 Spring MessageListener Netty StackOverflow

2017-07-06 Thread abhijith
To close this loop, Netty guys suggested to increase stack size(Xss) instead
of downgrading version.  Bumping stack size from 256K to 1024K worked and we
don't see the error anymore.

Thanks everyone for quick help



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Artemis-v2-1-Spring-MessageListener-Netty-StackOverflow-tp4728139p4728286.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


ActiveMQ - LDAP Custom Authorization need high level steps

2017-07-06 Thread chinababuilla
Hi All,

My LDAP (Active Directory) has only users and groups. It does not have any
details of Destinations and read/write/admin privilege information. We
cannot add to it. 
We have a service that creates the Destinations on demand during which we
also need to configure authorization setting on the fly.
 
For example, if some user is creating Destination, I need to authenticate
that user against LDAP and also need to dynamically configure read/write
permissions for other groups.

After reading couple threads, I realized that I have to extend
LDAPAuthorizationMap but I'm not clear what methods to override.

Can some one please provide me with high level steps that need to be
implemented to provide solution?

Thanks,
Chinna



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-LDAP-Custom-Authorization-need-high-level-steps-tp4728280.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


LDAP: userSearchSubtree=true produces Caused by: javax.naming.PartialResultException: Unprocessed Continuation Reference(s)

2017-07-06 Thread chinababuilla
Hi All,

I have a requirements for ActiveMQ to authenticate users from LDAP (Active
Directory). Users scattered across many groups and search should be
performed on all groups and userBase specified below. 

Here is the details:

Exception:
*Caused by: javax.naming.PartialResultException: Unprocessed Continuation
Reference(s)*


My Configuration:

LDAPLogin {
  org.apache.activemq.jaas.LDAPLoginModule required
debug=true
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory
connectionURL="ldap://{myldaphost}:389;
connectionUsername="CN=myuser,OU=Prod,OU=Accts,DC=abc,DC=com"
connectionPassword="mypassword"
authentication=simple
userBase="DC=abc,DC=com"
userSearchMatching="(cn={0})"
*userSearchSubtree=true
*connectionProtocol=s
roleBase="OU=Groups,DC=abc,DC=com"
roleName=cn
roleSearchMatching="(member=cn={1})"
roleSearchSubtree=false
;
};

After reading few threads, I tried these things:
1. Provided an environment variable Constants.REFERRAL=follow by overriding
the open() method from LDAPAuthorizationMap. No use. Looks like my custom
class is not been used anywhere. 

2. I added jvm parameter -Djava.naming.referral=follow to activemq.bat file
and ran. Still no use.

What am I missing?

Thanks,
Chinna




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/LDAP-userSearchSubtree-true-produces-Caused-by-javax-naming-PartialResultException-Unprocessed-Conti-tp4728274.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Active MQ - runtimeConfigurationPlugin - Set Message Priority - Not working

2017-07-06 Thread akpuvvada
I have configured the 'runtimeConfigurationPlugin' and started the Active MQ.

Then added the below in policyEntries:


After saving the config file, I am able to see that the console log got
updated saying that config changes are detected and loaded.

When tested, however, Message Priority is not being enforced as expected on
the queue.

Please advise where and what I am doing wrong?



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Active-MQ-runtimeConfigurationPlugin-Set-Message-Priority-Not-working-tp4728264.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: AMQ service stops on network disconnection

2017-07-06 Thread sgtech
Hello Tim,

We finally get through this issue using the below AMQ lease database locker
configuration.








Now AMQ service survive network disconnection and auto-reconnection from/to
AMQ & database.

Thank you for your help.




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/AMQ-service-stops-on-network-disconnection-tp4728212p4728259.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Active MQ getting restarted automatically

2017-07-06 Thread tejas13
Dear All,


Thank in advance. 

We are facing one major issue in production environment. We are using Active
MQ 5.14.5 stable version. We  observed that Active MQ server is getting
restarted automatically after 2,3 days. 

We are using topic based communication. we are using 20 Topics. 

Previously we found that max connection exceeded exception in log. So we
cross checked all code and found that all application are closing pooled
connection mechanism. Then we upgraded active MQ server. 

We tried to monitor using JConsole also but did not got anything.

Please suggest required actions and good active mq monitoring tool. 





--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Active-MQ-getting-restarted-automatically-tp4728251.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: MS Sql server Master Slave problem

2017-07-06 Thread gulzarsingh12
Hi,
I was getting similar message with mssql server. But problem fixed for me
after installing hotfix from microsoft for sql server 2012 cumulative update
3

https://support.microsoft.com/en-sg/help/2740957/fix-for-update-clause-allowed-only-for-declare-cursor-error-when-you-e

  



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/MS-Sql-server-Master-Slave-problem-tp2367765p4728249.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Artemis 2.1.0 compatibility with 1.5.x

2017-07-06 Thread hcrobison
It appears that you were able to reproduce the issue.
Is there a plan to fix the problem? If so, what is your estimated time of
completion?



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Artemis-2-1-0-compatibility-with-1-5-x-tp4727741p4728257.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Active MQ Topic -PubSub : Subscriber Blocked because of Fault/Exception

2017-07-06 Thread Tim Bain
Client redelivery works the way you described. For queues, broker
redelivery (see the appropriate section of
http://activemq.apache.org/message-redelivery-and-dlq-handling.html) will
do what you want, but I'm not sure it works for topics. But you could give
it a shot and see if it works.

If not, I don't believe there's a way to do what you want.

Tim (the other one)

On Jun 28, 2017 1:08 PM, "vineet"  wrote:

> No the Subscribers cannot use the same session. They are independent
> entities
> which would handle their own Message events.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Active-MQ-Topic-PubSub-Subscriber-Blocked-
> because-of-Fault-Exception-tp4727900p4728026.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: AcativeMQ becomes slow suddenly in 60 minutes after starting a performance test

2017-07-06 Thread Tim Bain
Can you describe more about your test itself? Were your IoT processes
publishing to queues or topics? To a single one or to one per client? Was
anything consuming the messages? Were the messages persistent or
non-persistent? (If persistent, can you prove it by showing a reasonable
rate of growth on the KahaDB data files?)

Tim

On Jul 2, 2017 9:40 PM, "Hidekazu"  wrote:

> Dear christopher.l.shannon
>
> Thanks for your quick reply.
>
> I alocated 3GB memory for ActiveMQ.
> This is our startup setting for heap allocation.
>
> /usr/sbin/java -Xms3G -Xmx3G -XX:PermSize=256M -XX:MaxPermSize=256M
>
> And this is the systemUsage setting in activemq.xml
>
>
> 
>   
> 
>   
> 
> 
>   
> 
> 
>   
> 
>   
> 
>
>
> Thanks!
> Hidekazu
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/AcativeMQ-becomes-slow-suddenly-in-60-minutes-
> after-starting-a-performance-test-tp4728103p4728185.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>