Provides directions on testing the Sybase CEP JMS Adapter.
c8-jms-adapters.jar
c8-sdk-java.jar
jaxrpc.jar
jms.jar
axis.jar
commons-logging-1.0.4.jar
commons-discovery-0.2.jar
saaj.jar
wsdl4j-1.5.1.jar
activation.jar
mail.jar
castor-0.9.9.jar
xercesImpl.jar
You typically need one or more .jar files provided with your JMS server. For example, if you are using the BEA WebLogic JMS server, then you will need weblogic.jar, which is supplied by BEA.
The location of the .jar file for your JMS server depends on the web server you are using. For example, weblogic.jar is found in your BEA\weblogic81\server\lib directory.
Although most of the required .jar files already reside in C:\Program Files\SybaseC8\Server\sdk\java5\lib, a few are not found there. The exceptions are
c8-jms-adapters.jar and c8-sdk-java.jar, which are found in the SybaseC8\Server\sdk\java directory.
Make sure that all the required processes are up and running:
java -Dc8.baseHostPort=localhost:6789 com/sybasec8/adapter/JMSAdapter --messageType=TextMessage --topic= weblogic.jws.jms.MyJMSTopic --factoryName= weblogic.jws.jms.TopicConnectionFactory --initialNamingFactory= weblogic.jndi.WLInitialContextFactory --url=ccl://localhost:6789/Stream/Default/TestJMS/instream1 --host=localhost --port=7001
Explanation of the adapter properties:
The environment variable c8.baseHostPort controls where to establish the connection to the server. This can be set by the -D option on the command line.
The value given for --topic (weblogic.jws.jms.MyJMSTopic)is the JNDI Name for the topic destination you want to send the c8 messages to.
The value given for --factoryName (weblogic.jws.jms.TopicConnectionFactory) is the JNDI name for the Connection Factory you created, which targets the WebLogic Server where your JMS Server is deployed.
The value given for --initialNamingFactory (weblogic.jndi.WLInitialContextFactory) is the name of the factory class to use to make the connection.
The value given for --URL (ccl://localhost:6789/Stream/Default/TestJMS/instream1) is the URL of the Sybase CEP stream you want to subscribe to. The value of the URL can be obtained from Studio, by clicking on the stream in the Explorer View and then clicking on the Properties View.
Make sure that you set the host and port to be the host and port of the JMS server, not the Sybase CEP Server. The host and port for the Sybase CEP Server are specified as part of the c8.baseHostPort.
Connecting to CPX server... Opening a subscription... Listening for messages...