Hi Tim,
It is the correct answer, it is the best answer, it is the working example, you are the best !!!
Thanks a lot, Attila.
Here is the solution for everyone in the attached the HelloApp.zip.
THE hellostub_and_testacc.sh
----------------------------
#!/bin/sh
#asadmin deploy --generatermistubs --retrieve /home/user1/clientstubdir fooapp.ear
echo "get STUB"
/java/sges-v3/glassfish/bin/asadmin get-client-stubs --appname HelloApp /java/projects/HelloApp/dist
echo "start ACC"
cd /java/projects/HelloApp/dist
/java/sges-v3/glassfish/bin/appclient -client HelloAppClient.jar -name HelloApp-app-client
echo "start STD"
cd /java/projects/HelloApp/HelloApp-std-client/dist
java -cp /java/sges-v3/glassfish/modules/gf-client.jar:/java/projects/HelloApp/HelloApp-std-client/dist/lib/HelloApp-com.jar:/java/projects/HelloApp/HelloApp-std-client/dist/HelloApp-std-client.jar enterprise.hello_stateless_client.StandaloneStatelessJavaClient
cd /java/projects
AND THE TEST
------------
root_at_aszomor:/java/projects# ./hellostub_and_testacc.sh
get STUB
Authentication failed with password from login store: /root/.asadminpass
Enter admin password for user "admin">
Command get-client-stubs executed successfully.
start ACC
2010.03.11. 9:32:01 com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
StatelessSession bean says : hello, world!
start STD
2010.03.11. 9:32:12 com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
StatelessSession bean says : hello, world!
root_at_aszomor:/java/projects#
[Message sent by forum member 'aszomor' (attila_at_szomor.hu)]
http://forums.java.net/jive/thread.jspa?messageID=391180