What exactly are you trying to do with JMS?
I'm using the following stuff with JBossAS and it works really great for me.
| @Consumer(activateConfig =
| {
| @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
| @ActivationConfigProperty(propertyName = "destination",
propertyValue = "queue/mdpojo")
| })
| @Interceptors(value = SpringPassivationInterceptor.class)
| public class AsynchManagerImpl implements AsynchManager, Serializable {
|
| @Spring(jndiName = "en-pojo", bean = "searcherCreator")
| private transient SearcherCreator searcherCreator;
|
| @Spring(jndiName = "en-pojo", bean = "fileIndexSource")
| private transient FileIndexer fileIndexer;
|
| private transient Log logger;
|
| protected Log getLog() {
| if (logger == null) {
| logger = LogFactory.getLog(getClass());
| }
| return logger;
| }
|
| public void initializeSearch() {
| synchronized (searcherCreator) {
| if (!searcherCreator.isInitialized()) {
| IndexSource[] indexSources =
searcherCreator.getIndexSources();
| Set<File> indexPaths = new TreeSet<File>();
| for(IndexSource is : indexSources) {
| try {
| is.addDocuments(indexPaths);
| } catch(Exception e) {
| getLog().error("Failed to build index source: " +
is.getClass().getName());
| }
| }
| searcherCreator.setInitialized(true);
| }
| }
| }
| }
|
If you give me your email, I can send you my current spring.deployer archive.
Rgds, Ales
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916143#3916143
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916143
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user