spring

Spring JMX MBeans, JBoss ListenerService

Hi there, I'm trying to use the Spring JMX Exporter to define a MBean in my JBoss Portal Server (2.7.0) which is built on a JBoss AS 4.2.3. The MBean is exported correctly but I want to trigger some of the PortalEvents now here comes my problem: If I declare a service in my jboss-service.xml I have to define a dependency for this MBea...

spring, hibernate, log4j for centralized error catching

I am using JSF 2.0, Spring, Hibernate and I need to implement Log4J for centralized error catching. Can anybody help? ...

How to implement AOP with Spring

I am using Spring and I need to implement AOP but I am totally new to it. Can anybody help me? ...

spring JDBCTempate and batchUpdate

hi, i have a batchUpdate which is only working on every second attempt. The batchUpdate method takes an Update string update t_table set updated_by=lower(?), updated_date=sysdate, a= ?, b= ? where c= ? and d = ? "; and a number of parameters - some of the parameters will be repeated so it is possible that the same update string is g...

Accessing logged user from a filter

Hello, I have a Spring 3 application with Spring Security. I need to do some proccessing in almost all the urls of my application. The proccesing is different depending on the user which is logged-in. I had though of doing it by using a Spring filter but I cannot access SecurityContextHolder.getContext().getAuthentication().getPrincip...

How to create a custom Spring LoginMessageInterceptor?

Hi, How can I create and register my own LoginMessageInterceptor in Spring? Thanks! ...

String not serializable exception coming for interned strings from Wicket Model (on JRockit/Weblogic)

Hi, The following seems to be a bug with JRockit or Weblogic, but maybe someone on this list has seen it before and has a better workaround/solution. We have been developing a Wicket application for a government agency that is going to be used by 15k users. The application will be deployed on a Weblogic cluster running on JRockit and Red...

Spring-MVC Annotation Problem

Hi All, I have an existing Spring MVC apps written in 2.5. I wanted to use the new annotation controller. I somewhat see that it is really flexible and would answer my other needs. My problem is, it seems I cannot mixed them both. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSch...

Custom authentication in Spring

Hi everyone, I have a question. In Struts, I have an Action that deals with user authentication, i.e., I took the user's credentials and used a DAO to validate user credentials. I want to maintain the same setup in Spring. I'm using Spring 3.0.3 RELEASE. My question is, I've read Spring Security and in there it specifies JDBC backend "...

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'documentumServiceForIDP' is defined

I have a scenario where we deployed two EAR's on JBoss4.2.3. Each Ear has its own applicationContext defined. But I realized while debugging, one application bean definitions overriding the other. Here is the server log: 09:23:23,962 INFO [XmlWebApplicationContext] Refreshing org.springframework.web.context.support.XmlWebAppli...

Frameworks for reporting and courbes with Spring

hello, I'm developing an application with spring MVC, and i need to integrate some courbes, and chart. I want to know which is good framework to use with? I know Birt, but i don't work with it. Thank you ...

Using Spring to Access an EJB Across Clusters in WebSphere using Grails

I have spent the last few days attempting to integrate a Grails (version 1.3.2) application with an EJB 2.1 application that is deployed on WebSphere 6.1. Once our grails apps are in production, they will be deployed to WebSphere as well. The EJB 2.1 application is widely used across our company and, in anything except a local developm...

What's the difference between Struts and Spring?

How do Struts and Spring differ, and which one is more appropriate for developing a web application? ...

Embedded Derby Db in a Spring app on Tomcat

I'm trying to get an embedded Derby db running on a Tomcat/Spring application. <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver" /> <property name="url" value="jdbc:derby:pepper" /> <property name="initialSize" value="5" /> ...

Controller (Spring Managed Bean) Scope Question: Singleton, Request or Session?

The question is a bit long since it's conceptual. I hope it's not a bad read :) I'm working in a performance critical Spring MVC/Tiles web-app (10,000 users typical load). We load an update employee screen, where we load an employee details screen (bound to an employee business object) for updates via a MultiActionController. There are ...

How do you handle Hibernate Session in Business Layer?

How do you handle Hibernate Session in Business Layer? Do you tie your Business Layer to native Hibernate API? (e.g. use session.load() in UserService.java) Any design pattern for Business Layer? Best Practices? I'm using hibernate-core 3.5.3-Final, Spring MVC 3.0.3.RELEASE. ...

wicket @SpringBean can not create bean

I have a project on Eclipse, Wicket, Spring, Hibernate. Every thing works normaly except : when I try public class SortableContactDataProvider extends SortableDataProvider<User> { @SpringBean private Service service; public Iterator<User> iterator(int first, int count) { //SortParam sp = getSort(); retur...

How it works? Google app engine + Spring

Hi, I wonder how spring and google app engine work together I know that google app engine cannot run threads. I think spring is wroking with threads. (if i'm wrong, please correct) So how spring and google app engine work together. ...

Portlet, Spring, Service Layer injecting HttpSession

Hi, I've got a service layer which is managed by spring. Now at one point I need some informations from the httpsession. Is there a clean way to inject the httpsession directly into my servicelayer? My portlets are not managed by spring - this point matters in my setup. ...

Observer pattern implementation using Spring dependency injection

I'm trying to develop an application where in the people will get notified if there is any change in the PartNumber. Its a Spring based application. Following is the code snippet. I've abstracted the storing mechanism here in SaveSubscriptionIF. The actual details of storing and retrieving are in the implementation class of this interfa...