[jboss-user] [JBoss Portal] - What's the relationship between jboss-app.xml and *-objects.

nicolasduminil do-not-reply at jboss.com
Wed Sep 3 08:19:41 EDT 2008


I'm using JBoss Portal 2.6 to deploy RichFaces Portelts. I used the JBoss Portlet Bridge via the maven's specialized archetype. It generates the required config files and also a Richfaces portlet example. The jboss-app.xml file contains the following line:
and the *-object.xml file the following:

  | ...
  | <instance>
  |   <instance-name>RichFacesEchoPortletInstance</instance-name>
  |   <component-ref>richfacesEchoApp.RichFacesEchoPortlet</component-ref>
  | ...
The naming rule seems to be such that a portlet name has to be prefixed by the name defined in the jboss-app.xml file, for namespace reasons. But if I change the name in both jboss-app.xml and *-object.xml to read, let's say, myPortletApp and, respectivelly myPortletApp.RichFacesEchoPortlet, after the deployment the portlet doesn't apear and, looking in the admin page I see that the instance RichFacesEchoPortletInstance is not created. Also, looking in the portlet definition tab, I see that the name of the portlet is not anymore RichfacesEchoPortlet but local.myPortletApp.RichfacesEchoPortlet.
In short, what happens is that the only way to get things working is to keep intact the name "richfacesEchoApp" in both jboss-app.xmk and *-object.xml. Which wouldn't be a problem for me, unless my boss is asking me one of these days to change the name. Please anybody explain what happens exactly and how things are related together. By the way, the "*" in *-object.xml is supposed to correspond to what exactly ?

Many thanks in advance,


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173933#4173933

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173933

More information about the jboss-user mailing list