[jboss-user] [JBoss Cache] - Best way to acquire pojo cache references in MDBs

Lefteris Koutsoloukas do-not-reply at jboss.com
Mon Apr 12 05:56:21 EDT 2010

Lefteris Koutsoloukas [http://community.jboss.org/people/lefterisk] created the discussion

"Best way to acquire pojo cache references in MDBs"

To view the discussion, visit: http://community.jboss.org/message/536836#536836

Hello everyone,

I need to use PojoCache inside various Message Driven Beans in my application.
What is the best way to acquire the reference to the pojo cache inside the MDB?

Is it ok if inside every onMessage() i acquire a reference through a  PojoCacheFactory.createCache(configFile, toStart);
Is this creating a new instance every time or is it returning a singleton?
Is this killing performance/memory or not?

Is is possible to configure a cache instance somewhere and bind it to JNDI?

What if I deploy it with the Jboss microcontainer method, how do I get a reference to it?

Thanks in advance



Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100412/3e21cafd/attachment.html 

More information about the jboss-user mailing list