[JBossCache] - PojoCacheListener: modify
by supi
Hey everybody,
I'm experimenting with Habanero b2, and with POJO listener notification in particular. I have a couple of questions:
- I am getting "attach" and "detach" notifications, but no "modify" calls. Do I have to configure something to make this work?
- Will there be an API to query the cache for a Pojo's Fqns or Ids? I understand that this can be an expensive operation but I think it should be available on demand if not provided with the notification.
- What is getPojoID() supposed to return? If it is what I think it is, shouldn't it return the complete list of cycle-free paths instead of a single string? Or is ID something else?
- If I have to do implement it myself, what would be the best way to do it? Walking up the tree from PojoInstance to its references minus the last fqn entry and so on seems to be very inefficient since the nodes aren't physically linked.
Thanks,
Basil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035530#4035530
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035530
19 years
[JBoss Seam] - Where do the seam jars go in jboss?
by jcranwellward
I'm building a webb app with Jboss 4.0.4 and the lastest build of Seam. I want my web app to be deployable on any jboss AS without seam being previously installed. Therefore I bundle the jars I need during my ant build and put the seam jars in WEB-INF/lib of my .war. I'm using facelets for the views so I have included the following jars:
jboss-seam-ui.jar
jboss-seam-debug.jar
jsf-facelets.jar
el-api.jar
el-ri.jar"
and "jboss-seam.jar" in the root of my .ear along with any other jars i have used for my .ejb3 package.
However jboss is having trouble finding a component i have listed in my faces-config.xml which is located in the WEB-INF directory:
15:18:27,073 INFO [FacesConfigurator] Reading config
/WEB-INF/faces-config.xml
15:18:27,182 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
15:18:27,188 ERROR [ClassUtils] Class com.sun.facelets.FaceletViewHandler not found
java.lang.ClassNotFoundException: No ClassLoaders found for: com.sun.facelets.FaceletViewHandler
(exception stack)
I also have the "jboss-seam.jar" and "jboss-seam-ui.jar"in the /default/lib directory of the server.
Is the correct place to put the seam jars needed to use EJB3 and facelets?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035527#4035527
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035527
19 years
[Persistence, JBoss/CMP, Hibernate, Database] - How to find a container managed entity manager through JNDI?
by pxpwxj
I deployed a EAR under jboss4.0.5.GA.I have a ejb3.0 jar named a.jar which consists of three entity bean,and a web app named b.war in this ear.
I want use those entity bean in those servlets of b.war.In this case ,i do not want to use session bean.I hope can use entity bean in those servlets directory,not through session bean.Because i think those EntityBean and servlets are in the same jvm,even the same ear!To use session bean to bridge these ENTITYBEAN and servets ,is not gracefuly,and not efficiently,they are in the same ear!!
To achieve that ,I try to get a container managed entity manager in these servlets,I have tried two way use annotation,they are below:
1.@persistcontext(unit......)
EntityManager em;
this do not work,every time the variable em is null;
2.@resource(mappedname.....
in both case,i use the name of the persistent unit which defined in the persistent.xml of a.jar.
I searched many topics on google,never find a post which tell me to find a jboss managed entitymanager under jboss.But many posts said affirmatively " ...can get a container managed entity manager through jndi...",so i wonder :
a.jboss now do not surpport getting a container managed entity manager through jndi,or I used the wrong jndi name?
b.in which case can i use @persistcontext(unit......) or @resource(mappedname ,those two annotation to get a container managed entity manager ?
thank you very much for your help.I really do not want to use session bean for me,and do not want to create a app managed entitymanager under my jbossAS,it is absurd.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035522#4035522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035522
19 years
[JBoss Portal] - Unable to access Identity Module MBeans directly in 2.6 Beta
by czhao07
I am working on upgrading our portal application from 2.4 to 2.6 Beta1, one issue I have is the following code no longer works:
|
| ...
| @Depends("portal:service=Module,type=User")
| private RoleModule roleModule;
| ...
|
|
When I deploy the application, it complaints that portal:service=Module,type=User is not yet installed, although I could find the MBean in the JMX Console.
Then I read the reference documentation, and it recommends accessing Identity Modules using JNDI or IdentitIdentityServiceController. As I want to avoid JNDI lookup code in my application, I chose to use IdentityServiceController:
|
| ...
| @Depends("portal:service=Module,type=IdentityServiceController")
| private IdentityServiceController identityServiceController;
| ...
|
| UserModule userModule = (UserModule)identityServiceController.getIdentityContext().getObject(IdentityContext.TYPE_USER_MODULE);
| ...
|
|
Although it works fine now, but I do think it is kinda ugly. Is there any better to do this in JBoss Portal 2.6 Beta1.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035521#4035521
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035521
19 years