[EJB 3.0] - Re: Multiples Jars with same EJBs
by wecucho
Interes Behavior, maeby this give us a clue.
i have only 2 jars, miami one and venezuela one, so imagine this scenario:
I have running and deployed the jboss and the jars, in the miami jar i have the string "miami2" and in the venezuela jar i have the string "venezuela2" so i decide to compile two new jars and overwrite the existing, so the jboss is going to load them again.
I make this two new jars, miami with string "miami" and venezuela with string "venezuela" and i run the test with this order:
| callZoneMethod("m3z-miami-zone-bean/remote");
| callZoneMethod("m3z-venezuela-zone-bean/remote");
|
im just about to call Obi One (you are our last hope) :P
I mean, calling first miami and then venezuela, but surpriselly i have this output on the server:
| 2008-09-03 07:41:19,884 INFO [STDOUT] venezuela2
| 2008-09-03 07:41:19,919 INFO [STDOUT] miami
|
for the first call (miami one) the bean responding is and old one, one that is suposed not to be here at this time and is venezuela...
for the second call (venezuela one) i have response from one new bean but the miami one instead of venezuela.
at this point i stop the jboss, and start it again, so he is gonna to load all again from the beginning, i run the test and get:
| 2008-09-03 07:50:40,702 INFO [STDOUT] miami
| 2008-09-03 07:50:40,728 INFO [STDOUT] miami
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173934#4173934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173934
17 years, 7 months
[JBoss Portal] - What's the relationship between jboss-app.xml and *-objects.
by nicolasduminil
Greetings,
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:
<app-name>richfacesEchoApp</app-name>
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,
nicolas
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
17 years, 7 months