Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8596769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:45:30+00:00 2026-06-12T00:45:30+00:00

early I used JPA to developed ORM for my application. In peristenc.xml , I

  • 0

early I used JPA to developed ORM for my application. In peristenc.xml , I defined hibernate provider and using Non-JTA-DataSource. JPA can run without hibernate provider.??? then I omit hibernate code in persistence.xml. Then I deployed, In console I’m getting following information.

 18:19:56,028 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-6) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
    18:19:56,032 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-6) HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
    18:19:56,033 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-6) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactor

But I didn’t mention any where in my apps about hibernate.

** persistence.xml ***

    <?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
    xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    <persistence-unit name="StudentManagementSystem" transaction-type="RESOURCE_LOCAL">
        <non-jta-data-source>java:jboss/datasources/studentDS</non-jta-data-source>
        <class>com.dms.entity.student.StudentDetail</class>
        <class>com.dms.entity.student.MarkDetail</class>
        <class>com.dms.entity.student.PRDSemesterDetail</class>
        <class>com.dms.entity.admin.LoginDetail</class>
    </persistence-unit>
</persistence>

* Non-JTA- data source *

<datasource jndi-name="java:jboss/datasources/studentDS" pool-name="studentDS" enabled="true" use-java-context="true">
                    <connection-url>jdbc:mysql://localhost:3306/exercise</connection-url>
                    <driver>com.mysql</driver>
                    <security>
                        <user-name>student</user-name>
                        <password>student</password>
                    </security>
                </datasource>
<driver name="com.mysql" module="com.mysql">
                        <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlDataSource</xa-datasource-class>
                    </driver>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:45:32+00:00Added an answer on June 12, 2026 at 12:45 am

    You’re running your application in JBoss, and Hibernate is the default persistence provider of JBoss. As stated in the spec, the persistence provider is optional in persistence.xml. In this case, the container (JBoss) uses its default provider.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Early I used to run : using (SQLiteConnection sqlite_connection = new SQLiteConnection(Data Source= +
In my early .Net programming days, I used string.Format() only for complex string concatenations,
I am in early beginning of learning and deploying Win App using C#, Now
I'm working on early designs for an application that needs to start out small
I've used an early binding of a dictionary<string, string> to a gridview to show
I've used the WordPress hook, init , to execute custom code early in WordPress,
Declared a map early on: map<char*,char*> rtable; // used to store routing information Now
I am in the early stages of building an app using Rails 3. User
I've set up ActiveAdmin early in my project and used the default admin_users model
I want to write my first real MultiThreaded C# Application. While I used a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.