These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Connexion sans nom de domaine
PostPosted: Tue Mar 21, 2006 11:07 am 
Newbie

Joined: Fri Dec 30, 2005 5:55 am
Posts: 7
Location: Grenoble
Bonjour,
Je suis en train de finaliser une application qui utilise Hibernate pour se connecter à une BDD sur un poste avec SQL Server (2000 ou 2005 Express Edition).
Jusqu'à présent je configurais mon fichier de config (hibernate.cfg.xml)
Code:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
        <property name="hibernate.connection.password">password</property>
        <property name="hibernate.connection.url">jdbc:jtds:sqlserver://127.0.0.1:1433/nombase;domain=NOMDEDOMAINE</property>
        <property name="hibernate.connection.username">login</property>
        <property name="hibernate.default_catalog">nombase</property>
        <property name="hibernate.default_schema">dbo</property>
        <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
                           <!-- Mapping files -->
        <mapping resource="systeme/sysutil/Sysutil.hbm.xml"/>
      </session-factory>
</hibernate-configuration>


Jusqu'à présent, ça marchait super.
Comme c'est un produit qui va être commercialisé. Je teste sur un peu tous les types de machines...
Un problème, quand j'installe l'application (et donc avec SQL Server) sur une machine qui n'est pas reliée à un nom de domaine, je n'arrive pas à me connecter....
Est ce une limitation de Hibernate ? de SQL Server ?
Ou alors y a t'il un moyen de se connecter malgré tout .... dans ce cas quel est le moyen ??
Je vous remercie de votre aide par avance.

_________________
Mickey


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 12:37 pm 
Newbie

Joined: Fri Dec 30, 2005 5:55 am
Posts: 7
Location: Grenoble
Pour celles et ceux qui sont intéressés, j'ai trouvé la solution.

_________________
Mickey


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.