Search:

Type: Posts; User: asv; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    2,018

    I am connectiong from local Web application. I...

    I am connectiong from local Web application. I suppose a context factory class is not necessary. It works fine without a context factory.
  2. Replies
    3
    Views
    2,018

    Strange behaviour of JndiTemplate

    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);...
  3. Replies
    11
    Views
    2,835

    To pass null values to JdbcTempalte.query

    I working with Oracle 10g and I had an exception

    getJdbcTempate.query(sql, new Object[]{null}, rewMapper);

    java.sql.SQLException: Wrong column type
    at...
  4. Replies
    1
    Views
    1,219

    Oracle RETURNING with Spring

    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...
  5. Replies
    1
    Views
    924

    XML Schema and Spring 2.0

    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...
  6. Replies
    1
    Views
    845

    How to optimize loading of configuration

    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...
  7. Replies
    0
    Views
    1,004

    Interceptor is invoced 2 times for each method

    <bean id="test" class="org.springframework.aop.framework.ProxyFactoryBean">
    <property name="proxyInterfaces" value="com.test.business.TestService"/>
    <property name="target"...
  8. Replies
    0
    Views
    929

    Loading Spring xml on SAP WAS 6.40

    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
    ---------
  9. Replies
    2
    Views
    856

    TransactionManagers: How it works?

    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...
  10. Replies
    3
    Views
    1,459

    Thanks. Of course I can do that. And It is the...

    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.
    ...
  11. Replies
    3
    Views
    1,459

    Access Web tier logic in my Interceptor

    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...
  12. Replies
    14
    Views
    2,706

    Thanks!

    Thanks!
  13. Replies
    14
    Views
    2,706

    It is very funny... "-UserExistsException"...

    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...
  14. Replies
    14
    Views
    2,706

    There are 2 problem 1. The types of exception...

    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...
  15. Replies
    14
    Views
    2,706

    I asked on hibernate3 forum. It is because...

    I asked on hibernate3 forum.
    It is because Spring performs commit after throwing (
    don't flush the Session after an exception occurs)
    ...
  16. Replies
    14
    Views
    2,706

    Exception (when using Hibernate3)

    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...
  17. Replies
    3
    Views
    7,215

    The CacheManager is not alive.

    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...
  18. Replies
    3
    Views
    2,103

    I've solved my problem. I've added...

    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...
  19. Replies
    3
    Views
    2,103

    My Service has TransactionProxy alredy. Does...

    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...
  20. Replies
    3
    Views
    2,103

    getHibernateTemplate().initialize() doesn't work

    Spring 1.2rc1
    Hibernate 3.0

    I have an interceptor.



    public class MySecurityInterceptor implements MethodInterceptor &#123;

    private PictureDAO pictureDAO;
  21. Thread: Spring schema

    by asv
    Replies
    1
    Views
    3,021

    Spring schema

    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...
  22. Replies
    1
    Views
    1,383

    AOP and transaction

    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? ...
  23. Replies
    5
    Views
    4,349

    It can be only list (links) of components with...

    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...
  24. Replies
    5
    Views
    4,349

    Spring Components offer

    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...
  25. Replies
    7
    Views
    9,517

    Could you show an example? Javadoc has little...

    Could you show an example? Javadoc has little information
Results 1 to 25 of 32
Page 1 of 2 1 2