facebook

Setting up JNDI with mysql & Sun App Server 8.1

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #237018 Reply

    biker_ron
    Member

    Can anyone shed some light on the proper settings for the following to use with JNDI datasources, mysql and Sun App Server 8.1 managed connection pooling? Just trying to get the tutorial working with a jndi ds. The settings I have below don’t work and generate class not found for the jndi.class. There also might be issues with my jndi.url.

    session-factory
    property name=”connection.datasource”>java:comp/env/jdbc/asterisk
    property name=”jndi.url”>jdbc:mysql://localhost/asterisk
    property name=”connection.username” root
    property name=”connection.password” secret
    property name=”dialect”
    org.hibernate.dialect.MySQLDialect
    property mapping resource=”com/genuitec/hibernate/EchoMessage.hbm.xml”

    session-factory

    #237020 Reply

    biker_ron
    Member

    Sorry I accidentally deleted the jndi.class entry while getting rid of the xml tags…

    property name=”jndi.class”>javax.sql.ConnectionPoolDataSource

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Setting up JNDI with mysql & Sun App Server 8.1

You must be logged in to post in the forum log in