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

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
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
Voilà la ligne de code pour y accéder:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
restrictionMessage = (String) context.lookup(Restriction1 );
Merci de votre aide