Git Product home page Git Product logo

Comments (4)

sbordet avatar sbordet commented on May 16, 2024

Originally reported by sbordet on 2009-12-09T10:05:35Z

from cometd.

sbordet avatar sbordet commented on May 16, 2024

sbordet on 2009-12-09T10:59:17Z:
Documented 2 patterns: late initialization and lazy initialization, http://cometd.org/documentation/cometd-java/server/services/integration-spring.
The latter can be used with Struts2.

from cometd.

sbordet avatar sbordet commented on May 16, 2024

sritd on 2009-12-16T14:33:00Z:
Instead of adding the SpringBayeuxInitializer listener in the web xml for overriding the context loader, I was able to add the bayeux bean in the spring config like the following:

and was able to reference the bean using the lazy-init from one of my service classes.

This way I avoided adding the glue code and also let spring manage the service bean. If your service bean needs other resources, like dao, or other services, you might have to pass in as a constructor argument just like your pass in the bayeux bean.

Hope this helps. If you think that this may not solve my issue, please do comment.

Thanks,
Sridhar.

from cometd.

sbordet avatar sbordet commented on May 16, 2024

sbordet on 2009-12-18T09:37:01Z:
The above configuration strategy has been suggested by other sources as well on mailing lists and now here, so it has been added to the documentation as well as third pattern.

from cometd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.