Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    5,091

    Re: Speeding up spring/hibernate startup?

    I find that Hibernate takes a few seconds to initialize here. YMMV

    http://www.hibernate.org/194.html
  2. Replies
    8
    Views
    5,091

    Re: Speeding up spring/hibernate startup?

    My advice? Below is your problem. :) Performance tuning should ALWAYS be done with hard data, not guesses. Use a profiler or even use the poor man's profiler (System.currentTimeMillis()) and find...
  3. Replies
    2
    Views
    3,231

    Can't find destroy-method

    [junit] 2004-10-20 16:54:43,284 [main] ERROR factory.support.DefaultListableBeanFactory - Couldn't find a method named 'stop' on bean with name 'csaIncomingConnectionFactory'

    To verify, right...
  4. I've found what I consider a problem with...

    I've found what I consider a problem with ContextSingletonBeanFactoryLocator. The problem is that it is difficult to write POJOs which use that class without them knowing the filename (or "selector"...
  5. Found this through Google but have not tried it...

    Found this through Google but have not tried it yet:

    http://article.gmane.org/gmane.comp.java.springframework.user/2182

    Note the params set in the web.xml. These are not documented AFAIK.
  6. This is what I am talking about. How do I do...

    This is what I am talking about. How do I do what is mentioned in bold?

    Spring docs 3.16:
  7. WebApplicationContext initialization with EJB tier

    I'm using ContextSingletonBeanFactoryLoader with my EAR to have a logic context at the EAR level. I'd like my WAR context to extend that logic context but I can't see how to configure the war to use...
  8. Replies
    2
    Views
    6,971

    dummy datasource in quartz

    I'm getting a quartz error about being unable to shutdown datasource 'dummy' when Spring tries to shutdown the quartz SchedulerFactoryBean. I noticed that this only happens when I set the dataSource...
  9. Replies
    5
    Views
    5,795

    Duh, it seems obvious in retrospect. The...

    Duh, it seems obvious in retrospect. The SchedulerFactoryBean is the QuartzScheduler object. It's a FactoryBean so the getObject method returns the QuartzScheduler object. You just define a...
  10. Replies
    5
    Views
    5,795

    Re: Exposing the Quartz Scheduler

    +1

    I'm trying to do the exact same thing. I have a pre-defined Job but need to create unique Triggers and JobExecutionContexts so users in my system can run the job at a frequency of their own...
  11. Replies
    17
    Views
    19,427

    Poll: Re: sorry just one more thing

    But I don't have a single line of conditional logic. And I think that is the common case.



    Why on earth would you want to support all those configuration permutations? I have a production...
  12. Replies
    17
    Views
    19,427

    Poll: Overriding is allowed. That's the whole point -...

    Overriding is allowed. That's the whole point - your test context just overrides the few beans which need to change for your unit tests. 90% of your context stays the same and you don't have to...
  13. Replies
    17
    Views
    19,427

    Poll: Barry, why wouldn't your integration context just...

    Barry, why wouldn't your integration context just look like this? Seems like you are making it harder than it needs to be?



    <bean id="com.its.marketdata.realtimeCurrentPriceService"
    ...
  14. Replies
    17
    Views
    19,427

    Poll: Re: sorry just one more thing

    But spring already supports this in a much cleaner method (IMO) without conditionals by just specifying the context files you want to use:



    ClassPathXmlApplicationContext ctx = new...
  15. I just did exactly what you want. You want an...

    I just did exactly what you want. You want an applicationContext-services.xml in your services jar and then just specify that xml file in each webapp's web.xml:



    <context-param>
    ...
  16. Spring 1.1 has support for factory methods so you...

    Spring 1.1 has support for factory methods so you can prevent "new" access.
  17. Replies
    7
    Views
    11,549

    The problem is that the usage shown uses Java...

    The problem is that the usage shown uses Java code, not Spring context initialization. Instead I decided to use Sun's reference file system context and link to that in the appContext with a...
  18. Replies
    7
    Views
    11,549

    This does not work, I assume because ...

    This does not work, I assume because <map> returns a non-Hashtable Map whereas the SimpleNamingContext constructor expects a Hashtable.



    <bean id="csaDocumentConnectionFactoryImpl" ...
  19. Replies
    7
    Views
    11,549

    Also, why does this mock use constructor...

    Also, why does this mock use constructor injection instead of the standard setter-based DI pattern that other Spring beans use?
  20. Replies
    7
    Views
    11,549

    Do you have an example of such usage? I've...

    Do you have an example of such usage? I've looked at it once or twice today but it's not obvious to me how to use it.
  21. Thread: JNDI

    by mperham
    Replies
    5
    Views
    2,526

    ...

    <property name="environment">
    <props>
    <prop key="foo">bar</prop>
    </props>
    </property>
  22. Replies
    7
    Views
    11,549

    JNDI and Unit testing

    What is the recommended way to test JNDI accessed objects within a basic unit test framework? I have a JMS topic and connection factory that I retrieve at runtime. I'd like to be able to configure...
  23. Replies
    1
    Views
    1,836

    Context heirarchies within a webapp

    We have our application broken into three layers:

    domain (database beans)
    common (services)
    webapp (tapestry components and pages)

    each of which is a maven project. I'd like to be able to...
  24. Replies
    2
    Views
    4,560

    You might find this interesting also: ...

    You might find this interesting also:

    http://opensource.atlassian.com/confluence/spring/display/DISC/Spring-enabled+test+case
  25. Replies
    5
    Views
    3,102

    Index: SimpleMessageConverter.java...

    Index&#58; SimpleMessageConverter.java
    ===================================================================
    RCS file&#58;...
Results 1 to 25 of 27
Page 1 of 2 1 2