[Beginner's Corner] - Using JBoss as back-end for remote thick client?
by cmolodo
cmolodo [https://community.jboss.org/people/cmolodo] created the discussion
"Using JBoss as back-end for remote thick client?"
To view the discussion, visit: https://community.jboss.org/message/715885#715885
--------------------------------------------------------------
I know almost nothing about the world of J3EE and application servers and the like, so this is a very basic concepts question. I'm part of a small group that needs to develop a stand-alone app which will be run on multiple remote locations and needs to access a central data source. Clearly we need some kind of connection management, so I've been trying to learn more about using JBoss with Hibernate to manage the way the app communicates with the database. We don't want to have the app run through a browser as an applet, because it needs to provide quite a bit of functionality and data processing - we want a thick client which is installed remotely and communicates with the database through JBoss/Hibernate. Everything I've seen in my searches the past few days seems to suggest that such a thing might be possible, with the remote clients using a JBoss-provided JNDI service to communciate with a Hibernate bean running on JBoss, but all the actual tutorials and such that I've found are geared toward web clients with the apps being launched from JBoss itself. This is probably a stupid question, but is such a thing possible? (Am I even understanding these concepts correctly?) If so, how difficult/complex would implementing that kind of setup be, especially given that none of us has any previous experience in the world of enterprise Java?
As a side note, we've previously developed an app which communicates directly with the database through the JDBC and hard-coded SQL queries - it only has a few users, and doing it the right way was less important than doing it quickly. (I know, I know, no lectures please.) However, this new project will be much more widely used, and will need a better infrastructure, hence my question.
Thanks for your patience with an absolute newbie!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/715885#715885]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[JBoss Web Services] - JBoss WS temp file problem
by David Balakirev
David Balakirev [https://community.jboss.org/people/dave00.baxter] created the discussion
"JBoss WS temp file problem"
To view the discussion, visit: https://community.jboss.org/message/714974#714974
--------------------------------------------------------------
Hi JBoss Forum,
Forgive me that i just paste my problem here (from http://stackoverflow.com/questions/9173027/jboss-ws-temp-file-saved-incor... stackoverflow):
My problem from yesterday is say sorted. Not solved though.
The the NPE i had was triggered by a FileNotFoundException that was hidden until i switched to TRACE logging (org.jboss.util.xml.JBossEntityResolver)...
So here is the thing: 1.) I'm trying to connect to the webservice from code that is deployed to under JBoss 2.) JBossWs saves the wsdl to the *tmp* folder like this:
file:/home/xxx/dev/XXXX/jboss-4.2.3.GA/server/yyy/tmp/jbossws/JBossWS_www.company.xx_99_server_soap.php?wsdl=get8489235369016302536.xsd
3.) And then when it tries to read back the WSDL:
TRACE [org.jboss.util.xml.JBossEntityResolver] Failed to obtain URL.InputStream from systemId: file:/home/xxx/dev/xxx-PAN/jboss-4.2.3.GA/server/xxxxxxx/tmp/jbossws/JBossWS_www.comany.xx_99_server_soap.php?wsdl=get8489235369016302536.xsd
java.io.FileNotFoundException: /home/xxx/dev/xxx-PAN/jboss-4.2.3.GA/server/xxxxxxx/tmp/jbossws/JBossWS_www.comany.xx_99_server_soap.php
Obviusly it truncates and then not able to read back...
I guess i would be able to configurate somehow the pattern how it writes it to disk or how it reads it back but i did find the solution (even not from the code of the JBoss class i mentioned). Any ideas would be appreciated.
Many thanks, Dave
*Edit:*
I created a simple test application on the linux server pointig to the same file containing the following code:
URL url = new URL("file:/home/abos/xxx/xxxx/jboss-4.2.3.GA/server/xxxxxxx/tmp/jbossws/JBossWS_www.company.xx_99_server_soap.php?wsdl=get8489235369016302536.xsd");
url.openStream();
Exception in thread "main" java.io.FileNotFoundException: /home/xxx/dev/xxxx/jboss-4.2.3.GA/server/anchorage/tmp/jbossws/JBossWS_www.bdmglobal.xx_99_server_soap.php (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at java.io.FileInputStream.<init>(FileInputStream.java:79)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at java.net.URL.openStream(URL.java:1010)
at Main.main(Main.java:11)
So here are my conclusions: 1.) Actually it is the URL class that truncates the name 2.) But if it was saved properly it would not be a problem...
So i'm still looking for a way to configure that.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/714974#714974]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months