Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Avoid harcode the value of spring context file

    I have Project A and Project B.

    A is web application not having any spring file.
    B is a spring project.

    Project A invokes Project B via..say servlets...

    In project B code... how i should...
  2. Replies
    1
    Views
    810

    Failed to load ApplicationContext

    I am using java jdk1.6.0_06 and jboss-j2ee.jar from jboss-4.2.3.GA

    getting exception while loading the spring config file(applicationContext.xml).

    I am sure that i was using only java...
  3. Replies
    2
    Views
    1,258

    In spring 2.5, public class GenericDAOTest...

    In spring 2.5,


    public class GenericDAOTest extends AbstractTransactionalSpringContextTests {

    public GenericDAOTest(String name) {
    super(name);
    }

    @Override
  4. Replies
    4
    Views
    898

    I can able to get the connection...only if i used...

    I can able to get the connection...only if i used any one( jndi or defaultObject )

    app server is jboss-4.2.3

    If i used both jndi and defaultObject
    and defining the wrong configuration in jndi...
  5. Replies
    4
    Views
    898

    I tried the connection as follows, 1)...

    I tried the connection as follows,

    1) Commented the defaultObject and bean "myDataSource" tried with connection using jndi no issue


    2) Commented the jndi property and connection was...
  6. According to your configuration, If connection...

    According to your configuration,
    If connection using jndi fails by default the connection will be used from defaultObject

    Did you noticed in applicationserver if the jndi connection get failed...
  7. Replies
    4
    Views
    898

    Two different datasource

    I have two different datasource as below one is from pool(jndiName) and the other one is from defaultObject

    <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">...
  8. I just moved the properites file to package...

    I just moved the properites file to package name(com/xxxxx.properties) its working without any issue...

    If any one knows the reason in detail please post it here...

    <bean...
  9. I am not using specific to locale... in junit ...

    I am not using specific to locale... in junit using PropertyPlaceholderConfigurer it works without any issues... but in application server i am getting the error as "Could not resolve placeholder...
  10. Again the same issue..

    Again the same issue..
  11. Could not resolve placeholder 'jdbc.driverClassName'

    I am using two different connection from
    1) connection pooling
    2) from dataSource

    Getting the exception as follows,

    Invalid bean definition with name 'myDataSource' defined in class path...
  12. setComplete() in Spring2.5 and Spring 3.0

    Using spring 2.5.X we usually use setComplete() to persist permanently...

    Using spring 3.0 if we dont want to persist any alternative soultion is available. ?
  13. queryForObject - result single record / multiple recrod

    queryForObject works only if the result is single record.

    But in case if the result is multiple recrod, getting the exception...
  14. getSimpleJdbcTemplate().query() deprecated

    i uprgraded from spring2.5.6 to Spring3.0

    From SimpleJdbcDaoSupport,

    1) getSimpleJdbcTemplate().query() ParameterizedRowMapper deprecated in Spring3.0
    2)...
  15. Replies
    2
    Views
    1,258

    Testsuite in Spring3.0

    How to write testcase using testsuite in Spring3.0

    In Spring2.5.6 we have contructor in AbstractTransactionalSpringContextTests to pass testMethodName.....

    In Spring3.0 , how we could...
  16. Difference between JEXL and spring 3 EL

    What is the difference between JEXL and spring 3 EL ? Can i use replacement of JEXL in spring 3.
  17. Upgrage from Spring2.5.6 to Spring3.0

    I have upgraged junit test case from Spring2.5.6 to Spring3.0

    In Spring2.5.6:
    I used AbstractTransactionalSpringContextTests such as


    public class Test extends...
  18. Replies
    2
    Views
    1,646

    SimpleJdbcDaoSupport

    If we are inheriting the class with SimpleJdbcDaoSupport
    and getting the connection using getDataSource().getConnection()

    Do we required to close the connection through finally block ?
  19. Thanks. I am using junit-4.7.jar and getting...

    Thanks.

    I am using junit-4.7.jar and getting the excetpion as

    java.lang.Exception: No runnable methods
    at...
  20. And also any replacement for the method as...

    And also any replacement for the method as follows ?

    @Override
    protected String[] getConfigLocations() {
    return new String[] { "classpath:applicationContext.xml" };
    }
  21. Deprecated AbstractDependencyInjectionSpringContextTests

    AbstractDependencyInjectionSpringContextTests is deprecated in Spring3.0

    which is the related class with Spring3.0 ?
  22. ava.lang.ClassNotFoundException: org.aopalliance.aop.Advice

    I have upgraded from Spring-2.5.6 to Spring3.0 Release

    Classpath: org.springframework.aop-3.0.0.RELEASE.jar

    But getting error as
    Caused by: java.lang.ClassNotFoundException:...
  23. Thanks Marten.

    Thanks Marten.
  24. Thanks. So whats the solution to execute using...

    Thanks.
    So whats the solution to execute using getSimpleJdbcTemplate().query()
    Any example link
  25. SimpleJdbcDaoSupport - execute SQL query using like operator

    String sqlQuery = SELECT * FROM DEMO WHERE DEMO_NAME LIKE '%?%'

    Object[] objectParamSelect = new Object[] { "patch" };

    List list = getSimpleJdbcTemplate().query(sqlQuery, new DemoRowMapper(),...
Results 1 to 25 of 39
Page 1 of 2 1 2