[JNDI/Naming/Network] - Module name included in Global JNDI name of SB???
by mtedone1
Hi, I built an ear application which internally contains an EJB3 module. The ear file is named:
jemos-ejb3-ear-1.0.0
I also defined a SLSB with just the @Stateless annotation (but the same happens also if I specify the name or mappedName. When I look at the Global JNDI name, I can see the following:
| +- jemos-ejb3-ear-1.0.0 (class: org.jnp.interfaces.NamingContext)
| | +- EmployeeSB (class: org.jnp.interfaces.NamingContext)
| | | +- remote (proxy: $Proxy77 implements interface uk.co.jemos.ejb3.sessions.EmployeeService,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
|
|
| So the only way I can get a reference to the SLSB from an external client, once obtained the InitialContext, is to perform a lookup like:
|
| EmployeeService service =
| (EmployeeService) context.lookup("jemos-ejb3-ear-1.0.0/EmployeeSB/remote");
|
| Now this in my opinion looks ugly. I'd like to have only EmployeeSB/remote instead of specifying the ear name (also because the version number changes!!)
|
| What's the way of doing this?
|
| Regards,
|
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055025#4055025
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055025
18Â years, 10Â months
[JBoss Seam] - DataModel refresh
by miloslav.vlach
Hi all,
I have problem with this scenario.
I have a list action which load the entities and display it in dataTable. The backing bean looks like this:
| @Name("componentLayoutListAction")
| public class ComponentLayoutListAction {
| @In
| Session ses;
|
| @In(create=true)
| Configuration configuration;
|
| @Logger
| Log log;
|
|
| @DataModel
| List<ComponentLayout> componentLayoutList;
|
| @SuppressWarnings("unchecked")
| @Factory("componentLayoutList")
| public void init() {
|
| componentLayoutList = ses.createCriteria(ComponentLayout.class)
| .add(Restrictions.eq("lang", configuration.getLang())).list();
| log.info("loaded component list....#0", componentLayoutList);
|
| }
|
| public void reset() {
| log.info("reseting....");
| componentLayoutList = null;
| }
| }
|
>From the list I have add action (or update) which add or remove children from the entity listed in previous action.
After update is browser redirected to the list action (back), but there is problem, that the children count doesn't change. If I click on menu and invoke the list action again the good results are rendered.
the edit.page.xml
| <page view-id="/admin/actions/componentlayout/edit.xhtml">
| <navigation>
| <rule if-outcome="updated">
| <redirect view-id="/admin/actions/componentlayout/list.xhtml" />
| </rule>
| </navigation>
| </page>
|
Know somebody where could be a problem ?
Thanks Mila
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055016#4055016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055016
18Â years, 10Â months