Attached the howto. Any comments and changes appreciated. Luciano ------------------------------------------------------ SwiftMQ developers mailing list * http://www.swiftmq.com To unsubscribe from this list, send an eMail to [EMAIL PROTECTED] and write in the body of your message: UNSUBSCRIBE developers <your-email-address> Archive: http://www.mail-archive.com/developers@mail.iit.de/Title: 1)Download and Install SwiftMQ 1
1)Download and Install SwiftMQ 1.2 and the JMS Bridge Extension Swiftlet 1.0
2) modify the launch script for SwiftMQ to include orion.jar in the classpath
3)include these lines in smqr?.properties:
swiftlet.xt$bridge.servers.names=orion1
swiftlet.xt$bridge.servers.orion1.configfile=../../conf/bridge_orion.properties
swiftlet.xt$bridge.servers.orion1.objectfactory=com.swiftmq.extension.bridge.JNDIObjectFactory
swiftlet.xt$bridge.servers.orion1.retryinterval=60000
##to create a bridge from an orion topic to a swift topic (see swift docs for queues)#######
swiftlet.xt$bridge.servers.orion1.bridgings.names=provaTopic_Remote_to_loca
swiftlet.xt$bridge.servers.orion1.bridgings.provaTopic_Remote_to_loca.direction=remote_to_local
swiftlet.xt$bridge.servers.orion1.bridgings.provaTopic_Remote_to_loca.localname=testtopic
swiftlet.xt$bridge.servers.orion1.bridgings.provaTopic_Remote_to_loca.localtype=topic
swiftlet.xt$bridge.servers.orion1.bridgings.provaTopic_Remote_to_loca.remotefactoryname=jms/TopicConnectionFactory
swiftlet.xt$bridge.servers.orion1.bridgings.provaTopic_Remote_to_loca.remotename=jms/demoOutTopic
swiftlet.xt$bridge.servers.orion1.bridgings.provaTopic_Remote_to_loca.remotetype=topic
swiftlet.xt$bridge.servers.orion1.bridgings.provaTopic_Remote_to_loca.transferpersistence=persistent
##############################################################################
##to create a bridge from a swift topic to an orion topic (see swift docs for queues)#######
swiftlet.xt$bridge.servers.orion1.bridgings.names=provaLocToRemBean
swiftlet.xt$bridge.servers.orion1.bridgings.provaLocToRemBean.direction=local_to_remote
swiftlet.xt$bridge.servers.orion1.bridgings.provaLocToRemBean.localname=testtopic
swiftlet.xt$bridge.servers.orion1.bridgings.provaLocToRemBean.localtype=topic
swiftlet.xt$bridge.servers.orion1.bridgings.provaLocToRemBean.remotefactoryname=jms/TopicConnectionFactory
swiftlet.xt$bridge.servers.orion1.bridgings.provaLocToRemBean.remotename=jms/demoTopic
swiftlet.xt$bridge.servers.orion1.bridgings.provaLocToRemBean.remotetype=topic
swiftlet.xt$bridge.servers.orion1.bridgings.provaLocToRemBean.transferpersistence=persistent
##############################################################################
swiftlet.xt$bridge.class=com.swiftmq.extension.bridge.BridgeSwiftlet
swiftlet.names=xt$bridge
4)create a bridge_orion.properties files containing these lines:
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.provider.url=ormi://localhost/
java.naming.security.principal=admin
java.naming.security.credentials=123
5)define your queues/topics in jms.xml
6)start orion and swiftmq and try any JMS sample you want from orion and swiftmq
7)if you don't need the bridge (If you simply want to send messages from a servlet/JSP) you have to follow only step 1, copy smqclient.jar in orion/lib and create the initial context this way:
Hashtable env =
new Hashtable();env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.swiftmq.jndi.InitialContextFactoryImpl");env.put(Context.PROVIDER_URL,
"smqp://localhost:4001/timeout=10000");context =
new InitialContext(env);8)Problems:
a) I don't know how to attach a message driven bean to a specific topic/queue.
b) A bug in 1.4.5 (#260 in bugzilla) prevents message driven beans to work.
------------------------------------------------------ SwiftMQ developers mailing list * http://www.swiftmq.com To unsubscribe from this list, send an eMail to [EMAIL PROTECTED] and write in the body of your message: UNSUBSCRIBE developersArchive: http://www.mail-archive.com/developers@mail.iit.de/