0
votes

I have created a EJB 3.1 application which uses remoting EJB project jar is deployed on Jboss application and Web project Client war is deployed on Tomcat server both the servers are running on different machine and used JPA for database operation in EJB project which is lookup from Web Project deployed on tomcat. Can somebody suggest me how i can get reference of data source in remote client application and run a select query on that reference. Below link i have used for reference. URL: https://tutorialsjoint.com/ejb-stateless-implementation-using-remote-jndi-lookup/

1
That doesn't make sense. If you need to access the database you must create a datasource in tomcatSimon Martinelli
Hi Simon Martinelli , I have created database over jboss server and that's currently runing over different machine. I need reference of that data source by using remoting concept. Can you suggest is it possible to get and how it can be done. I have newly started working with ejb application.Prashant
That's not possible. You can call remote EJBs that access the databaseSimon Martinelli
I want to reduce database connection count. How can i achieve this ?Prashant
Why does your application run on two nodes?Simon Martinelli

1 Answers

1
votes

This is no longer possible.

It was possible to give a JNDI name to the datasource that could be access from remote until JBoss EAP 5.