[EJB 3.0] - Cannot get my first EJB 3.0 to work!!!
by seahsherley
Hi guys,
I have created a interface....
package examples.session.stateful;
public interface Count
{
public int count();
public void set(int val);
public void remove();
}
Then I have created a Stateful Bean to implements the above interface
@Stateful(name = "CountingBean")
@Remote(Count.class)
@Interceptors(CountCallbacks.class)
public class CountBean implements Count
{
...........
}
I have deploy eveything in the jboss and run my client
Count obj = (Count)ctx.lookup("CountingBean");
It give a ClassCastException....
When i ran the JMX-Console.... and click on the JNDIVIEW and click on the INVOKE button under the method list..... on the page display... I see the following:
.......
+- CountingBean (class: org.jnp.interfaces.NamingContext)
| +- remote (class: java.lang.Object)
| +- remoteStatefulProxyFactory (proxy: $Proxy72 implements interface org.jboss.ejb3.ProxyFactory)
........
My question is... how come the CountingBean is not of class Count?????
Thanks a million!!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968103#3968103
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968103
19 years, 8 months
[JBoss jBPM] - Pooled-actors Assignment
by liondrys
Hi people,
First, sorry for my poor english, I try to do my best to be understabled :)
I'm newer in jBPM and test the gettinStarted environment.
I created a little workflow from scract with help from the jBPM wiki page. It works fine that's great ;-)
I try now to do a more complex flow. The first test is : assigning a task to a pool of user. I saw that we wan use "Pooled-actors" xml attribut.
I did this
| <swimlane name="test">
| <assignment pooled-actors="grover,bert"></assignment>
| </swimlane>
|
It worked in one way : no errors.
But
It assigned task only to Grover.
To do implementaion, I use eclipse plugin ("design tab" in processdefinition.
I tried to search on this forum, but every people seems speaking about a real "Hardcode" (understand using API and setPooledActors method ...etc).
I'm beginner in JAVA (well, I know the basic knowledge). And I try to do my best only (in first time) with a 'graphic' tool.
So I didn't find an anwser for my problem.
So ... XML Polled-Actors Assignment (like my code) is working or it is a futur step in another realease ? :)
Thanks for all
And thanks for jBPM :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968101#3968101
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968101
19 years, 8 months