Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,791

    Thanks Marten, It worked after after closing the...

    Thanks Marten, It worked after after closing the response stream.
    Earlier I was receiving the error page as response XML but now I receive my custom xml after closing the stream.
  2. Replies
    4
    Views
    1,791

    I had already tried returning null but in this...

    I had already tried returning null but in this case, the response is not received at UI layer and following exception is logged.

    ModelAndView [ModelAndView: materialized View is [null]; model is...
  3. Replies
    4
    Views
    1,791

    Exception Handling for ajax calls?

    Hi,
    Am using Spring's HandleExceptionResolver for exception handling. There are just two pages in my webapp and most of the data is fetched using Ajax calls.
    Since most of the requests are ajax...
  4. How to map controller with ExceptionResolver?

    Hi,
    My webapp mostly handles Ajax request and I have to return XML to My front-end (jsp) page in case of error but there are some cases where I would like to show an error page. Currently there is...
  5. Replies
    1
    Views
    946

    WebMVC - Role of the Controller?

    Hi,
    Am developing a web app based on Spring Web-MVC. The basic design is like this:

    1) The request goes to multiActionController.
    2) The controller extracts the request parameters and passes it...
  6. How to share spring beans in two webapps?

    Hi,
    My application consists of two webapps dependent on common services (spring beans) running in tomcat server. I have put all the shared libraries in the Tomcat/Shared/lib folder so that they are...
  7. Replies
    4
    Views
    1,114

    Anyone having an idea abt this issue? Thanks,...

    Anyone having an idea abt this issue?
    Thanks,
    kapil
  8. Replies
    4
    Views
    1,114

    Thanks for your quick reply mdeinum. If complete...

    Thanks for your quick reply mdeinum.
    If complete url is need for redirect then I won't be able to keep my jsp in Web-Inf directory.
    Is there a way to avoid redirect and also to avoid hitting the...
  9. Replies
    4
    Views
    1,114

    Problem with ViewResolver with redirect

    Hi,
    Am facing problem with viewResolver while redirecting to a jsp.
    The scenario is as follows:
    1. User logins from a login.jsp. Authentication is done in a controller and the control is forwarded...
  10. Actually earlier I was using...

    Actually earlier I was using BeanNameAutoProxyCreator and thought replacing it with ProxyFactoryBean will work.

    As you have suggested by replacing the regex from .* to com...*Service+.*(..) gave...
  11. On further debugging I found that the advice is...

    On further debugging I found that the advice is not working for my methods also


    <beans>
    <bean id="allBeanProxyCreator" class="org.springframework.aop.framework.ProxyFactoryBean">
    ...
  12. Thanks for your reply. Actually I want to...

    Thanks for your reply. Actually I want to intercept all methods of my interface so using regular expression does not make much sense.
    I found org.springframework.aop.framework.ProxyFactoryBean that...
  13. How to exclude Object class method from being intercepted?

    Hi,
    Am using MethodBeforeAdvice to validate calls to my services from Spring RMI clients. Basically, I check that the call contains a valid sessionId passed from client to Server using Acegi...
  14. Replies
    0
    Views
    606

    Setting parent of WebAppContext?

    Hi,
    My application is starting embedded tomcat to provide support for SOAP and to load a small WebMVC based webApp. The startup process includes
    1) Load application context from...
  15. Replies
    5
    Views
    1,551

    Could you please elaborate a bit on how context...

    Could you please elaborate a bit on how context is passed from one JVM to other? :confused:
    Thanks,
    Kapil
  16. Replies
    5
    Views
    1,551

    Yes, am using the remoteInvocationFactory...

    Yes, am using the remoteInvocationFactory property of RmiProxyFactoryBean and assigning it an instance of ContextPropagatingRemoteInvocation Factory.

    My question was how the context is propagated?...
  17. Replies
    5
    Views
    1,551

    How remote invocation works?

    Am using acegi's ContextPropagatingRemoteInvocationFactory to propagate context from client to server. Just out of curiosity I would like to know how this context is propagated? Basically the...
  18. Finally I figured out the problem. Its because my...

    Finally I figured out the problem. Its because my service is not a pojo, it implements Remote interface and am using RmiServiceExporter to export it as RMI service since my clients could be non...
  19. My requirement is that user has to first call...

    My requirement is that user has to first call logon api which returns a sessionId and for further calls client has to send sessionId with each request.
    To achieve this, i implemented the...
  20. How to use ContextPropagatingRemoteInvocationFactory?

    Hi,
    I would like to use acegi to pass security context between my RMI clients and server. The documentation says that ContextPropagatingRemoteInvocationFactory class can be used to pass context from...
  21. Can someone help me on this issue? Thanks,...

    Can someone help me on this issue?

    Thanks,
    Kapil
  22. Intercepting method calls for remote beans?

    Hi,
    Is it possible to intercept method calls using Spring AOP for remote beans which are binded to JNDI? When I try to intercept methods of my remote bean I receive java.rmi.StubNotFoundException:...
  23. Replies
    5
    Views
    1,090

    Thanks for your help Andreas. Adding the parent...

    Thanks for your help Andreas. Adding the parent attribute solved my problem.
    Regards.
    Kapil
  24. Replies
    5
    Views
    1,090

    My XML contains following entries

    My XML contains following entries


    <bean id="baseDaoRdbms" class="com.abc.common.dao.rdbms.BaseDaoRdbms" abstract="true" destroy-method="shutdown">
    <property name="jdbcTemplate"...
  25. Replies
    5
    Views
    1,090

    Hi Andreas, The real scenario is that my DAO...

    Hi Andreas,
    The real scenario is that my DAO implementation classes extends an abstract DAO class which contains reference to JdbcTemplate. This has been done to avoid injecting jdbcTemplate in each...
Results 1 to 25 of 43
Page 1 of 2 1 2