[JBoss Seam] - Richfaces Tree
by mokua_ombati
Hi everyone
I have tried using rich-faces tree, but quite frankly
am not able to display a tree.
Note that other rich-faces components are being displayed correctly.
I followed this
http://www.jboss.com/index.html?op=loginscreen&module=user
and this http://www.jboss.com/index.html?op=loginscreen&module=user
but still got no-where!
Is there anyone using rich-faces tree?I will greatly appreciate any help.
Environment:
seam 1.2.1 GA
jboss-4.0.5 GA
richfaces-3.0.1-SNAPSHOT.jar
Here is the Node :
| package com.triad.treeNodes;
|
| import java.util.Iterator;
| import java.util.LinkedHashMap;
| import java.util.Map;
|
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Scope;
| import org.richfaces.component.TreeNode;
|
| @Name("tree")
| @Scope(ScopeType.PAGE)
| public class RichTreeNode implements TreeNode {
|
| /**
| *
| */
| private static final long serialVersionUID = 1L;
|
| // private TreeNode treeNode;
| private String name;
|
| private String type;
|
| private Map<Object, TreeNode> childrenMap = new LinkedHashMap<Object, TreeNode>();
|
| public Object getData() {
| // return treeNode;
| return this;
| }
|
| public void setData(Object arg0) {
|
| }
|
| public boolean isLeaf() {
| return childrenMap.size() == 0;
| }
|
| public Iterator getChildren() {
| return childrenMap.entrySet().iterator();
| }
|
| public TreeNode getChild(Object identifier) {
| return childrenMap.get(identifier);
| }
|
| public void addChild(Object identifier, TreeNode treeNode) {
| childrenMap.put(identifier, treeNode);
|
| }
|
| public void removeChild(Object arg0) {
| // TODO Auto-generated method stub
|
| }
|
| public TreeNode getParent() {
|
| return null;
|
| }
|
| public RichTreeNode() {
|
| this.name = "parent-node";
| this.type = "root";
|
| }
|
| public void setParent(TreeNode arg0) {
| // TODO Auto-generated method stub
|
|
| }
|
| public String getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| public String getType() {
| return type;
| }
|
| public void setType(String type) {
| this.type = type;
| }
|
| }
|
Manager bean:
| package com.triad.sessionBeans.tree;
|
| import java.io.Serializable;
| import java.util.Iterator;
|
| import javax.faces.component.UIComponent;
| import javax.faces.component.html.HtmlOutputText;
| import javax.faces.component.html.HtmlPanelGrid;
| import javax.faces.component.html.HtmlPanelGroup;
|
| import javax.faces.context.FacesContext;
|
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Create;
| import org.jboss.seam.annotations.Logger;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Scope;
| import org.jboss.seam.log.Log;
| import org.richfaces.component.html.HtmlPanel;
| import org.richfaces.component.html.HtmlTree;
| import org.richfaces.component.html.HtmlTreeNode;
|
| import com.triad.treeNodes.RichTreeNode;
|
|
|
| @Name("menu")
| @Scope(ScopeType.SESSION)
| public class MenuBean implements Serializable{
|
| /**
| *
| */
| private static final long serialVersionUID = 1L;
| @Logger
| private Log log;
|
| private RichTreeNode richTree;
|
| @Create
| public void init(){
| log.info("********* init **********************");
| richTree=new RichTreeNode();
| richTree.setName("Ka-Name");
| richTree.setType("root");
|
| log.info("has created the tree==>"+richTree);
| RichTreeNode node1=new RichTreeNode();
| node1.setName("Node 1");
| node1.setType("leaf");
|
| richTree.addChild("node1",node1);
| log.info("the tree with children *********");
| Iterator it=richTree.getChildren();
| while(it.hasNext()){
| log.info("***** the node ==>"+it.next());
| }
| }
|
| public RichTreeNode getRichTree() {
|
|
| return richTree;
| }
|
|
| public void setRichTree(RichTreeNode richTree) {
| this.richTree = richTree;
| }
|
|
| public MenuBean() {
| }
|
|
|
|
| }
|
Now display:
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| xmlns:a="https://ajax4jsf.dev.java.net/ajax"
| template="layout/template.xhtml">
|
| <ui:define name="body">
|
| <h:messages globalOnly="true" styleClass="message" />
|
| <rich:panel>
| <h:form >
| <h:outputText value="Node - Test"/>
|
| <a:outputPanel ajaxRendered="true">
| <rich:tree id="directoryTree" switchType="ajax"
| value="#{menu.richTree}" var="d"
| style="margin: 10px;width:300px"
|
| >
| <rich:treeNode>
| <h:outputText value="Node - ** #{d.name}"/>
| </rich:treeNode>
| </rich:tree>
| </a:outputPanel>
| </h:form>
| </rich:panel>
|
|
|
| </ui:define>
| </ui:composition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075191#4075191
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075191
18Â years, 10Â months
[JBoss Seam] - Quartz question
by mladen.babic
Hi,
I have action which send e-mail to user. I've tried to add Quartz action to do same action with interval. Quartz action works fine but when I added method which sending mail in this action it trows me this error
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
| 14:32:34,791 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
| 14:32:34,792 ERROR [STDERR] at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:58)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$Context.wrap(FaceletsRenderer.java:58)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:109)
| 14:32:41,125 ERROR [STDERR] at com.elbsolutions.eorder.bean.MessageAction.sendOrderEmailToBuyer(MessageAction.java:58)
| 14:32:41,125 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor1174.invoke(Unknown Source)
| 14:32:41,125 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:32:41,125 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:43)
| 14:32:41,125 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| 14:32:41,126 ERROR [STDERR] at com.elbsolutions.eorder.bean.MessageAction_$$_javassist_264.sendOrderEmailToBuyer(MessageAction_$$_javassist_264.java)
| 14:32:41,126 ERROR [STDERR] at com.elbsolutions.eorder.bean.QuartzTriggerAction.schedule(QuartzTriggerAction.java:45)
| 14:32:41,126 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor1158.invoke(Unknown Source)
| 14:32:41,126 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:32:41,126 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
| 14:32:41,126 ERROR [STDERR] at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:42)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| 14:32:41,127 ERROR [STDERR] at com.elbsolutions.eorder.bean.QuartzTriggerAction_$$_javassist_262.schedule(QuartzTriggerAction_$$_javassist_262.java)
| 14:32:41,127 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor1157.invoke(Unknown Source)
| 14:32:41,127 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:32:41,127 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
| 14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:242)
| 14:32:41,127 ERROR [STDERR] at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
| 14:32:41,127 ERROR [STDERR] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
| 14:32:41,127 ERROR [MessageAction] ERROR while sending e-mail
| java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
| at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
| at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:58)
| at org.jboss.seam.ui.facelet.FaceletsRenderer$Context.wrap(FaceletsRenderer.java:58)
| at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:109)
| at com.elbsolutions.eorder.bean.MessageAction.sendOrderEmailToBuyer(MessageAction.java:58)
| at sun.reflect.GeneratedMethodAccessor1174.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:43)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| at com.elbsolutions.eorder.bean.MessageAction_$$_javassist_264.sendOrderEmailToBuyer(MessageAction_$$_javassist_264.java)
| at com.elbsolutions.eorder.bean.QuartzTriggerAction.schedule(QuartzTriggerAction.java:45)
| at sun.reflect.GeneratedMethodAccessor1158.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
| at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
| at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| at com.elbsolutions.eorder.bean.QuartzTriggerAction_$$_javassist_262.schedule(QuartzTriggerAction_$$_javassist_262.java)
| at sun.reflect.GeneratedMethodAccessor1157.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
| at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
| at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
| at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
| at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:242)
| at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
| at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
|
tnx,
mb
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075184#4075184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075184
18Â years, 10Â months
[JBoss Messaging] - Re: ERROR: Cannot find delivery to cancel
by noxis
"timfox" wrote : I just copied what you posted.
|
| If you can package up a test program and exact step by step instructions I will try again
I think I forgot about one important thing - TTL of messages.
Here is a working example. I can replicate this bug all the time. "Cannot find delivery to cancel" appears after about 2 minutes.
Queue configuration:
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=testCancel" xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| <attribute name="RedeliveryDelay">5000</attribute>
| </mbean>
| </server>
|
TestMDB.java
| package main.ejb;
|
| import javax.annotation.Resource;
| import javax.ejb.MessageDriven;
| import javax.ejb.ActivationConfigProperty;
| import javax.ejb.MessageDrivenContext;
| import javax.jms.Message;
| import javax.jms.MessageListener;
| import javax.jms.TextMessage;
|
| @MessageDriven(activationConfig = {
| @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination", propertyValue="queue/testCancel"),
| @ActivationConfigProperty(propertyName="maxSession", propertyValue="1")
| })
|
| public class TestMDB implements MessageListener {
|
| @Resource
| private MessageDrivenContext mdc;
|
| public void onMessage(Message msg) {
| try {
| TextMessage textMsg = (TextMessage) msg;
| System.out.println("got: " + textMsg.getText());
| Thread.sleep(40000);
| mdc.setRollbackOnly();
| } catch (Throwable te) {
| te.printStackTrace();
| mdc.setRollbackOnly();
| }
| }
| }
|
Test.java (interface)
| package main.ejb;
|
| import javax.ejb.Remote;
|
| @Remote
| public interface Test {
|
| void testCancel();
| }
|
TestBean.java
| package main.ejb;
|
| import javax.annotation.Resource;
| import javax.ejb.Stateless;
| import javax.jms.Connection;
| import javax.jms.ConnectionFactory;
| import javax.jms.JMSException;
| import javax.jms.MessageProducer;
| import javax.jms.Queue;
| import javax.jms.Session;
| import javax.jms.TextMessage;
|
| @Stateless
| public class TestBean implements Test {
|
| @Resource(mappedName = "ConnectionFactory")
| private ConnectionFactory factory;
|
| @Resource(mappedName = "queue/testCancel")
| private Queue queue;
|
| public void testCancel() {
| Connection connection = null;
| Session session = null;
| MessageProducer producer = null;
| try {
| connection = factory.createConnection();
| session = connection.createSession(true, 0);
| producer = session.createProducer(queue);
|
| TextMessage msg = session.createTextMessage();
| msg.setText("just another test");
|
| producer.setTimeToLive(90000);
|
| producer.send(msg);
| session.commit();
|
| } catch (Throwable te) {
| te.printStackTrace();
| } finally {
| try {
| if (producer != null) {
| producer.close();
| }
| if (session != null) {
| session.close();
| }
| if (connection != null) {
| connection.close();
| }
| } catch (JMSException e) {
| e.printStackTrace();
| }
| }
| }
| }
|
TestIt.java (Client)
| package test;
|
| import javax.naming.InitialContext;
|
| import main.ejb.Test;
|
| public class TestIt {
|
| public static void main(final String[] args) throws Exception {
| Test t = (Test) (new InitialContext()).lookup("TestBean/remote");
| while (true) {
| t.testCancel();
| Thread.sleep(20000);
| }
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075177#4075177
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075177
18Â years, 10Â months