[JBossCache] - Re: PojoCache on jboss-5.0.0.Beta2
by bstansberry@jboss.com
The way JBC 2.0 is integrated into AS 5 is fairly different from the AS 4.x / JBC 1.x way. It's still a work in progress; in fact it's what I'm doing right now for the 2.0.0.CR2 release that should be out this week.
Couple things you can do:
1) Deploy your cache using a JBoss Microcontainer -beans.xml file. An example of that can be seen in the AS deploy/jboss-web-cluster dir. The jboss-web-cluster-beans.xml file creates an instance of PojoCacheJmxWrapper and registers it in JMX at jboss.cache:service=TomcatClusteringCache. PojoCacheJmxWrapper exposes an MBean attribute "PojoCache"; getting that attribute will get you a ref to the underlying PojoCache.
2) Wait for CR2 and upgrade the JBoss Cache version in your AS. (Can't promise there won't be issues with this; I'll find out later this week.) From that you'll be able to use an old-style -service.xml file. Key difference will be the value of the "code" attribute in your mbean will be org.jboss.cache.pojo.jmx.PojoCacheLegacyJmxWrapper.
The docs on this stuff will probably be fairly bare bones in 2.0.0.CR2; will be better in CR3 or CR4.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047417#4047417
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047417
18 years, 11 months
[JBoss Seam] - Re: How to get a facelets parameter into a seam component
by jazir1979
Hi Tobias,
I ran into this problem previously as well, and had to work around it by solving my problem some other way.
However, I did just have an idea. With normal JSF components that you use, you can inject them into your Seam bean with this:
| @In(value="#{uiComponent['componentId']}")
| private UIComponent component;
|
I'm not sure what instance of UIComponent this would inject, or how you can access your attributes. But maybe this will work, if you give your component an ID when you use it?
Daniel.
"quilian" wrote : Hi Arthur!
|
| Thanks for you reply, however according to
|
| http://www.jsfcentral.com/articles/facelets_3.html
|
| the ui:param and the custom tag approches are equivalent.
|
| The question how to get that given parameter into my backing bean remains:
|
| e.g., i have:
| <tr:commandButton id="saveButton" text="Save" action="#{associationTable.save()}">
|
| where associationTable is a conversation scoped POJO living in .war-file/WEB-INF/classes. It must get the SelectManyCheckbox injected in order to preselect Slaves after the user has selected a Master. So associationTable is the listener for the valueChangeEvents and also keeps state of which Salves the user has selected. It must however inform the Managers that one of their entities has changed to get the database updated.
|
| If anything on this approach is not "standard like" or how you would do it, please dont hesitate to correct me. However i thought keeping the UI-component "associationTable" seperated from my Buisness logic and therefor outside the .jar would be a good idea :-)
|
| Greetings,
| Tobias Kilian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047415#4047415
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047415
18 years, 11 months