Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,494

    You can try define your c3p0 pool as Spring bean...

    You can try define your c3p0 pool as Spring bean and set the password as encrypted value using the "${/decrypt/blah}" format, then in the same xml context file, you can define your own custom...
  2. Does support jython in xml?

    Hi there,

    I see the Spring ref doc mentioned supporting <lang:groovy>, <lang:jruby/>, <lang:bsh/>. Is there way to configure to work with any language that support the Scripting API? Example how...
  3. How to access the applicationContext object inside a inline-script?

    Hi there,

    I tried this, and it didn't print any variables.


    <lang:groovy id="testBean">
    <lang:inline-script>
    binding.variables.each {k,v -> println "$k = $v"}
    ...
  4. I wrote a simple one, and you can try it here:...

    I wrote a simple one, and you can try it here: http://code.google.com/p/spring-runner
  5. Replies
    10
    Views
    27,912

    Take a look at...

    Take a look at http://code.google.com/p/spring-runner
  6. Rjaslicco, I know I can get HttpSession from...

    Rjaslicco,

    I know I can get HttpSession from HttpServletRequest, but that's not what my question is about.

    I stated that in spring when I declare a bean such as this:


    <bean...
  7. rjsalicco, I have read that part in the doc,...

    rjsalicco,

    I have read that part in the doc, and it didn't say how to get a hold of the HttpSession. It simply says how to inject the userPreference to other services.

    What I want is inside...
  8. How to inject HttpSession for session scoped bean?

    Hi,

    When creating a bean such as this:


    <bean id="userPreferences" class="com.foo.UserPreferences" scope="session"/>


    How do we inject the HttpSession object that trigger the bean creation?
  9. How to change default mapping pattern from DefaultAnnotationHandlerMapping?

    Hi,

    For each controller I used with @Controller and @RequestMapping, I get auto urls mapped handlers like the following:



    INFO DefaultAnnotationHandlerMapping| Mapped URL path [/index] onto...
  10. Hi Marten, Thanks for the reply. I tried...

    Hi Marten,

    Thanks for the reply. I tried searching, but did not see much of the discussions on the particular point I want to ask. So I would venture little further if you don't mind. (I will be...
  11. Spring doesn't honor private constructor?

    Hi,

    In spring-2.5.1, I am able to create a bean in xml even if my class is declared private constructor! Is this normal? Shouldn't spring honor my privacy?

    Thanks,
    -Zemian
  12. A built-in Main bootstraper in Spring core?

    Many times we just need a Main class that bootstrap the spring context, and let it run. Though loading Spring context with xml is very simple, just one class away (eg:...
  13. Replies
    0
    Views
    535

    Flag to prevent Quartz auto shutdown?

    Hello,

    In spring it comes with org.springframework.scheduling.quartz.SchedulerFactoryBean class that we can use to configure a Quartz instance. It comes with a property flag for autoStartup, but...
Results 1 to 13 of 13