[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-1659) Fix the "asynch" tutorial
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Fri Dec 26 02:31:54 EST 2008
[ https://jira.jboss.org/jira/browse/EJBTHREE-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jaikiran pai resolved EJBTHREE-1659.
------------------------------------
Resolution: Done
Updated the tutorial to use the new API on the AsyncUtils, as explained in the forum thread. Works fine now.
> 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list