timw,
you might be right. I guess I will give this approach another try.
Could you just give me a hint regarding sockets and RMI. When using RMI, will I have to take care about the sockets or will RMI do this for me? I have read something about rmiregistry and nameservices and I am a bit...
Good question! I must confess that I only know some Java basics and have little knowledge about JBoss and J2EE.
RMI is a good point. I will try to make myself more familiar with this technology. I just stumbled over RMI while chasing information on the internet.
Is it possible to have a...
Hi Diancecht,
I forgot to mention that the JBoss-approach would include a fat client application as frontend, not a webapplication.
frag
real_firestorm@gmx.de
Hi folks,
I have a design related question for you:
We need a client/server application, which helps us administrating and maintaining our project.
The user should be able to make some entries in a database and it should be possible to start some shell scripts on the server within the client...
Hi everybody,
I am trying to compile an existing C++ project with the help of ANT. We are doing this with make right now and it works fine but we start to use Java for some smaller programs and I thought that it would be nice to have an ANT build.xml which can handle everything in the project...
You guys were all right!
It is indeed a unicode formatted file and timw's posted code is working (UTF-16).
My first mistake was that I thought it was in ebcdic-code, my second mistake was that I did not know that StringTokenizer does not return an empty value if it hits two delimiter in a...
Hey this works! Thank you very much... my mistake was that I used:
satic Logger logger = Logger.getLogger(myClass.class);
But apparently I have to use:
satic Logger logger = Logger.getRootLogger();
In my log4j.xml I have:
<log4j:configuration...
Hi all,
I am using log4j with a DailyRollingFileAppender. Everything works fine so far but there is one problem left....
I want to be able to let my application know how its logfile is named an where it can be found.
Therefor I would have to browse through the appenders and if I find an...
Hi timw,
thank you for the tip. But it won't do the trick for me in this case.
The file has tab seperated values. If I use UTF-16 the "empty" fields (two tabs in a row) will disappear during the read process.
This file seems to come from a host-system with strange encoding... anyhow my...
Ok, solved this problem on my own... the file contains NULL-characters. I now just filter them with:
line.replaceAll("\\x00", "")
Perhaps this might by handy for someone else.
Sorry for double post...
frag
real_firestorm@gmx.de
Hi all,
I have a big problem with a small textfile. :(
I read a textfile that was downloaded from a webserver... like this:
String line;
FileInputStream fin = new FileInputStream(strImportFile);
BufferedReader myInput = new BufferedReader(new InputStreamReader(fin));
try
{
// read file...
Thank you Stefan for your reply.
The directory-listing in html-form is exactly what I get and what I want to read (if I can't read the folder itself).
The program-description of htmlobserver sounds very promising, i will have a deeper look into the sourcecode as soon as I have enough time...
Hi all,
I want to read the content of a folder on a webserver with a java program. Is that possible at all?
Want I try to achive is that you can call the programm with a certain URL (like www.abc.com/xyz/) an it will display the folder's (xyz) content (all html-files, etc.).
I have tried...
I guess you would need several connectors, like this:
<Connector port="8080" maxThreads="150" inSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="80" maxThreads="150"...
Hi!
I have a problem with mod_proxy.
We have a machine with the dns-entry "domain.example.com" and an alias called "alias.example.com". I setup the (reverse)proxy to forward all requests that go to a certain directory to another server (tomcat):
<IfModule mod_proxy.c>
ProxyRequest Off...
Hi Antharian,
you are right, it is a thick java client not a webapp.
1) I use the database accounts for the login, that means the user has to provide his database login when using the app. And I select groups/roles depending on the username. Groups are stored in an extra database-table and are...
Thank you for your answer chiph... I am sorry to say that I don't get the idea behind the startup class. As I see I would have to provide a name for the class and a hashmap. Will each connected client have his own instance of this class?
I am suprised that there doesn't seem to be a standard...
Hi everybody,
I am trying to solve a design-issue but I can't find the proper solution for it. This is the problem:
We have an java application (client) that connects to a jboss-server and it does some database related tasks (show records in a JTable, add, edit and delete records). Everything...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.