Search:

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

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. I would double check the...

    I would double check the ".metadata/.plugins/org.eclipse.wst.server.core/tmp?/wtpwebapps/???/WEB-INF/lib"
    to make sure the jar count matches the one in your classpath entry.
    tmp? = all directory...
  2. Replies
    3
    Views
    750

    or you could have a properties file?...

    or you could have a properties file?
    ${controllerPaths['login']} ?
    or something like that.
  3. Replies
    3
    Views
    352

    I use implements ServletContextAware ...

    I use implements ServletContextAware

    http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/web/context/ServletContextAware.html

    ServletContextAware uses "injection by...
  4. Replies
    0
    Views
    199

    Simple code table resolution

    Hello all,

    I have been using Spring for a while and currently I am using Spring 3.1.2.

    According to page 460 in spring-framework-reference.pdf:


    I use it frequently "to fill a drop-down...
  5. You could use JNDI. The production user and...

    You could use JNDI.
    The production user and password settings would not be in the war file.
    You tell your app to use "oracleDataSource".
    In your container, you configure your "oracleDataSource".
  6. Replies
    8
    Views
    2,195

    Build path is incomplete. Cannot find class file...

    Build path is incomplete. Cannot find class file for org/apache/commons/logging/Log spring-hibernate.xml /project1/src/main/resources/spring line 11 Spring AOP Problem

    i just put

    <bean...
  7. Replies
    1
    Views
    782

    i am not sure if this can work, but you could...

    i am not sure if this can work, but you could mock it.
    ServletContext is a interface,
    use setServletContext to set it to a mocked object.
    then the call to "getServletContext" would not return...
  8. i think what u need is the "packagesToScan"...

    i think what u need is the "packagesToScan" property.
  9. Replies
    5
    Views
    868

    The documentation for @Transactional says that I...

    The documentation for @Transactional says that I could put it it on the interface or on the implementation, that led me to believe that AOP using annotation would allow me to put the annotation on...
  10. Replies
    5
    Views
    868

    I think, Transaction boundaries should be in...

    I think,

    Transaction boundaries should be in the service layer,

    while

    AOP should be anywhere (such as adding a logging aspect).

    Anyway I managed to add the AOP,
  11. Replies
    5
    Views
    868

    Problem with AOP in the controller

    Spring version: 3.0.4
    Controller type: Annotation based @Controller

    Hello,
    I am trying to put AOP in the controller.
    I have a few controllers that do almost the same thing, that means a lot of...
  12. what should i use as a substitute?

    what should i use as a substitute?
  13. Similar problem, with @GeneratedValue

    here is the problem,
    i'm using mysql 5 innodb as the storage engine
    and i use a Long id as the PK

    this is what i did
    insert - ID 1 (generated)
    insert - ID 2 (generated)
    insert - ID 3...
  14. Replies
    0
    Views
    446

    Multiple Datasource for JPA

    hello,

    Can I create 2 beans, of the same class. that points to different datasources, using JPA?

    I know how to do that using Jdbc


    <bean id="localPriceDao" class="sample.JdbcPriceDao">...
  15. Interceptors for controllers with annotations

    hello
    for spring mvc, in the old days, i had interceptors for each controller to populate the drop down boxes.

    listCountryInterceptor,

    all they do is call a service and populate the request...
  16. Replies
    0
    Views
    666

    Injecting a map

    in spring 3.0 pdf documentation, page 91, it says


    how do i convert from this


    <bean id="bean01" class="test.Bean01">
    <constructor-arg>
    <ref local="map"/>
    </constructor-arg>
  17. $Proxy usually means AOP related stuff if you...

    $Proxy usually means AOP related stuff

    if you have a class called DatabaseServiceImpl
    and an interface called DatabaseService, and DatabaseServiceImpl implements DatabaseService,



    //this...
  18. Replies
    2
    Views
    1,128

    Bean Scopes and Business Logic

    In a web based spring application, we can set the scopes for the beans.
    Normally a session scope or a request scope. Not setting the scope means that the beans are application scoped.
    Right?

    Ok....
  19. Replies
    3
    Views
    1,998

    i think its something to do with the law of...

    i think its something to do with the law of demeter. don't ask for things you don't need. or...
    have i misunderstood the law of demeter?

    i mean
    inject a, then use a.b().c().d();
    that's wrong....
  20. Replies
    3
    Views
    1,998

    Factory and injection

    hello all
    I have a question regarding dependency injection.

    say i want to create a class
    call it, WebGetTask

    WebGetTask would need a dependency to HttpService

    bad code 1
  21. using aop namespace in spring modules cache

    currently i have


    <bean id="cachingInterceptor"
    class="org.springmodules.cache.interceptor.caching.MethodMapCachingInterceptor">
    <property name="cacheProviderFacade"...
  22. Replies
    4
    Views
    1,272

    i think you have to configure something like...

    i think you have to configure something like "expose proxy" or something like that.

    i looked around
    and this seems to be the same
    http://forum.springframework.org/showthread.php?t=36791
    so i...
  23. Replies
    2
    Views
    6,815

    Best practice: Creating a row mapper

    I'm using jdbctemplate and simplejdbctemplate. what is the best way to implement a row mapper.

    a.


    jdbcTemplate.query(sql, new RowMapper(){...});

    this code would create a new row mapper...
  24. Replies
    1
    Views
    3,457

    AOP expression explanation

    hello
    i'm beginning to use aop
    with spring 2.5

    Where can i find the docs about the expression in

    <aop:pointcut id="operationReturningAnAccount"
    expression="execution(org.xyz.Account+...
  25. Replies
    1
    Views
    972

    argumentHandler in SWF 2.0m2

    hello
    i'm using SWF 2.0m2 and
    org.springframework.webflow.mvc.FlowController
    as the flow controller

    while using SWF 1.0, I used,
    org.springframework.webflow.executor.mvc.FlowController
    and...
Results 1 to 25 of 140
Page 1 of 6 1 2 3 4