Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-485

Better toString method on the EJB proxy

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Minor Minor
    • trunk
    • None
    • None
    • None

      The EJB instance toString method returns "$Proxy###" instead of a class name. It would be nice to know what interface the proxy implements. So if I have a "MySessionBean" with interface "MySession", it would be nice to know when printing the object that the object implements MySession.

      This is especially relavent when using JBoss Seam. When there are annotation problems and the EJB interface, it prints out the cryptic proxy name that does not let the developer determine which been has the problem.

            rhn-engineering-cdewolf Carlo de Wolf
            andrew.rw.robinson Andrew (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2 hours
                2h