[JBossCache] - Re: POJO Mutations
by llowrey0
Consider two scenarios.
First:
(i) Class A has member 'int state' where 'state' is set using a set of 'final static int' constants.
(ii) Now, A gets altered so that 'state' is now an instance of an enum 'STATE {...}'.
A node with class version (i) adds an instance of A into the PojoCache. What happens when a node with version (ii) tries to retrieve that same instance of A? Or, similarly, what happens when the CacheLoader tries to read a version (i) object when it has only the version (ii) class in its ClassLoader?
Second:
(i) Class B extends A
Say we need to change the structure so that we introduce a new class, C, so that...
(ii) Class B extends C extends A
If I have a serialized instance of (i) and try to deserialize with an instance of (ii) I'm going to have some heartburn. Granted, PojoCache is not (de)serializing, but I don't understand the logic well enough to understand how it will treat this case.
Basically, as classes evolve over time, how does PojoCache handle the adding, deleting, and retyping of member fields?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960761#3960761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960761
19 years, 9 months
[JBoss Portal] - Dynamic creating portals
by jkoek
Hello guys,
In my task to create user specific portals, I have another question.
At this moment I'm able to; change a page, create a page dynamic using a portlet or a servlet.
But
Let's say I have template that contains a portal root and pages.
The portal root is defined by a macro, so I can replace it.
When a new user logs on, I want to kick in the template in case the user is new. Based on the entered criteria I can determine what kind of portal the user should get.
The template contains a regular defined portal (such as *-object.xml) Within the template all user constrains (read roles) are defined.
So I need to read in the xml file, parse the template and then call the J2EE deployment/portal XML translator to generate the portal for me.
What is the best approach to hook in and reuse some existing functionality of the JBoss portal?
When the template principle is supported the login can be used to create user (pre)defined portals.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960759#3960759
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960759
19 years, 9 months