[Beginners Corner] - Message Driven Ben in JBoss5.0.0.GA
by ramboid
Could someone point me in the right direction to create and use a Message Driven Bean (EJB 2.x) in JBoss5.x? I have created an MDB in JBoss5 along with the clients but I am having difficulties retrieving the messages in the queue. I have done the following:
1) I created a queue by uploading an xml in the deploy folder. This created a queue that I can see through JMX under jboss.mq.destination
2) Created a mdb and two clients. I got the examples fromhttp://benmira.free.fr/en/j2ee/jms.htm. I changed the descriptor files and the lookup of the ConnectionFactory because JBoss5.0.0.GA lacks a QueueConnectionFactory but still has the ConnectionFactory
3) The MDB installs fine in JBoss after I drop the jar file in the deploy folder
4) The MessageSender code runs fine and creates entries int the queue. I can see via JMX in the Destinations entry of the ServerPeer bean of the Queue bean. The message counter has an entry as follows:Queue,Queue.MyQueue,-,-,2,0,0,0,3/2/09 11:50:49 AM]. Where MyQueue is the name of the queue
5) The MessageReceiver seems to launch the onMessage event of the MDB but the client fails to retrieve the messages in the queue
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214245#4214245
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214245
15 years, 8 months
[EJB/JBoss] - Re: Dependencies for a remote client
by mnouwens@future-earth.eu
Hi there,
I have basicly the same issue except my version is 5.0.1. We manually did it for 4.2.3. but by removing the pom files and cleaning up dependencies.
Is there anybody out the using the maven depenency
org.jboss.jbossas
jboss-as-client
5.0.1.GA
compile
pom
And gettign 30 mb op librarie in which some cases these are duplicates containing the same classes only with the one with classifier client and the other not.
This is not maven to the reque but something else.
Mybe i am using the wrong dependency but all i need to have is ejb3 connection adn in the future maybe jms. On 4.2.4 we reduced it to 3 files. But the number is not the big issue it's the size we are seeing. a swing client of 40 mb of wich 30 is jboss remoting and server side stuff.
Hope somebodyknow the answer.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214241#4214241
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214241
15 years, 8 months
[JBoss Cache: Core Edition] - skipping re-query for null left outer join object from query
by kylesands
Hi... I'm guessing this is just the way it is, but i'd like to confirm... I set up query caching for a few Named Queries and it seems to work good.. One exception case though is on a query like this...
| select x
| from OBJECT_X x
| join fetch x.object_a a
| left outer join fetch x.object_b b
| left outer join fetch x.object_c c
| left outer join fetch x.object_d d
| where x.id = :id_parm
|
In some cases for example, if id_parm = 5, with the outer joins, Object_B and Object_C might be null, which is fine, so the other objects from the query get cached and Object_B and Object_C are not cached, so when the query is called again later, it knows B and C can't be pulled from the cache, so it fires new queries to try and get them from the database even though they will be null. Can i avoid the re-querying for B and C by a new config setting, or a change in the query perhaps, or would i need to code up a custom cache provider class by chance?
Thanks...
Kyle
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214230#4214230
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214230
15 years, 8 months