[JBoss Messaging] - Message Pulling
by sams
First off, here's what I'm using:
JBoss AS 4.2.2 GA
JBoss Messaging 1.4.0 SP3
I have a cluster configured that is running 3 nodes. This cluster is running on a single computer, so I'm using the binding service to use different ports. I have an MDB that was farmed out to all nodes and is running. That MDB is looking at a queue named "Test". I have all the clustering turned on in the config files for messaging but when I create 50 messages on a single queue, it will throw all messages at a single node. This is all well and good because I am only making 1 connection from the ClusteredConnectionFactory, so all my messages are sent to just 1 queue. The problem is that it should eventually pull some of those messages over to another free node if the other nodes are not doing anything, which they are not.
The MDB that gets all the messages is waiting 5 seconds on each message and is capped at handling only 3 messages at a time, so there is plenty of time for another node to notice the messages lingering on the single node and to pull them over to another node, but it never happens.
Any ideas why things are not pulling as they should? My only guess after days of playing with this is to build out the same environment in multiple vmware virtual machines to ensure that each node has its own IP and there aren't any conflicts. Since I'm not getting any errors at all, I'm saving this option for last since it will be time consuming.
Thanks in advance for any help someone may be able to provide.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130903#4130903
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130903
18 years, 2 months
[JBoss AOP] - Re: Maven 2 plugin?
by dsmiley
Here here! I'm a maven 2 user and I really wish JBoss would expose a full-fledged maven 2 repo with all artifacts, such as for jboss-aop-1.5, etc.
By the way, I used aopc via the antrun plugin like so:
<!-- run JBoss AOPC so that JBoss doesn't have to do this at load time -->
| <plugin>
| <artifactId>maven-antrun-plugin</artifactId>
| <executions>
| <execution>
| <phase>process-classes</phase>
| <goals>
| <goal>run</goal>
| </goals>
| <configuration>
| <!-- http://labs.jboss.com/jbossaop/docs/1.5.0.GA/docs/aspect-framework/refere... -->
| <tasks>
| <path id="classpath">
| <path refid="maven.plugin.classpath"/>
| <path refid="maven.compile.classpath"/>
| </path>
| <taskdef name="aopc" classname="org.jboss.aop.ant.AopC"/>
| <!-- note: use verbose true to check if pointcuts are matching -->
| <aopc verbose="true" compilerclasspathref="classpath">
| <classpath path="${project.build.outputDirectory}"/>
| <src path="${project.build.outputDirectory}"/>
| <aoppath path="${project.directory}/../../mrt-aop/src/resources/META-INF/" />
| </aopc>
| </tasks>
| </configuration>
| </execution>
| </executions>
| <dependencies>
| <dependency><!-- in our local repo -->
| <groupId>org.jboss.aop</groupId>
| <artifactId>aopc_jdk15</artifactId>
| <version>1.5.6</version>
| </dependency>
| </dependencies>
| </plugin>
And for the dependency aopc_jdk15, I used a pom like this:
| <?xml version="1.0" encoding="UTF-8"?>
| <project>
| <modelVersion>4.0.0</modelVersion>
| <groupId>org.jboss.aop</groupId>
| <artifactId>aopc_jdk15</artifactId>
| <version>1.5.6</version>
| <dependencies>
| <dependency>
| <groupId>org.jboss.aop</groupId>
| <artifactId>javassist</artifactId>
| <version>${pom.version}</version>
| </dependency>
| <dependency>
| <groupId>org.jboss.aop</groupId>
| <artifactId>trove</artifactId>
| <version>${pom.version}</version>
| </dependency>
| <dependency>
| <groupId>org.jboss.aop</groupId>
| <artifactId>jboss-common</artifactId>
| <version>${pom.version}</version>
| </dependency>
| <dependency>
| <groupId>org.jboss.aop</groupId>
| <artifactId>concurrent</artifactId>
| <version>${pom.version}</version>
| </dependency>
| </dependencies>
| </project>
|
See my xml comments within. I had to manually import things into my local repo, and I have a direct file path in there which you'd want to change.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130888#4130888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130888
18 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Jboss App Server 4.2.2 issue on Mac OS 10.4 server
by RogerSilva
Hi all,
I'm experiencing a weird behavior trying to deploy an Web app on JBoss
App Server 4.2.2 on Mac OS 10.4 server.
This particular application access a Postgres 8.2 database using JDBC 8.3-603 JDBC 3 drivers.
The application was tested on two different environments (using the same Jboss version, database server, datasource configuration, and jdbc drivers as well):
1)Windows xp with JBoss: the application is deployed successfully and works with no problem.
2)Mac OS 10.4 server with JBoss: during the application deployment Jboss hangs on the following steps:
| [org.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
| [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] Using provided datasource
| [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: 9223372036854775807
| [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: about to notify thread: old next: 1203518653792, new next: 1203518653792
| [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000
| [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000
| [com.arjuna.ats.internal.arjuna.recovery.TransactionStatusConnector_6] - Failed to establish connection to server
|
Both machines can access the database server, and all servers doesn't have any firewall or network restrictions.
Please, Does somebody know what could be this issue root cause?
I have no idea why the same application successfully run on windows xp, and fails to deploy on Mac OS 10.4 server using the same JBoss configuration and version. Besides, both machines relies on the same network, with no firewall, and the database server is reachable on both servers.
I appreciate any help you can give me,
thanks in advance,
Roger
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130886#4130886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130886
18 years, 2 months
[Microcontainer] - Re: POJO thread safety
by alesj
"david.lloyd(a)jboss.com" wrote : Actually one more question - are the locks held when doing auto-wiring and injection and that sort of thing?
|
Yup, a read lock.
"david.lloyd(a)jboss.com" wrote :
| In other words, if I have beans A and B, and I want a property from A to be injected into B, will the same lock be held that is used to change states during the injection? I'm concerned more about memory visibility than locking here.
Nope.
We try to unlock/re-lock things as much as possible, to not keep things in waiting for unnecessary reasons.
But we do make sure things are consistent, applying write/read locks where needed.
See AbstractController.incrementState for such unlocking usage.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130884#4130884
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130884
18 years, 2 months