A few things:
1) A DataSource does not require a PortableRemoteObject.narrow(). This is
typically used for EJB resources running outside of the container (ie thin
client).
The real question you are facing is the 'location' of the DataaSource. Code
running within the application server can
Big thanks for your help. I change -ds.xml and use instead of
java:PostgresDS, PostgresDS. In connection stage i don't have visible
problems,
but on
| ResultSet rs = st.executeQuery(SELECT * FROM TestTable);
|
i see
Exception in thread main
This simply means that you don't have the PostGres JDBC jar file in your
classpath. Add that and you should be ok.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038551#4038551
Reply to the post :
I'm stupid - to forget such simple thing. All works. :-)
Small thing - if my table's name is TestTable? it's don't work, if name is
testtable - all work. Request don't changing - SELECT * FROM TestTable
Magic :-)
View the original post :
What do you mean by application? Is the servlet not your application?
The full exception is needed to see.
Check out
http://jboss.org/wiki/Wiki.jsp?page=DisplayTheJDNITreeWithTheJMXConsole
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038183#4038183
Reply