Search:

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

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    165

    how can spring mvc mapping to /*

    I'm curious how can springMVC mapping to /* :confused:

    I tried my example, one servlet which mapping to "/*" just render one jsp page "/WEB-INF/jsps/hello.jsp"



    <servlet>...
  2. [Fixed]How to get ApplicationContext loaded before servlet listener init in SpirngMVC

    Sorry, already fixed!It's related to Context hierarchy in Spring Web MVC which can be found in Springframework's reference document.



    I have one Servlet Listener which does some data init work...
  3. If you use JDBC transaction, spring will bind...

    If you use JDBC transaction, spring will bind your transaction with thread. Under spring's implementation it uses lots ThreadLocal. So if you want to manage your transaction in multi thread env it...
  4. Replies
    5
    Views
    721

    Thanks, lock is a good solution. I think your...

    Thanks, lock is a good solution.

    I think your locking approach is like this: the server receive two registration request with same username(ajax validation at client can't prevent this issue), the...
  5. Replies
    5
    Views
    721

    Usually when use ajax to validate username is...

    Usually when use ajax to validate username is unique we just query the username is already in database at the server side. But in a high concurrency situation, two users' ajax validation maybe tell...
  6. Replies
    5
    Views
    721

    Question about unique column

    Let's consider a scene like this: there is a popular web site(like twitter, facebook), at the first day it opens to public, lots people go to register account. Everyone want to get their favorite...
  7. Replies
    2
    Views
    563

    Maybe its your TransactionManager's problem, you...

    Maybe its your TransactionManager's problem, you have to use the correct transactionmanager for your data access technology.
    BTW, you can post more code about your configuration.
  8. Yes, HibernateTemplate and...

    Yes, HibernateTemplate and HibernateTransactionManager can be used together and thread-safe! You can get it from HibernateTemplate's javadoc.
  9. thank,but we can't use UUID, because the string...

    thank,but we can't use UUID, because the string we need is like "1000-1111-0001", "1000-1112-0001" which contains three parts menas different count number of different department(our entity).
  10. yes, but our application is deployed on various...

    yes, but our application is deployed on various database, oracle, mysql and even sql server, I think let database trigger the generation will make our work more difficult.

    And currently the...
  11. concurrency problem with unique property generation

    In my application, I have one entity A, it has one property such as "serialNumber" and this property should always be unique in database. Everytime when i save one A instance the application should...
  12. Replies
    6
    Views
    1,292

    After checked spring's code I got the reason....

    After checked spring's code I got the reason. Because i use DatasourceTransactionManager, it will get one connection from pool when transaction start, later when thread execute hibernate query, in...
  13. Replies
    6
    Views
    1,292

    Hi Marten Deinum, first thanks! Now I know the...

    Hi Marten Deinum, first thanks!

    Now I know the problem due to the usage of wrong transactionmanager and the key issue is that the connection resource is not returned to the pool, but what confused...
  14. Replies
    6
    Views
    1,292

    thanks! but why all threads hang on when...

    thanks!

    but why all threads hang on when concurrency is higher than C3p0's maxSize? shouldn't it be some threads can finish work?
  15. Replies
    6
    Views
    1,292

    problem with DataSourceTransactionManager

    I met a problem with DataSourceTransactionManager (already resolved, but i don't know why).

    I have a simple application use one C3p0 pooled datasource and set its maxSize to 5, and config...
  16. Thanks very much, I got it. But I think this...

    Thanks very much, I got it.
    But I think this approach confused me a little.:)When I use an XML configuration, I can understand it clearly that the fooService was returned from the ProxyFactoryBean...
  17. How to use TransactionProxyFactoryBean in JavaConfig?

    Thanks!

    I'm new to JavaConfig and have one question. In our development we use spring's transaction management because it's so powerful and convenient, thanks to the AOP! ^_^ Usually we'll define...
  18. Replies
    1
    Views
    2,550

    can private method be intercepted or advised?

    I have tried unsuccessfully to intercept private methods using CGLIB proxies. I didn't expect Dynamic proxy to work because methods were not implemented from interfaces. However, I thought CGLIB...
Results 1 to 18 of 18