-
15. Re: Application Client and ENC in AS7.1
wolfgangknauf Apr 10, 2012 3:32 PM (in response to swd847)Whow, absolutely great, with the file from https://github.com/stuartwdouglas/jboss-as/blob/ee0569ed6bd379ad76f5d3128ff2a0e36a0f1cef/build/src/main/resources/bin/appclient.bat my sample run like a charm, even the JNDI lookup for "java:comp/env/ejb/GeometricModelRemoteFromENC" worked! Seems I am the first one who started "appclient.bat" ;-).
Is there any doc about "what is 'appclient.bat/sh and how is it meant to work?"? Is the file "jboss-client.xml" required or would lookup also work without?
By the way: I saw an exception stacktrace in the console, but this might be an issue because of a two weeks old snapshot. I will download the new version and post an update tomorrow.
{noformat}
21:14:35,484 ERROR [org.jboss.as.appclient.logging] JBAS013202: Error closing connection: java.io.InterruptedIOException: Interrupted while waiting for close to complete
at org.jboss.remoting3.spi.AbstractHandleableCloseable.close(AbstractHandleableCloseable.java:180) [jboss-remoting-3.2.4.GA.jar:3.2.4.GA]
at org.jboss.as.appclient.service.LazyConnectionContextSelector.close(LazyConnectionContextSelector.java:88) [jboss-as-appclient-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.appclient.service.ApplicationClientStartService$1.run(ApplicationClientStartService.java:148) [jboss-as-appclient-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_31]
{noformat}
Best regards
Wolfgang
-
16. Re: Application Client and ENC in AS7.1
wolfgangknauf Apr 11, 2012 3:25 PM (in response to wolfgangknauf)The exception also happens with the latest snapshot. So I filed a minor priority JIRA: https://issues.jboss.org/browse/AS7-4473
When using "appclient.bat", even my AS 6 app client sample which uses EJB injection works. You did a great job on simplificating this stuff. I will update the "injection in app client" wiki article at http://community.jboss.org/wiki/HowToUseAnApplicationClientInJBoss-5 soon.
Stuart, many thanks for your most valuable help! I hope that your support for me was not just for "one dumb user", but others find it helpful, too.
Only the question "is there any doc about the appclient available?" remains ;-)
Best regards
Wolfgang
-
17. Re: Application Client and ENC in AS7.1
swd847 Apr 11, 2012 11:57 PM (in response to wolfgangknauf)Writing the appclient docs is still on my TODO list, I should get to it in the next week or two.
-
18. Re: Application Client and ENC in AS7.1
jaikiran Apr 12, 2012 1:29 AM (in response to wolfgangknauf)Wolfgang Knauf wrote:
I will update the "injection in app client" wiki article at http://community.jboss.org/wiki/HowToUseAnApplicationClientInJBoss-5 soon.
I think it would be good if you created a doc here https://docs.jboss.org/author/display/AS71/Developer+Guide and then just linked that doc in that wiki article.
-
19. Re: Application Client and ENC in AS7.1
wolfgangknauf Apr 12, 2012 4:34 PM (in response to jaikiran)Before filling https://docs.jboss.org/author/display/AS71/Developer+Guide#DeveloperGuide-MigrateremoteEJBclientstotheAS7clientAPI with crap (it is hard to write a good doc without knowledge of the internals and concepts ;-)), I post a prototype of what I think could be placed in the chapter.
See the attached file. There are many TODOs (for me) for consistent code samples, and some questions to the gurus, but it is all my JBoss 5/6 knowledge, combined with my first JBoss 7.1 experiences ;-).
The old injection wiki article had also a section about injecting a Message Queue, but it will take months until I find the time to migrate my old MDB sample to AS 7 :-(.
Best regards
Wolfgang