[EJB 3.0] - Re: Message Driven with other JMS Provider
by crosenbury
Through trial and error, as well as piecing together documentation, I have managed to get the Sonic rar to work. It involves:
1) The Sonic rar must be deployed.
2) The standardjboss.xml must have two entries:
Invoker Proxy
| <invoker-proxy-binding>
| <name>Some Name Here</name>
| <invoker-mbean>default</invoker-mbean>
| <proxy-factory>org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory</proxy-factory>
| <proxy-factory-config>
| <endpoint-interceptors>
| <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
| <interceptor>org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor</interceptor>
| <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
| <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
| </endpoint-interceptors>
| </proxy-factory-config>
| </invoker-proxy-binding>
|
and
<container-configuration>
| <container-name>A configuration name here</container-name>
| <call-logging>false</call-logging>
| <invoker-proxy-binding-name>Invoker Proxy Name Here</invoker-proxy-binding-name>
| <container-interceptors>
| <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
| <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
| <interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</interceptor>
| <!-- CMT -->
| <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
| <interceptor transaction="Container">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
| <interceptor transaction="Container">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
| <!-- BMT -->
| <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
| <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT</interceptor>
| <interceptor transaction="Bean">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
| <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
| </container-interceptors>
| <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
| <instance-cache></instance-cache>
| <persistence-manager></persistence-manager>
| <container-pool-conf>
| <MaximumSize>100</MaximumSize>
| </container-pool-conf>
| </container-configuration>
|
3) An entry in jboss.xml
<enterprise-beans>
| <message-driven>
| <ejb-name>SonicQueueMDB</ejb-name>
| <configuration-name>The configuration name here</configuration-name>
| <resource-adapter-name>sonic-jms-ra.rar</resource-adapter-name>
| </message-driven>
| </enterprise-beans>
|
What I cannot seem to figure out is how to specify the configuration name in the annotation. Any clues?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959123#3959123
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959123
19 years, 9 months
[EJB/JBoss] - Cache question for EJB3 entities
by MrHighTech
Hello!
First of all, sorry for the cross posting to JBossCache. I think this is the better forum for my question.
Thanks!
-- original post --
I am completely new to caching with JBossCache, so please bear with me.
I have setup my persistence.xml file to use the jboss cache and apparently it works just fine for @Cache collections. On the other hand, I have used the @Cache annotation on entities but I can't seem to get them into the cache.
I was under the impression that loading it from the manager using find would actually load the referred entity in the cache or load it from there.
Is this assumption correct ?
Also, is that the best way (manager.find(...)) to get mostly static data in the cache ?
Thanks,
Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959120#3959120
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959120
19 years, 9 months