embedded-glassfish
  1. embedded-glassfish
  2. EMBEDDED_GLASSFISH-133

Junit test case works only in jdbc/__default datasource

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows,

      Description

      I wrote a testcase with embedded GlassFish for testing an EJB.
      When I tried to test it using jdbc/mydb as datasource (in persistence.xml) I got the following error

      Exception while preparing the app : Invalid resource : jdbc/mydb_pm com.sun.appserv.connectors. internal.api.ConnectorRuntimeException: Invalid resource : jdbc/mydb_pm

      When I changed the datasource to jdbc/__default with the same connection pool as of jdbc/mydb it worked perfect.
      Why is it so? What is the difference between these two datasources?

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            abinmd
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 1 week
              1w
              Remaining:
              Remaining Estimate - 1 week
              1w
              Logged:
              Time Spent - Not Specified
              Not Specified