I am connectiong from local Web application. I suppose a context factory class is not necessary. It works fine without a context factory.
Type: Posts; User: asv; Keyword(s):
I am connectiong from local Web application. I suppose a context factory class is not necessary. It works fine without a context factory.
Hello!
I have configured spring JMX with SAP WAS. SAP WAS requires to pass user auth information to InitialContext like:
properties.put(Context.SECURITY_PRINCIPAL, this.username);...
I working with Oracle 10g and I had an exception
getJdbcTempate.query(sql, new Object[]{null}, rewMapper);
java.sql.SQLException: Wrong column type
at...
I have SQL
BEGIN
INSERT INTO MY_TABLE(COL_NAME) VALUES (?) RETURNING RECID INTO ?;
END;
Which Spring object do I need to use in order to execute and get primary key? I din't find samples...
Since 2.0 Spring supports XML Schema.
Will it possible to define own XML Schema and map it to standart Spring configuration without coding or with simple coding? Is there some documentation or...
I have Swing application with 10 - 20 beans in application*.xml. This configuration is loaded 2.5 sec by FileSystemXmlApplicationContext. In future amount of beans will be increased.
I have...
<bean id="test" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces" value="com.test.business.TestService"/>
<property name="target"...
I have the following file structure
/WEB-INF/spring/apllication-business.xml
/WEB-INF/spring/apllication-common.xml
/WEB-INF/spring/apllication-dao.xml
web.xml
---------
I think JdbcTransactionManages and HibernateTransactionManager uses ThreadLocal for storing java.sql.Connection.
But will they work if I will use ThreadLocal for storing my Object?
I know...
Thanks. Of course I can do that. And It is the only one way that I have found. This task confused me. I dont know which way is the best for J2EE application. I think this task isn't unusual.
...
I have a portal application. User are registering via Portal.
In my SecurityInterceptor I need access user profile. I need to check username and role and perform simple logic.
The question is...
Thanks!
It is very funny...
"-UserExistsException" works only on MySQL :)
I guess that the difference is in flushing mode. With MySQL HibernateTemplate performs flush and I can catch...
There are 2 problem
1. The types of exception are different on Oracle9i and MySQL4.1.
2. I cannot cath DataIntegrityViolationException because Hibernate doesn't perform DML SQL in...
I asked on hibernate3 forum.
It is because Spring performs commit after throwing (
don't flush the Session after an exception occurs)
...
I have a field with UNIQUE constraint
When I am inserting not unique value JdbcTemplete throws DataIntegrityViolationException.
But when I am using Spring 1.2 and Hibernate3 HibernateTemplate...
After stoping Tomcat 5 my spring.log containts:
support.AbstractBeanFactory Retrieving dependent beans for bean 'userCache'
07.апр.2005 18:19:05,139 support.AbstractBeanFactory$1 Invoking...
I've solved my problem. I've added TransactionProxy for my Interceptor.
Interseptor doesn't work in the same transaction as the business method.
(Unfortunately I didn't find info about it in...
My Service has TransactionProxy alredy.
Does MethodInterceptor work in the same transaction as my Service ?
or
Do I have to use transaction manager in MethodInterceptor declaratively or...
Spring 1.2rc1
Hibernate 3.0
I have an interceptor.
public class MySecurityInterceptor implements MethodInterceptor {
private PictureDAO pictureDAO;
I've created the schema that is describing the Spring Framework.
I think this schema is more understandable for people who din't hear about Spring.
Spring-schema
Could you check for...
I'm writing an article about Spring. I have two question about AOP:
1. Is it correct to say - Spring AOP includes declarative transaction and interceptors Is declarative transaction AOP feature? ...
It can be only list (links) of components with (announcements, short description and ZIP arhive). Each component can have home on sourceforge.net or java.net or something else.
But I see I's not...
There are many frequently repeating parts of application that we are creating every time. For example: forums, mail interface, cms, serach.
Sometimes it's very difficult to adopt existing...
Could you show an example? Javadoc has little information