voyent
Tomcat 6 ahs with remote activemq broker  XML
Forum Index -> Async HTTP Server
Author Message
michelle2

Joined: 14/Nov/2007 00:00:00
Messages: 449
Offline


copy the icefaces-ahs jar to your web-inf/lib

add the following parms to web.xml

<context-param>

<param-name>com.icesoft.faces.async.service</param-name>

<param-value>servlet</param-value>

</context-param>

<context-param>
<param-name>com.icesoft.net.messaging.properties</param-name>
<param-value>activemq.properties</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.blockingRequestHandler</param-name>
<param-value>icefaces-ahs</param-value>
</context-param>


you have two choices:

configure jndi with the activemq broker

or

create the package

com.icesoft.net.messaging.jms

create the activemq.properties file

==============================================================================
# JMS Provider Configuration for JBoss 4.0
# ==============================================================================

# Specific
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
#java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=tcp://yourexternalport:yourport?wireFormat.maxInactivityDuration=0

com.icesoft.net.messaging.jms.topicConnectionFactoryName=ConnectionFactory
com.icesoft.net.messaging.jms.topicNamePrefix=dynamicTopics/

# General
com.icesoft.net.messaging.messageMaxDelay=100
com.icesoft.net.messaging.messageMaxLength=4096
[Email]
 
Forum Index -> Async HTTP Server
Go to:   
Powered by JForum 2.1.7ice © JForum Team