Download Joram 4.2 - Users Guide - Sites personnels de TELECOM ParisTech
Transcript
Joram 5.2.1 User's Guide starting of the embedded server. The embedded server successfully starts if the a3servers.xml platform configuration file has been put in the conf/ directory of Tomcat. Server 1 of the above configuration would be launched that way: java fr.dyade.aaa.joram.soap.SoapServiceStarter localhost 8080 1 S1 5.2. Administering 5.2.1. Introduction Administering a platform providing a SOAP access is similar to administering a non SOAP platform. A user access must be created on the target server, and an appropriate ConnectionFactory object must be created so that the client will access the embedded server through the SOAP protocol. 5.2.2. Setting a user Setting a user is done as explained in the administration document: org.objectweb.joram.client.jms.admin.User user; user = org.objectweb.joram.client.jms.admin.User.create(“name”, “pass”, 1); An AdminException is thrown if the user creation fails server side or if the server is not part of the platform. A ConnectException is thrown if the admin connection with the server is closed or lost. 5.2.3. SOAP ConnectionFactory object SOAP connection factory objects org.objectweb.joram.client.jms.soap package. are located in the The following creation methods are static methods: SoapConnectionFactory.create(String host, int port, int timer): creates a ConnectionFactory instance for accessing a server embedded in a Tomcat JVM running on a given host and listening to a given port, with a given timer value in seconds for pending SOAP connections. SoapConnectionFactory.create(int timer): creates a ConnectionFactory instance for accessing a server embedded in the Tomcat JVM the administrator is connected to, with a given timer value in seconds for pending SOAP connections. ConnectionFactory cnxFact = SoapConnectionFactory.create(“localhost”, 8080, 60); QueueSoapConnectionFactory.create(String host, int port, int timer) : creates a QueueConnectionFactory instance for accessing a server embedded in a Tomcat JVM running on a given host and listening to a given port, with a given timer value in seconds for pending SOAP connections. QueueSoapConnectionFactory.create(int timer): creates a QueueConnectionFactory instance for accessing a server embedded in the Tomcat JVM the administrator is connected to, with a given timer value in seconds for pending SOAP connections. - 77 -