[EJB 3.0] - Re: Accessing JBoss Datasource from EJB 3.0
by mabimal
Hello all,
I am now not using datasource but using my configuration file by reading it and sending to the XMLParser class.
We need to copy the jar of EJB to client application in order to communicate to EJB by the client. I am now having confusion that, we have lot's of classes supporting connection pool, and there is just an EJB class that responses the client request and helps to establish connection to database.
Currently in my application the connection pool code and EJB interface are in a single jar which i think will cause the problem of more than one instance of the connection pool be created and to avoid that we need to make the connection pool jar and the EJB interface jar different.
But EJB interface and class must be linked with connection pool in order to have connection. So how to achieve this?
In the anticipation of the solution
Mabimal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173526#4173526
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173526
15 years, 7 months
[JBoss Messaging] - standalone client pooling of JMS resources
by jonroler
I have a working standalone JBM 1.4 java client application that publishes messages to a JBoss Application Server running JBM. It is a multithreaded application that will eventually produce (not receive) messages at a pretty high rate, so I will require some form of client-side caching/pooling of JMS connections/sessions/producers. Does JBM provide any support for pooling of JMS resources in a standalone java client? If JBM doesn't have any client-side JMS resource pooling support, can you recommend any other libraries that might be applicable? I'd rather not have to write this myself.
I doubt this affects the answer, but I'll also mention (just in case) that my standalone java client also writes to the database and will need to use XA transactions so that database writes and the publishing of JMS messages are atomic.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173513#4173513
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173513
15 years, 7 months