[JNDI/Naming/Network] - Re: ClassCastException on remote calling of an EJB3.0
by broneo
This is the part where the bean is listed. I hope it`s correct.
Global JNDI Namespace
+- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
+- jmx (class: org.jnp.interfaces.NamingContext)
| +- invoker (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor (proxy: $Proxy48 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
| +- rmi (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
+- TEMControlTest (class: org.jnp.interfaces.NamingContext)
+- ClientBean (class: org.jnp.interfaces.NamingContext)
| +- remote (proxy: $Proxy66 implements interface com.planetactive.ejb.server.ClientRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
+- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
+- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
+- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
+- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
Thank you for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068276#4068276
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068276
18Â years, 9Â months
[JBoss Seam] - rich:tree with switchType=
by fzaker
Here is the code:
| <table width="100%" cellpadding="0" cellspacing="10">
| <tr>
| <td width="20%">
| <rich:panel id="orgTreePanel">
| <rich:tree switchType="ajax" reRender="orgTreePanel" style="width:300px" value="#{rootOrganizationNode}" var="item" nodeFace="org">
| <rich:treeNode type="org">
| <h:outputText value="#{item.title}"/>
| <a4j:commandButton type="submit" value=">" reRender="formPanel" action="#{orgmanager.renderOrgForm(item.id)}"/>
| </rich:treeNode>
| </rich:tree>
|
| </rich:panel>
| </td>
| <td align="right">
| <a4j:outputPanel id="formPanel" ajaxRendered="true">
| <a4j:include viewId="#{orgmanager.form}"/>
| </a4j:outputPanel>
| </td>
| </tr>
| </table>
|
Buttons of each node show the form in formPanel correctly. But when expanding/collapsing nodes of tree, the content of formPanel disappears. I don't understand how an ajax call can change other parts of the page.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068275#4068275
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068275
18Â years, 9Â months
[JBoss Seam] - Need help with Timer in Seam application
by nhieb
Hey guys, i hope somebody would be able to help.
I am using timer service of EJB in a Seam application. When method marked as @TimeOut is called, i am getting
Error invoking ejbTimeout: javax.ejb.EJBTransactionRolledbackException: java.lang.NullPointerException: facesContext
I have no clue what facesContext it is looking for??? in my bean there is no any links to it. All the methods along work fine, but when @Timeout is called, the methods of ejb services fail with that exception.
The souce code
@SuppressWarnings({"unchecked"})
| @Stateless
| @Name("jobsTimerService")
| public class JobsTimerServiceImpl implements JobsTimerService {
| //in hours
| public final static int DUE_DATE_EXPIRATION_INTERVAL_IN_HOURS=2;
|
| @In(create = true)
| EmailHelper emailHelper;
|
| @Resource
| javax.ejb.TimerService timerService;
|
| @EJB
| AdditionalService additionalService
|
| @EJB
| UsersService usersService;
|
| @Logger
| private Log log;
|
| public void createTimer(long intervalDuration, String info) {
| Timer timer = timerService.createTimer(intervalDuration, intervalDuration,info);
| }
|
| @Timeout
| public void timeout(Timer timer) {
| sendNotifications();
| }
|
|
| public void sendNotifications(){
| List<User> recepients=getRecipients();
| //usually it fails in the next method!!!!!
| List objects=getObjects();
| emailHelper.send(recepients,wires);
| }
|
| }
|
| public List getObjects(){
| //using additionalService, getting the list of objects
| }
|
| public List<User> getRecipients() {
| //using usersService.. getting the list of users
| }
|
| }
I have killed a lot time trying to find out what is wrong. If i invoke sendNotifications from UI of application, it works perfectly fine!!
Thanks for attention
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068273#4068273
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068273
18Â years, 9Â months
[JBoss Seam] - Re: begin-conversation in Seam2 prevents data load
by damianharvey
I've tried to debug it, but haven't been able to find a solution.
#1 : Successful Call
On a page that successfully loads without <begin-conversation join="true"/> specified in the page.xml, the following methods get hit in this order:
- setId()
- setInstance()
- setDirty()
- find()
- getInstance()
- initInstance()
- find()
- setInstance()
#2 : Unsuccessful Call
On a page that does not load successfully (ie with begin-conversation) the following methods get hit in this order:
- setId()
- setInstance()
- setDirty()
- find()
- getInstance()
The first setInstance() will not do anything as the object hasn't been loaded from the database yet. The initInstance() is the critical piece missing from the unsuccessful call. This is called from getInstance() if instance is null. The big difference between the two is that instance is not null at setId() in #2.
I thought that this is because instance is a property of an object (Home) that is conversationally scoped and I have opted to join this conversation. However I tried setting instance to null in my overriden find(). Instance was repopulated somewhere else between the find() and the getInstance().
I can't see a way around this at present, so would very much appreciate any help.
Thanks,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068271#4068271
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068271
18Â years, 9Â months