Results 1 to 2 of 2

Thread: Beginner question - Spring with JBOSS.

  1. #1

    Default Beginner question - Spring with JBOSS.

    I just started reading on SPRING as I will be starting a new job in 1 week which requires learning Spring/JBOSS/Hibernate and I am new to all of these. I have worked on Java,EJB, weblogic before..

    Currently I have JBOSS and SPRING installed on my machine. I have installed SPRING deployer for JBOSS so that JBOSS recognizes spring files just like it does recognizes war,ear,jar etc.

    In the DEPLOY directory of JBOSS I have the following files.

    DEPLOY
    |
    |---HelloWorld.spring
    |
    |--com\test\HelloWorld.class
    |--META-INF\jboss-spring.xml

    What should I do now extra to call a method inside HelloWorld.class ( lets say getText() which returns "hello world" to be displayed inside a browser ?

    Thanks

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    I haven't used Spring much on Jboss but you should try to use Spring as in any application server - relying on standard hooks (such as web listeners for example) to bootstrap spring.
    See the reference documentation and the samples provided with Spring distribution - they contain most of the answers you seek.
    Last edited by Costin Leau; Oct 5th, 2006 at 02:33 AM. Reason: satisfy the critics
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •