Bonjour

J'essaye de créer un composant JCA sur jboss afin de pouvoir relier le serveur d'application jboss AS 7.1 à un EIS via un socket.
Mon projet de départ est issu du site http://www.mastertheboss.com/jboss-f...ector-tutorial.
Le déploiement du connecteur parait normal car sur la console de mangement de JBOSS AS 7.1 j'obtiens dans l'annuaire JNDI:
java:/eis/SocketAdapter avec une classe reliée au socketadapter du type RAConnectionFactoryImpl.
at aucun souci au démarrage du serveur
Je n'ai pas touché au fichier standalone.xml
Mes deux fichiers de configuration sont les suivants:

ironjacamar.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<ironjacamar>
  <connection-definitions>
    <connection-definition 
     class-name="adapter1.RAManagedConnectionFactory"
     jndi-name="java:/eis/SocketAdapter"/>
  </connection-definitions>
</ironjacamar>
ra.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Connector_ID" version="1.6" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/connector_1_6.xsd"> 
	<description/>
	<display-name>SocketAdapter</display-name>
	<vendor-name/>
  	<eis-type/>
  	<resourceadapter-version/>                                  
  	<resourceadapter>
  	  	</resourceadapter>
</connector>
et mon applicatif client pour se connecter est le suivant:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
public class testclient {
	//@Resource(mappedName = "java:/eis/SocketAdapter")
	@Resource(name = "java:/eis/SocketAdapter")
  static RAConnectionFactory connectionFactory=null;
	static Context ctx = null;
	private static final String PKG_INTERFACES = "org.jboss.ejb.client.naming";
	//private static final String PKG_INTERFACES = "org.jboss.naming.org.jnp.interfaces";
	public static void main(String[] args) {
 
		//static Context ctx = null;
		// TODO Auto-generated method stub
		RAConnection connection=null;
 
		try{
		InitialContext initCtx = null;
		    Object obj = null;
		    try {
		    	Properties env = new Properties();
		    	env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
		    	env.put(Context.PROVIDER_URL,"remote://localhost:4447");
		    	env.put("jboss.naming.client.ejb.context", true);
		    	env.put(Context.URL_PKG_PREFIXES, PKG_INTERFACES);
		    	env.put(Context.SECURITY_PRINCIPAL, "phil2");
		    	env.put(Context.SECURITY_CREDENTIALS, "user");
		      initCtx = new InitialContext(env);
		      RAConnectionFactory ds = (RAConnectionFactory)initCtx.lookup("java:/eis/SocketAdapter");
tout se passe bien jusqu'au lookup ou le message d'erreur suivant apparaît:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
INFO: Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@50a8cb99, receiver=Remoting connection EJB receiver [connection=Remoting connection <16ade920>,channel=jboss.ejb,nodename=android_iphone_]} on channel Channel ID 980dff2b (outbound) of Remoting connection 676825b5 to localhost/127.0.0.1:4447
oct. 01, 2016 4:42:29 PM org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleMessage
WARN: Unsupported message received with header 0xffffffff
 
Error with context: javax.naming.NameNotFoundException: eis/SocketAdapter -- service jboss.naming.context.java.jboss.exported.eis.SocketAdapter
Comment peut on résoudre ce problème de nommage dans l'annuaire, le client n'est pas bon ou faut il d'autres paramètres ....??

Merci de votre réponse