]
jaikiran pai updated EJBTHREE-1659:
-----------------------------------
JBoss Forum Reference:
Fix the "asynch" tutorial
-------------------------
Key: EJBTHREE-1659
URL:
https://jira.jboss.org/jira/browse/EJBTHREE-1659
Project: EJB 3.0
Issue Type: Sub-task
Components: Documentation
Affects Versions: 1.0.0-Beta11
Environment: JBoss-5.0 GA, Sun Java 1.5
Reporter: jaikiran pai
Assignee: jaikiran pai
The "asynch" tutorial does not work with EJB3 on JBoss-5.0 GA. It fails with
the following exception:
[java] Exception in thread "main" java.lang.ClassCastException: $Proxy2
[java] at
org.jboss.ejb3.asynchronous.Asynch.getAsynchronousProxy(Asynch.java:38)
[java] at org.jboss.tutorial.asynch.client.Client.main(Client.java:40)
[java] Java Result: 1
The ClassCastException arises from this line in
org.jboss.ejb3.asynchronous.Asynch.getAsynchronousProxy:
JBossProxy proxy = (JBossProxy)ejbRef;
The proxies that we create in EJB3 on JBoss-5.0, no longer implement this JBossProxy
interface and hence this exception.
P.S: EJB3 proxies on JBoss-4.x do implement this JBossProxy.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: