[JBoss Messaging Users] - Upgrade JBoss AS 5.1.0 to JBoss Messaging 1.4.5.GA?
by kennardconsulting
Hi guys,
Are there special considerations involved in upgrading JBoss 5.1.0 to use the new JBoss Messaging 1.4.5.GA? I'm keen to be updated on the latest bugfixes.
I tried just copying the jboss-messaging.jar into JBoss, but now none of my queues are recognised:
[org.jboss.resource.adapter.jms.inflow.JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@15e154a(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)9b7ca4 destination=jnp://localhost:1100/queue/avant-ss-production.emails destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=false)
| javax.naming.NameNotFoundException: queue not bound
I also note there is no equivalent jboss-messaging-int.jar. Does there need to be?
Regards,
Richard.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258579#4258579
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258579
15 years, 3 months
[JBoss AOP Users] - method foo is the only one that can be executed??
by souma
Good morning
I do not understand why the example foo is the only one that can be executed ... if I change the names or parameters eclipse tells me an error!!! ..
package Essai;
|
| public class Foo {
| public int fooField;
|
| public Foo () {
| fooField = 0;
| }
|
| }
|
| package Essai;
|
| public class FooMixin implements FooMixinInt {
| public FooMixin(){}
|
| public String fooMethod2 (int i) {
| System.out.print("Message");
| return Integer.toString ( 4- i);
| }
|
| }
|
package Essai;
| public interface FooMixinInt {
| public String fooMethod2 (int i);
| }
package Essai;
|
| public class Main {
|
|
| public static void main(String[] args) {
|
| Foo foo = new Foo ();
| FooMixinInt fooint = (FooMixinInt) foo;
| String s = foo.fooMethod2(-2);
|
| }
|
| }
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <aop>
| <introduction class="Essai.Foo">
| <mixin>
| <interfaces>Essai.FooMixinInt</interfaces>
| <class>Essai.FooMixin</class>
| <construction>new Essai.FooMixin()</construction>
| </mixin>
| </introduction>
| </aop>
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258573#4258573
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258573
15 years, 3 months
[Performance Tuning] - 100% CPU utilization by JBoss java process
by avenkatesh
Hello,
We are running load tests with our application using JBoss as the application server. In random load tests (not all) and at a random interval in these load tests, we have observed the JBoss java process running on the application server spike to 100% CPU and remain at 100% unless JBoss is manually restarted. We have captured thread dumps each time we've hit this problem, diagnosed concurrency issues leading to repeated looping, etc, introduced fixes, and monitored. The problem still appears, and we believe at this stage we have exhausted all options that relate to thread dumps.
At this point, all key observations in the thread dumps have been addressed. Are there any known limitations with JBoss Application Server that anyone is aware of, or faced, which could possibly lead to this problem? Please help.
Thanks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258572#4258572
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258572
15 years, 3 months
[Clustering] - TCPPING configuration
by roman.mandeleil@gmail.com
Trying to configure a cluster that uses only TCP but without a success, the ports been assigned correct to the transport but the nodes are not trying to discover each other, any advice ?.
Here is my configuration:
1) two 5.1 nodes on localhost.
2) run commands:
jboss-5.1.0.GA-node1\bin\run.bat -Djboss.service.binding.set=ports-02 -c all
jboss-5.1.0.GA-node2\bin\run.bat -Djboss.service.binding.set=ports-03 -c all
3)
Node - 1
<TCP singleton_name="shared-tcp"
start_port="7800" />
<TCPPING initial_hosts="localhost[7801]" port_range="5"
timeout="3000" num_initial_members="3" />
Node - 2
<TCP singleton_name="shared-tcp"
start_port="7801" />
<TCPPING initial_hosts="localhost[7800]" port_range="5"
timeout="3000" num_initial_members="3" />
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258570#4258570
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258570
15 years, 3 months
[JNDI and Naming] - What is the exact correct way to make JBoss datasource JNDI
by mattjiang
Hi All,
I saw many people got confused of configuring DataSource JNDI on JBoss, I saw two major example, but for me only one works.
I use Spring 2.5.6, Jboss 4.2.2GA, Sun JDK 1.5
Example 1:(works)
mysql-ds.xml
<?xml version="1.0"?>
| <datasources>
| <local-tx-datasource>
| <jndi-name>jdbc/esoafds</jndi-name>
| <connection-url>jdbc:mysql://192.168.1.2:3306/jbranch?useUnicode=true&characterEncoding=UTF8&autoReconnect=true</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>root</user-name>
| <password></password>
| <min-pool-size>3</min-pool-size>
| <max-pool-size>100</max-pool-size>
| <use-java-context>false</use-java-context>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
Spring applicationContext.xml
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/esoafds" resource-ref="false" />
Above example, could someone advises me why I have to add <use-java-context>false</use-java-context> to make this config works?
Example 2:(It should work, but NOT)
mysql-ds.xml
<?xml version="1.0"?>
| <datasources>
| <local-tx-datasource>
| <jndi-name>jdbc/esoafds</jndi-name>
| <connection-url>jdbc:mysql://192.168.1.2:3306/jbranch?useUnicode=true&characterEncoding=UTF8&autoReconnect=true</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>root</user-name>
| <password></password>
| <min-pool-size>3</min-pool-size>
| <max-pool-size>100</max-pool-size>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
Please be aware that no "use-java-context" tag needed.
web.xml
<resource-ref>
| <description>Esoaf DataSource</description>
| <res-ref-name>jdbc/esoafds</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
jboss-web.xml
<jboss-web>
|
| <resource-ref>
| <res-ref-name>jdbc/esoafds</res-ref-name>
| <jndi-name>java:jdbc/esoafds</jndi-name>
| </resource-ref>
|
| </jboss-web>
Spring applicationContext.xml
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
| <property name="jndiName" value="java:jdbc/esoafds"/>
| </bean>
Should I add "java:" before "jdbc/esoafds" or not?
The second example can find correct JNDI name from JBoss, but it returns null from JNDI look up.
Can any body give me a hint what's the concept difference between the two approaches? Why my example 1 works, but exmple 2 return null look up.
Thanks a lot.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258569#4258569
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258569
15 years, 3 months