On Tue, 2010-06-08 at 19:09 +0000, Hong Yi wrote:
I followed the similar code as client.jsp in Applet but Applet has
been having problem to get initial context via JNDI although jsp can
do so successfully. Is there an example or pointers somewhere that
show how to write an Applet to access teiid vdb via JBoss AS?
A applet lives in your browser's VM, thus it does not have access to the
JNDI context like your JSP page did. The way to access from the browser
is opening up a JDBC connection to the VDB. i.e. you need to write
connection code in your applet. See this link for instructions
on how to make a connection.
Also, most of the times browser's security does not allow opening
sockets, you may need to relax the security settings for the applet. You
can search the web for that, as I am not familiar with details of it.
On a related note, could you point me to where I can find
steps/instructions on how to bind JBoss Application server to a real
URL address rather than the default http://localhost:8080?
I am not sure about your question? Are you looking for something like
if it is it beyond scope of this email. You need domain name
registration, domain name parking, domain hosting and whole lot more
configuration before you can get there. If you already have all those
then you have a static IP that points to the mydomain.com
, use that IP
and start the jboss with "-b <your-ip>" option. Then you get what you
are looking for.