Are there any Spring methods.. to find if connection is still open.
Developer does'nt have control over DB operations...was wondering if there is a way to detect the connection..
Type: Posts; User: springframework; Keyword(s):
Are there any Spring methods.. to find if connection is still open.
Developer does'nt have control over DB operations...was wondering if there is a way to detect the connection..
I am using JDBCTemplate class for DB operations,using a Websphere Datasource.
Is there a way to find out when the connection was opened and when it was closed?
Yes, the connection is getting refreshed automatically at the end of the connection timeout period.
EJBs are deployed on a remote server and any database calls made through the EJB, are not...
This is from the ImageController class :
private ImageDAOImpl imageDao;
public void setImageDAO(ImageDAOImpl imageDao) {
this.imageDao = imageDao;
}
I am using Websphere Datasource for all database connections to Oracle Database.
Although the connection timeout value is 1800 secs, but connections remain open much beyond the time set.
Here...
I tried invoking the EJB using traditional JNDI lookup.
I am able to get pass through the getImgList() method, no errors on server or local.
However it always returns null, although the EJB...
Yes, serverside logs are produced inside the EJB.
Works perfect from a non spring client
The imgList() retrieves images from backened.
There are no errors thrown during the execution of this method and the logs show that its returning an image in the arraylist.
The ejb is...
This is the ejb-jar.xml that I have included in Spring Project.
Do I need to load it in code using ClassPathXmlApplicationContext ?
Really not sure, what else can I do to get the return...
I am invoking a Stateless Session Remote EJB to retrieve an arrayList .
The program is successfully invoking the EJB and the ejb logs display the result returned, but the return parameter is never...
Its working now... my mistake was adding the EJB in the build path of the spring project...
Some error in the local EJB was preventing the compilation of classes, although I was invoking remote...
Here's how I am getting the EJB in the controller
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/WEB-INF/imgRet-servlet.xml");
ImgInterface imgInterfaceBean =...
I tried to resolve the problem by creating a new web project. But the moment I plug in EJBs in the servlet.xml, the controllers are not getting compiled.
I am referring to a pre-existing Remote...
I am a newbie to Spring...
I have developed a simple application, with a couple of jsps and controller classes.
One of the controller, invokes a pre-existing EJB on a remote server.
I was able to...
I am a newbie to Spring...
I have developed a simple application, with a couple of jsps and controller classes.
One of the controller, invokes a pre-existing EJB on a remote server.
I was able to...
This is a pre existing remote EJB on a different JVM, that I need to access.
Thanks,
Hi All,
Is it generally a good idea to use Spring to access preexisting EJB.
The EJB that I need to access in my application are not built using Spring APIs and neither can they be modified.
I...
I need to access a Stateless Session Bean v 2.0
Hi All,
Is it generally a good idea to use spring to access preexisting EJB.
The EJB that I need to access in my application are not built using Spring APIs and neither can they be...
I resolved this issue by moving the jsp from WEB-INF/jsp to under the WebContent directory.
Also I renamed GetImage.jsp to Image.jsp ad made modified the servlet.xml's entry element to <entry...
Yes, there is a GetImage.jsp in WEB-INF/jsp .
I used getView() in the Controller class
ModelAndView getImageView = new ModelAndView("GetImage");
System.out.println("View Name :...
I modified web.xml to use *.htm as the servlet mapping
<servlet-mapping>
<servlet-name>imageRetreiver</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
and...
I followed the steps of creating a Dynamic Web Project.
Copying spring.jar,jstl.jar in lib directory of the project
Adding commons-logging.jar in the build path.
Adding bean information to...