[JBoss JIRA] (JBMESSAGING-1490) BridgeService should be JAAS aware
by Yong Hao Gao (JIRA)
[ https://issues.jboss.org/browse/JBMESSAGING-1490?page=com.atlassian.jira.... ]
Yong Hao Gao updated JBMESSAGING-1490:
--------------------------------------
Fix Version/s: 1.4.8.SP12
(was: 1.4.8.SP11)
> BridgeService should be JAAS aware
> ----------------------------------
>
> Key: JBMESSAGING-1490
> URL: https://issues.jboss.org/browse/JBMESSAGING-1490
> Project: JBoss Messaging
> Issue Type: Feature Request
> Affects Versions: 1.4.2.GA
> Environment: n/a
> Reporter: Nicholas Sayer
> Assignee: Yong Hao Gao
> Priority: Optional
> Fix For: 1.4.0.SP3.CP15, 1.4.8.SP12
>
>
> org.jboss.jms.server.bridge.BridgeService currently requires a username and password for the source and destination. It would be better if it could be configured with a JAAS login context name. This would allow username and password information to be set in, for example, a SecureIdentityLoginModule. For example:
> <application-policy name = "JmsBridgeRealm">
> <authentication>
> <login-module code = "org.jboss.resource.security.SecureIdentityLoginModule" flag = "required">
> <module-option name = "principal">${bridge.user}</module-option>
> <module-option name = "userName">${bridge.user}</module-option>
> <module-option name = "password">${bridge.encryptedPassword}</module-option>
> <module-option name = "ignoreMissigingMCF">true</module-option>
> <!-- it is a separate bug that you must set managedConnectionFactoryName to something regardless of setting ignoreMissingMCF to true -->
> <module-option name = "managedConnectionFactoryName">jboss.nonexistent:service=NonExistent,name=NonExistent</module-option>
> </login-module>
> </authentication>
> </application-policy>
> There is undoubtedly a better way to accomplish this (probably to pass the JAAS context directly into the JMS connection factory used to vend connections for the bridge), but we're using this as a crude hack for now:
> import java.util.Set;
> import javax.security.auth.Subject;
> import javax.security.auth.login.LoginContext;
> import javax.security.auth.login.LoginException;
> import javax.security.auth.login.CredentialNotFoundException;
> import javax.resource.spi.security.PasswordCredential;
> import org.jboss.jms.server.bridge.BridgeService;
> public class JAASAwareBridgeService extends BridgeService {
> private String sourceContext, targetContext;
> public void setSourceLoginContext(String ctxName) { this.sourceContext = ctxName; }
> public String getSourceLoginContext() { return this.sourceContext; }
> public void setTargetLoginContext(String ctxName) { this.targetContext = ctxName; }
> public String getTargetLoginContext() { return this.targetContext; }
> public void start() throws Exception {
> setupSourceCredentials();
> setupTargetCredentials();
> super.start();
> }
> private void setupSourceCredentials() throws LoginException {
> PasswordCredential pc = getPasswordCredential(this.sourceContext);
> super.setSourceUsername(pc.getUserName());
> super.setSourcePassword(new String(pc.getPassword()));
> }
> private void setupTargetCredentials() throws LoginException {
> PasswordCredential pc = getPasswordCredential(this.targetContext);
> super.setTargetUsername(pc.getUserName());
> super.setTargetPassword(new String(pc.getPassword()));
> }
> private static PasswordCredential getPasswordCredential(String contextName) throws LoginException {
> LoginContext ctx = new LoginContext(contextName);
> ctx.login();
> Subject s = ctx.getSubject();
> Set<PasswordCredential> creds = s.getPrivateCredentials(PasswordCredential.class);
> if (creds.isEmpty())
> throw new CredentialNotFoundException("Login context '" + contextName + "' subject has no PasswordCredential");
> return creds.iterator().next(); // get 1st
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months
[JBoss JIRA] (JBMESSAGING-1478) inconsistent test suite performance
by Yong Hao Gao (JIRA)
[ https://issues.jboss.org/browse/JBMESSAGING-1478?page=com.atlassian.jira.... ]
Yong Hao Gao updated JBMESSAGING-1478:
--------------------------------------
Fix Version/s: 1.4.8.SP12
(was: 1.4.8.SP11)
> inconsistent test suite performance
> -----------------------------------
>
> Key: JBMESSAGING-1478
> URL: https://issues.jboss.org/browse/JBMESSAGING-1478
> Project: JBoss Messaging
> Issue Type: Bug
> Components: Tests and Performance
> Affects Versions: 1.4.0.SP3.CP04
> Reporter: Aleksandar Kostadinov
> Assignee: Yong Hao Gao
> Labels: isolation, performance, testsuite
> Fix For: 1.4.0.SP3.CP15, 1.4.8.SP12
>
>
> I see inconsistent performance running the JBM test suite. Here I have 2 builds on the same physical machine (windows), using local disk storage so environment should be pretty stable.
> The mysql database is shared but I doubt it is the culprit.
> I run the test suite with the following options:
> property( name: "functional.tests.database", value: dbname )
> property( name: "stress.tests.database", value: dbname )
> property( name: "clustering.tests.database", value: dbname )
> property( name: "test.target", value: "report" )
> property( name: "test.bind.address", value: properties["env.MYTESTIP_1"] )
> property( name: "jboss.messaging.groupname", value: properties["env.BUILD_TAG"])
> property( name: "jboss.messaging.datachanneludpaddress", value: properties["env.MCAST_ADDR"] )
> property( name: "jboss.messaging.controlchanneludpaddress", value: properties["env.MCAST_ADDR"] )
> Are there any other options I can add to increase isolation from other processes in the same LAN?
> Would you be able to look at these 2 builds and based on the logs, say why is the first one taking longer and eventually timeout?
> http://hudson.qa.jboss.com/hudson/view/SOA-Release/job/soa-jbm/163/
> http://hudson.qa.jboss.com/hudson/view/SOA-Release/job/soa-jbm/164/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months
[JBoss JIRA] (JBMESSAGING-1401) Unverified: Restarting a Queue will delete persistent messages in the queue.
by Yong Hao Gao (JIRA)
[ https://issues.jboss.org/browse/JBMESSAGING-1401?page=com.atlassian.jira.... ]
Yong Hao Gao updated JBMESSAGING-1401:
--------------------------------------
Fix Version/s: 1.4.8.SP12
(was: 1.4.8.SP11)
> Unverified: Restarting a Queue will delete persistent messages in the queue.
> ----------------------------------------------------------------------------
>
> Key: JBMESSAGING-1401
> URL: https://issues.jboss.org/browse/JBMESSAGING-1401
> Project: JBoss Messaging
> Issue Type: Bug
> Components: Configuration and Management
> Affects Versions: 1.4.0.SP3
> Reporter: Jay Howell
> Assignee: Yong Hao Gao
> Fix For: 1.4.0.SP3.CP15, 1.4.8.SP12
>
>
> Restarting a queue in a running server will delete persistent messages out of the database. This bug was found while troubleshooting a case. When a customer restarted the queues, they noticed that all of the persistent messages in the database were gone. I have yet to verify this and will verify as soon as possible. I wanted to make sure that I didn't forget to put it in. So at this point this is an unverified bug.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months
[JBoss JIRA] (JBMESSAGING-1619) add example TCP cluster configuration
by Yong Hao Gao (JIRA)
[ https://issues.jboss.org/browse/JBMESSAGING-1619?page=com.atlassian.jira.... ]
Yong Hao Gao updated JBMESSAGING-1619:
--------------------------------------
Fix Version/s: 1.4.8.SP12
(was: 1.4.8.SP11)
> add example TCP cluster configuration
> -------------------------------------
>
> Key: JBMESSAGING-1619
> URL: https://issues.jboss.org/browse/JBMESSAGING-1619
> Project: JBoss Messaging
> Issue Type: Bug
> Components: JMS Clustering
> Affects Versions: 1.4.0.SP3.CP07
> Reporter: Dennis Reed
> Assignee: Tyronne Wickramarathne
> Fix For: 1.4.0.SP3.CP15, 1.4.8.SP12
>
>
> Add an example TCP cluster configuration (commented out) to all the example *-persistence-service.xml files.
> This will make it easier for users who have issues with UDP multicast to configure it to use TCP clustering.
> (The same thing is being done to all the EAP configurations that don't already include this).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months
[JBoss JIRA] (JBMESSAGING-1610) expose jbossInternalLifecycle method on jms destination mbeans
by Yong Hao Gao (JIRA)
[ https://issues.jboss.org/browse/JBMESSAGING-1610?page=com.atlassian.jira.... ]
Yong Hao Gao updated JBMESSAGING-1610:
--------------------------------------
Fix Version/s: 1.4.8.SP12
(was: 1.4.8.SP11)
> expose jbossInternalLifecycle method on jms destination mbeans
> --------------------------------------------------------------
>
> Key: JBMESSAGING-1610
> URL: https://issues.jboss.org/browse/JBMESSAGING-1610
> Project: JBoss Messaging
> Issue Type: Task
> Components: AS Integration
> Affects Versions: 1.4.3.GA
> Reporter: Emanuel Muckenhuber
> Assignee: Yong Hao Gao
> Fix For: 1.4.0.SP3.CP15, 1.4.8.SP12
>
>
> Currently the Queue and Topic xmbean definitions don't expose the jbossInternalLifecycle(String method). This method is needed that the lifecycle and state changes of a mbean are handled by microcontainer (AS5). Otherwise profileservice cannot determine the current state and a stopped jms destination would be still exposed as running to JON/JOPR.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months
[JBoss JIRA] (JBMESSAGING-1631) Messages are piling up in the queues in clustered environment and not pulled by message sucker
by Yong Hao Gao (JIRA)
[ https://issues.jboss.org/browse/JBMESSAGING-1631?page=com.atlassian.jira.... ]
Yong Hao Gao updated JBMESSAGING-1631:
--------------------------------------
Fix Version/s: 1.4.8.SP12
(was: 1.4.8.SP11)
> Messages are piling up in the queues in clustered environment and not pulled by message sucker
> ----------------------------------------------------------------------------------------------
>
> Key: JBMESSAGING-1631
> URL: https://issues.jboss.org/browse/JBMESSAGING-1631
> Project: JBoss Messaging
> Issue Type: Bug
> Components: JMS Clustering
> Affects Versions: 1.4.0.SP3.CP08
> Environment: Cluster of a few JBoss 4.2.3 servers with JBM 1.4.2.GA-SP1 or 1.4.0.SP3_CP08 running on x64 windows servers.
> JBoss Remoting 2.5.1 or 2.2.3
> Clustered XA connection factory, clustered queues, both server and client (MDBs) are deployed as one application - identical deployment for all servers in a cluster
> Reporter: Victor Starenky
> Assignee: Yong Hao Gao
> Fix For: 1.4.0.SP3.CP15, 1.4.8.SP12
>
> Attachments: 1631-test-source.zip, logs-and-config-prod.zip, logs-and-config-test.zip, TestRecommendationSentProcessorMDB.java
>
>
> We have an EJB3 application is running on a cluster of 7 servers.
> All servers have the same application farmed across them.
> We have a clustered queue and using clustered connection factory.
> Originally we ran into the bug JBMESSAGING-1456 and while testing the fix ran into a different problem. After the cluster was running for some time (usually overnight with lots of heavy background processing hapenning at that time) we see messages are "piling up" in some queues on some nodes.
> Sympthoms are:
> MessageCount is not zero (rather in the order of hundreeds), DeliveringCount is zero. These nodes have ConsumerCount=0 for the queues experiencing the problem. Message sucker is configured as far as I can tell. Looks like the problem might be related to client and/or server failover leaving some nodes without consumers while sucker not doing it's job (if I understand it correctly).
> Once we bump the timeout values much higher than they are in the original config files the problem seems to disappear or at least show up much less frequently. Specifically I'm talking about these values:
> messaging-service.xml:
> <attribute name="FailoverStartTimeout">180000</attribute>
> remoting-bisocket-service.xml:
> <attribute name="clientLeasePeriod" isParam="true">30000</attribute>
> <attribute name="validatorPingPeriod" isParam="true">30000</attribute>
> <attribute name="validatorPingTimeout" isParam="true">20000</attribute>
> <attribute name="registerCallbackListener">false</attribute>
> <attribute name="timeout" isParam="true">240000</attribute>
> While this serves as a temporary workaround we don't feel we can rely on JBM in a production clustered environment without having failover working properly.
> This is a big showstopper for us at the moment.
> Attached are the log files from the prod environment of 7 servers with the config files as well as log files from the test environment with just 2 servers (having same issue) and corresponding configs. The logs were produced by the test version of the messaging code with added logging as per JBMESSAGING-1456.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months