/jre/lib/security/java.policy
.permission java.util.PropertyPermission "com.sun.net.ssl.dhKeyExchangeFix", "write"; permission java.util.PropertyPermission "java.protocol.handler.pkgs", "write"; permission java.security.SecurityPermission "putProviderProperty.SunJSSE"; permission java.security.SecurityPermission "insertProvider.SunJSSE";
http://
host
:
admin_port
AppServer Instances->server1
C:\tibco\ems\clients\java\tibjms.jar
C:\tibco\ems\clients\java\jcert.jar
C:\tibco\ems\clients\java\jnet.jar
C:\tibco\ems\clients\java\jsse.jar
C:\tibco\ems\clients\java\tibcrypt.jar
If you have started a new console, change directory to install_dir
\bin
, and run these commands:
asadmin multimode asadmin>export AS_ADMIN_USER=admin AS_ADMIN_PASSWORD=password AS_ADMIN_HOST=localhost AS_ADMIN_PORT=4848 AS_ADMIN_INSTANCE=server1
asadmin
interface:asadmin>create-jndi-resource --jndilookupname SSLQueueConnectionFactory --resourcetype javax.jms.QueueConnectionFactory --factoryclass com.tibco.tibjms.naming.TibjmsInitialContextFactory --enabled=true --property java.naming.provider.url=tibjmsnaming\://localhost\:7243:com.tibco.tibjms.naming.se curity_protocol=ssl:com.tibco.tibjms.naming.ssl_enable_verify_host=false jms/MyQcf asadmin>create-jndi-resource --jndilookupname queue.sample --resourcetype javax.jms.Queue --factoryclass com.tibco.tibjms.naming.TibjmsInitialContextFactory --enabled=true --property java.naming.provider.url=tibjmsnaming\://localhost\:7243:com.tibco.tibjms.naming.se curity_protocol=ssl:com.tibco.tibjms.naming.ssl_enable_verify_host=false jms/MyQueue asadmin>reconfig server1
install_dir
\samples\ejb\mdb\simple\src
, then build and deploy the sample using the following commands:install_dir
\domains\domain1\server1\applications\j2ee-apps\mdb-simple_1
, and run this command:appclient -client mdb-simpleClient.jar -name SimpleMessageClient -textauthThe console should display these lines:
Sending message: This is message 1 Sending message: This is message 2 Sending message: This is message 3The server log should display these lines:
MESSAGE BEAN: Message received: This is message 1 MESSAGE BEAN: Message received: This is message 2 MESSAGE BEAN: Message received: This is message 3
TIBCO Enterprise Message Service™ Application Integration Guide Software Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |