Search:

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

Search: Search took 0.04 seconds.

  1. Wiring a Bean Which Itself has a Constructor

    I have a web service client that has an Authenticator class. The Authenticator requires a username/password. Looking for ideas on how best to wire this. Should I inject the user/pass into the...
  2. Spring Equivalent to java.net.Authenticator

    I have a method that looks like this, and is used by the client in the manner shown in the 2nd code snippet. I am using Spring beans in my app, so I am wondering if Spring has their own way of doing...
  3. Injecting Class with Constructor into A Bean

    I am tasked with using Spring to create a client for a legacy SOAP web service. The web service cannot be altered so I cannot change the constructor. As I understand it, I need to create a bean for...
  4. Replies
    4
    Views
    1,075

    You are correct. Unfortunately I am having to...

    You are correct. Unfortunately I am having to learn both Hibernate and Spring simultaneously, and am finding it a bit overwhelming to learn both at the same time. Everyone's learning style is...
  5. Replies
    4
    Views
    1,075

    Thanks for your patience. My learning style is...

    Thanks for your patience. My learning style is such that I learn better if I get something working and then play with it, rather than spiral into frustration trying to get this working. I will...
  6. Replies
    4
    Views
    1,075

    getCurrentSession() vs openSession() ?

    I am able to run my little test app using openSession, but when I use getCurrentSession, I get an error. I think I have checked all the usual suspects. I have ensured that I don't have...
  7. BTW, just pre-ordered your book on Amazon.

    BTW, just pre-ordered your book on Amazon.
  8. Sorry if this reply is duplicate. I saw the code...

    Sorry if this reply is duplicate. I saw the code you posted, but I thought you were just re-stating mine. I tried it, and it worked! Thank you so much. I am getting a small mapping error, but...
  9. But isn't the SessionFactory being instantiated...

    But isn't the SessionFactory being instantiated by Spring? Any sugggestions on how I can get myself out of this mess? I found this example on the web. Maybe it was "faulty".

    I guess another way...
  10. Hi Marten. I appreciate the benefit of your...

    Hi Marten. I appreciate the benefit of your experience and knowledge here. I am a newbie, but I want to do this right. I can get it working using the old HibernateUtil method, but I know that's...
  11. Trying to Pass Hibernate Connection Properties

    I am getting the following error while trying to pass in values from a properties file to Spring, so that I don't have to supply them directly in hibernate.cfg.xml. Is there a better (and correct)...
  12. Replies
    2
    Views
    683

    Can you give me some more details on what I...

    Can you give me some more details on what I should do here? I know how to get an app context, but what do I do with it?
  13. Replies
    4
    Views
    309

    Gracias por tu respuesta. Saludos desde...

    Gracias por tu respuesta. Saludos desde Washington DC.
  14. Replies
    4
    Views
    309

    Thanks

    Thanks for the advice. Looking forward to your book.
  15. Replies
    2
    Views
    683

    Hibernate NamedQuery

    I am trying to wire-up my first Spring/Hibernate project, and I think I got everything cross-wired. The following code is giving me "Exception in thread "main" org.hibernate.HibernateException:...
  16. Replies
    4
    Views
    309

    Confused Which Method to Use

    Is HibernateTemplate now obsolete? I have been reading that it is. Should I use SessionFactory? Extend HibernateDAO? I am a little confused about what the current thinking is.
  17. Replies
    2
    Views
    350

    Getting Hibernate Error

    I am working on my first hibernate project. I have been trying to get this to work for so long that my head is throbbing. Can someone spot the error that is giving me the "No CurrentSessionContext...
  18. Replies
    1
    Views
    224

    URL Not Recognized

    I am new to Spring trying to run a training example. I am getting nowhere. No matter what I do, I cannot get it to display the JSP that is mapped to viewAllBooks. It just throws a 404 saying "The...
  19. Replies
    2
    Views
    301

    Ah. Got it. Thanks very much.

    Ah. Got it. Thanks very much.
  20. Replies
    2
    Views
    301

    @Required Question by Newbie

    I am trying to learn Spring, and I thought I had created all the required objects. Can someone tell me why I still get the exception? The student object is created. Sorry if this is a basic...
Results 1 to 20 of 20