Utilisation de JNDI

Fermé
titi0006 Messages postés 157 Date d'inscription lundi 24 juin 2013 Statut Membre Dernière intervention 15 mars 2017 - 18 févr. 2016 à 21:14
Bonjour,

J'ai créer un fichier properties pour JNDI et on me dit qu'il ne trouve pas le nom que je passe en paramètre


java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory

# use the following property to configure the default connector
java.naming.provider.url = tcp://localhost:61616

# use the following property to specify the JNDI name the connection factory
# should appear as.
connectionFactoryNames = connectionFactory


String.Restriction1 = R1
String.Restriction2 = R2


restrictionMessage = (String) context.lookup(Restriction1 );

Merci de votre aide