spring

What is the best project setup in this situation?

The presentation tier will contain 2 web modules (serving different purposes and based on different technologies), the middle tier will be Spring beans without EJBs and the persistence tier will be JPA on Hibernate. I am wondering what would be the best project setup in this case. The IDE I am planning to use is MyEclipse 8.5. Thanks. ...

Events in Spring through annotations

Does anybody know any libraries which can help to maintain working with events through annotations? ----UPDATE----- I mean stuff connected to ApplicationContextEvent and ApplicationContext.publishEvent ...

BasicDataSource configured in spring vs Weblogic datasource

BasicDataSource configured in spring Weblogic datasource which implementation is better in terms of Stability Performance scalability Online Help ...

JSR-303 dependency injection and Hibernate

Spring 3.0.2, Hibernate 3.5.0, Hibernate-Validator 4.0.2.GA I am trying to inject Spring dependencies into a ConstraintValidator using: @PersistenceContext private EntityManager entityManager; I have configured the application context with: <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFacto...

@Autowire strange problem

I have a strange behaviour when autowiring I have a similar code like this one, and it works @Controller public class Class1 { @Autowired private Class2 object2; ... } @Service @Transactional public class Class2{ ... } The problem is that I need that the Class2 implements an interface so I've only changed the Class2 s...

Web based Report Designer Spring/Hibernate

Hello, i am looking for a web based report designer supporting spring/hibernate. I have seen BIRTStudio but it is not free. I came across this list http://java-source.net/open-source/charting-and-reporting which could be helpful.It might be appropriate to cookup my own small reporting engine as my core requirements are -End user shoul...

BeanCreationException in Spring Framework .WAR deploy to Tomcat 6 on Ubuntu 9.10

I am in the process of switching from a Windows box to Ubunutu and I want to run my own local instance of Tomcat 6. I have installed Tomcat 6 without any basic issues. When I try to deploy a .war file that I had running on the Tomcat 6 instance on my Windows box I am getting the following error.... Apr 26, 2010 3:30:27 PM org.apache.c...

Hidden Features of Google Guice

Google Guice provides some great dependency injection features. I came across the @Nullable feature recently which allows you to mark constructor arguments as optional (permitting null) since Guice does not permit these by default: e.g. public Person(String firstName, String lastName, @Nullable Phone phone) { this.firstName = che...

PHP frameworks similar to one in Python like Django

Has anyone used Php frameworks just like we have in Python(Django) and Java(Spring). I want to use something which has end to end solutions. ORM tools, transaction mangement, logging etc. I am not sure how Cake is? But, I am looking something very similar to Django in Php. ...

SAAJMetaFactoryImpl not found on Weblogic 10gR3

I'm in the process of migrating a webservice application that worked perfectly on Weblogic 9 into Weblogic 10gR3. The small difficulty is that my application uses JAX-WS and on Weblogic 9 I had to include JAX-WS libraries in my WAR. But on WLS 10, those libraries are already integrated. To avoid conflicts, I put my WAR inside an EAR with...

Spring bean creation via deserialization

Spring has many different ways of creating beans, but is it possible to create a bean by deserializing a resource? My application has a number of Components, and each manipulates a certain type of data. During test, the data object is instantiated directly and set directly on the component, e.g. component.setData(someDataObject). At run...

"Could not register destruction callback" warn message leads to memory leaks?

Hello all, I'm in the exact same situation as this old question: http://stackoverflow.com/questions/2077558/warn-could-not-register-destruction-callback In short: I see a warning saying that a destruction callback could not be registered for some beans. My question is: since the beans whose destruction callback cannot be registered a...

Sharing transactions between web applications, which run in the same cluster

We (will) have the following architecture: Base.war will be a self-contained spring-hibernate application All applications will run under Glassfish, and may be clustered E1.war will sit on top of Base.war, extending it's functionality There could be further extensions (E2.war, E3.war, ) sitting on top of Base.war Either wars could star...

Android programming: Authentication and data exchange with Java EE

I am having a Java application running in a Tomcat server using Spring, Hibernate, etc. and a two web interfaces, one implemented in Tapestry 5 and the other one using Flex with BlazeDS and Spring-BlazeDS. In my first android application I would now like to log in to the server and retrieve some data. I´m wondering how I could achieve ...

Multiple config files for spring security

Hello all, I'm quite new to all things spring, and right now I'm developing an application that uses Spring, Spring MVC and Srping Security. My problem is that I'm using two dispatcher servlets, one for /csm/*.html and another one for *.html and I'd like to have one spring security configuration file per servlet. Is this possible at al...

Trouble using the Transactional annotation in groovy

Has anyone had any experience with Spring transactions (class-level, with proxy, annotation-driven) not getting started in a Groovy Class? I've been struggling with an unexplained LazyInitialization exception noticed that stacktrace does not include a call to start the transaction. Sounds crazy but I have to wonder whether Groovy picks u...

Formal name of Magento’s Class Override Design Pattern?

Magento is a newish (past 5 years) PHP based Ecommerce system with an architecture that's similar to the Java Spring framework (or so I've been told) One of the features of the Framework is certain classes are not directly instantiated. Rather than do something like $model = new Mage_Foo_Model_Name(); you pass an identifier into a s...

OpenId authentication and automatic registration with Spring Security 3.0.2

I'm implementing an app using spring security 3.0.2 with OpenId login and registration. I can login succesfully, but if the user isn't registered i want to do: 1) Get some OpenId attributes like email and name. 2) Show to the user a registration form with just these two fields and the OpenId URI filled. I've been searching a lot but i...

Log4j "file:<path>" resolution using spring log4j config listener

I'm using spring Log4jConfigListener. My log4j.properties is on path C:/bull/dog/log4j.porperties. I configure log4jConfigLocation as file:/bull/dog/log4j.properties. It worked for me on both windows and linux deployments (on linux the file is on /bull/dog/log4j.properties) I made some changes on the project/IDE setup, and it stopped wo...

Which Java modules get Spring Security

I have a classic Java SOA application, with a web UI module, web services module, a service module (Java API), a domain module and a persistence module. In a sense, each of these modules has their own public API. My understanding of Spring Security is that I can use web filters to handle the security of the web gui and web services,...