Elihu Smails

Ranch Hand
+ Follow
since Jan 12, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Elihu Smails

This is on loopback. The reason for selecting unix domain sockets over TCP is that unix domain sockets are faster than TCP.

Also, I was hoping to poll a tcp-based connection and a unix domain socket connection with one call to poll(), instead of 2.
17 years ago
bind to, listen, read and write to a unix domain socket.
17 years ago
I want to write a unix domain socket provider for NIO.
17 years ago
I have been searching the internet and cannot find an example, tutorial or just documentation that shows what must be done.

If anyone has anything that might help me, I would appreciate it.

Thanks.
17 years ago
I want to develop an application that is a stand-alone system with a back end database. Can I still use EJB3.0 since I don't need something like JBoss or Sun AppServer?

Thanks
I am trying to figure out how to set the color of a node in a JTree to be different than all the rest of the nodes in the tree. I have implemented a DefaultTreeCellRenderer and call setBackgroundNonSelectionColor(Color), but all the nodes get the same color and not just the one node I would expect to be changed.
Does anyone know how to do this, or know where I can get some sample code?

Thank you.
18 years ago
I would say it is more than 5%. But this number depends on the amount of static content. Since tomcat handles the HTTP traffic in JBoss, you could just test the Tomcat portion. I would say that the more static content you have, the better off you are with Tomcat. Plus, if you are using SSL, then apache is a no-brainer. The SSL sessions are handled quicker with Tomcat.
18 years ago
Thank you.
19 years ago
I am researching large file support for Java. I need to know what the largest file that a 32-bit and 64-bit JRE(1.5) can handle. I would think it would be 2GB for a 32-bit JRE and 2^64 for a 64-bit JRE. I understand that the OS must have alot of memory to keep up with the JRE, which is not a problem. But should a 64-bit JRE be able to handle files in the >10 GB range?

PS. This is for SPARC Solaris 10.

Thanks.
19 years ago
I have a byte array in java that I need to pass through to C. My C code would be looking for a char*. What would be the proper function call in order to convert a jbyteArray to a char*?


Thank you.
19 years ago
Each client will have monthly entries to be placed into the database. I just thought it made more sense to keep each clients' information separate.

Plus is makes the SQL queries alot easier to deal with, since I am not that good with SQL.

Do you have any other ideas, I would appreciate any more feedback.
My application generates table names based on a client identification. For instance, when I add a new client and assign a number, I generate tables basedo on the client ID. For instance, if I create a new client with ID=1234, then I will have a table "client123info".

Now if I want to use a PreparedStatement, I cannot do the following:

PreparedStatement ps = connection.prepareStatement( "select * from client?info");

because the SQL ends up looking like this:

select * from client'1234'info

So what can I do?
Thanks.
I have a JSF page where I select an entry from a pull down menu in order to generate a report. The backing bean generates the report. I would then like to send the report to the user in the form of a zip file.

How can I get the zip file to the user? Can this be done without actually writing the zip file to disk as an intermediate step?

Thank you.
19 years ago
JSF
If you have anything, I would appreciate it. What I want to do is use a Tomcat filter to protect a directory of JSP/JSF pages. There will be a login page that I will send users to in order to authenticate themselves. I plan on using a JDBC Realm in tomcat for this. But once the user is logged in, they will have access to the protected area of my site. I think the way I will check that the user has been authenticated is via a cookie, object in session, ..etc.

Thanks for the response!!!
19 years ago
JSF