[JBoss Messaging] - Re: Message priority does not seem to work
by timfox
"ydzsidemiik" wrote : I am trying to test the pure JMS approach, but I am seeing this error:
|
| javax.jms.IllegalStateException: This method is not applicable inside the application server. See the J2EE spec, e.g. J2EE1.4 Section 6.6
| at org.jboss.resource.adapter.jms.JmsSession.checkStrict(JmsSession.java:581)
| at org.jboss.resource.adapter.jms.JmsMessageConsumer.setMessageListener(JmsMessageConsumer.java:136)
|
| Am I supposed to loop on the receive() method of the consumer myself? That's not completely realistic inside my design. Is there any other way to implement an MDB-like pattern without using MDBs?
That error means you're using the JCA adaptor.
Pure JMS = no EJB, no JCA.
I.e. just create a simple JMS client which consumes messages from a queue, and check to see if the priority problem still occurs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126306#4126306
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126306
18 years, 2 months
[JBoss Seam] - Re: Only 1 messages.properties files loaded in 2 WARs
by reind
pete:
I've used the jboss-app.xml from the Registration example. I've since merged all messages into 1 properties file, which works for my project, but I've looked into it further in the hopes that it'll be of some use.
I've created a JIRA bug and sample application:
example app A:
<jboss-app>
| <loader-repository>
| seam.jboss.org:loader=seam-registration
| </loader-repository>
| </jboss-app>
example app B:
<jboss-app>
| <loader-repository>
| seam.jboss.org:loader=zseam-registration
| </loader-repository>
| </jboss-app> (note "z" in 2nd loader name)
A)
2 Seam EARs are deployed
with jboss-app.xml
- only 1 messages.properties file works
B)
2 Seam EARs are deployed
without jboss-app.xml
- only 1 messages.properties file works
C)
1 Seam EARs is deployed
with jboss-app.xml
- both messages.properties files works
D)
1 Seam EARs is deployed
with jboss-app.xml
- both messages.properties files works
n.b. This only affects one of the two EARs that are deployed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126299#4126299
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126299
18 years, 2 months