[JBoss Cache: Core Edition] - Re: Passivation false problem
by rachna_agg
Thanks again for the reply.
My understanding about activation was wrong but now I am able to understand why the attribute "Activations" was not visible if passivation is false.
But I am still not clear about the "Hits" and "Misses" attributes. Let me explain my situation with the following steps and their corresponding attribute values:
1) Insert /A
| 2) Retrieve /A
| 3) Retrieve /A
|
|
| Output
|
| 1) CL Loads = 0, Hits = 0, Misses = 0, CL Misses = 0, Evictions = 0
| 2) CL Loads = 1, Hits = 0, Misses = 1, CL Misses = 0, Evictions = 0
| 3) CL Loads = 1, Hits = 0, Misses = 2, CL Misses = 0, Evictions = 0
|
| Here, I think that when I retrieve the same record in Step 3, then instead of the attribute "Misses" being increased, I think the attribute "Hits" should have been increased which is not happening in my case. I also enabled the DEBUG logging for jboss cache and I got the following output after Step 2:
|
| Jun 27, 2008 01:59:27.500 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=true, cache=, modificationType=null, data=null, fqn=/4528@rachna, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_CREATED}
| | Jun 27, 2008 01:59:27.500 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=false, cache=/4528@rachna 0 , modificationType=null, data=null, fqn=/4528@rachna, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_CREATED}
| | Jun 27, 2008 01:59:27.500 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=true, cache=/4528@rachna 0 , modificationType=null, data=null, fqn=/4528@rachna/42, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_CREATED}
| | Jun 27, 2008 01:59:27.500 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=false, cache=/4528@rachna 0 /42 0 , modificationType=null, data=null, fqn=/4528@rachna/42, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_CREATED}
| | Jun 27, 2008 01:59:27.500 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=true, cache=/4528@rachna 0 /42 0 , modificationType=null, data=null, fqn=/4528@rachna/42/1214554449967, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_CREATED}
| | Jun 27, 2008 01:59:27.500 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=false, cache=/4528@rachna 0 /42 0 /1214554449967 0 , modificationType=null, data=null, fqn=/4528@rachna/42/1214554449967, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_CREATED}
| | Jun 27, 2008 01:59:27.500 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=true, cache=/4528@rachna 0 /42 0 /1214554449967 0 , modificationType=null, data=null, fqn=/4528@rachna/42/1214554449967/10156252448681560289, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_CREATED}
| | Jun 27, 2008 01:59:27.500 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=false, cache=/4528@rachna 0 /42 0 /1214554449967 0 /10156252448681560289 0 , modificationType=null, data=null, fqn=/4528@rachna/42/1214554449967/10156252448681560289, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_CREATED}
| | Jun 27, 2008 01:59:27.532 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=true, cache=/4528@rachna 0 /42 0 /1214554449967 0 /10156252448681560289 0 , modificationType=null, data={}, fqn=/4528@rachna/42/1214554449967/10156252448681560289, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_LOADED}
| | Jun 27, 2008 01:59:27.532 PM DEBUG JBOSSCACHEEVENT_LOGGER - EventImpl{pre=false, cache=/4528@rachna 0 /42 0 /1214554449967 0 /10156252448681560289 4 , modificationType=null, data={somedata}, fqn=/4528@rachna/42/1214554449967/10156252448681560289, transaction=null, originLocal=true, targetFqn=null, successful=false, newView=null, type=NODE_LOADED}
| |
|
| and after executing Step 3, no logging appeared in jboss cache logs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161082#4161082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161082
17 years, 9 months
[JBoss/Spring Integration] - Re: Spring Component Auto Detection
by alesj
"alesj" wrote : OK, this is not really the topic of this forum (see sticky), but since it's an interesting topic, and I (re)wrote most of VFS, I'll help you. :-)
|
| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
| at org.jboss.spring.factory.NamedXmlApplicationContext.(NamedXmlApplicationContext.java:61)
| at org.jboss.spring.factory.NamedXmlApplicationContext.(NamedXmlApplicationContext.java:50)
| at org.jboss.spring.deployers.ApplicationContextDeployer$1.doCreate(ApplicationContextDeployer.java:41)
| at org.jboss.spring.deployers.ApplicationContextDeployer$1.doCreate(ApplicationContextDeployer.java:44)
| at org.jboss.spring.deployers.AbstractSpringMetaDataDeployer$SpringDeploymentVisitor.deploy(AbstractSpringMetaDataDeployer.java:72)
| at org.jboss.spring.deployers.AbstractSpringMetaDataDeployer$SpringDeploymentVisitor.deploy(AbstractSpringMetaDataDeployer.java:58)
You should mention this.
Now I feel like an ass. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161077#4161077
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161077
17 years, 9 months
[Beginners Corner] - EJB-Injection from JSF in JBoss 4.2.2
by NSchweig
Hello,
I useJBoss AS 4.2.2 GA.
I have got a simple EJB3-project that works. A Testclient simply does an output at the console.
I get the SessionBeans via the InitialContext:
Testclient.java
| public static void main(String[] args) {
| Context context;
| try
| {
| context = new InitialContext();
| //Zugriff auf die Session Beans
| ShopWebSite shopWebSiteBean= (ShopWebSite) context.lookup(ShopWebSiteBean.RemoteJNDIName);
|
| ...
|
Now I have a JSF-application, which should get access to the same sessionbeans from the project above.
I read that @EJB() is not available in this JBossversion so I thought that the ejb injection should work in the same way as in the project above. So I have following code in the JSF-managed-bean "ShopBean" in the constructor:
| private ShopBean (){
|
| context = new InitialContext();
| try
| {
| ShopWebSite site = (ShopWebSite)context.lookup(ShopWebSiteBean.RemoteJNDIName);
| }
| catch (NamingException e)
| {
| throw new RuntimeException(e);
| }
| }
|
But in eclipse there is shown ...type cannot be resolved.
I have got separate projects in eclipse. One dynamic web project for JSF and an EJB-project. Should I connect them and when yes how to connect them?
Do there exist any best practises for getting access to the Session Beans? I do not think that it is the best solution to put it into the construktor from the JSF-managedbeans?
Thank you for your answers.
NSchweig
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161072#4161072
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161072
17 years, 9 months