Sam Smoot

Ranch Hand
+ Follow
since Apr 18, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sam Smoot

I have a service that accepts inline SOAP attachments, but a client who can only provide MTOM. Is there a standard conversion process or tool already in place for this or will we need to hammer it out ourselves? There is not a lot of flexability in either service, so we have to handle it externally.

Thank you for your time.
11 years ago
I am trying to create a communications manager for an odd environment and I am attempting to use pipes / channels for the "path". I am having a little trouble in understanding these in that, for each pipe, do I have to have a separate socket / port for it or can they all operate over a single port? As I stated, this is not a normal environment (ok, Mainframe) and the management of resources isn't as friendly as it is in a distributed / web environment.

Thanks for the help!
[ April 14, 2008: Message edited by: Sam Smoot ]
15 years ago
I need to be able to connect and run methods from an existing class that is running as a daemon process on a UNIX system. How do I issue commands / method calls from an external class to interact with the running process?

Thanks in advance.
[ July 13, 2007: Message edited by: Sam Smoot ]
16 years ago
I have a process that requires me to write to a file on an external system and does not generate output on the calling system. How do I execute / invoke the Runtime.getRuntime().exec(myCode); process to make this happen correctly? The command is running on a Unix based system, but the output is going to an IBM z/OS mainframe.

I can execute the "myCode" commands in the native Unix environment as a script and it sends the data to the z/OS side without a problem. I just need this to do this without external intervention (automated process).

Any / all help is greatly appreciated..
16 years ago
I need to know if it is at all possible to exend a class that is written in c/c++ and accessed by using JNI wrapper services with Java. I cannot touch the acutal source (c/c++) code.

Thanks.
Sam
17 years ago
Took some massaging, but I finally got it to work.. Originally, I was using Buffered Reader / file logic, so that is why it may look a little messy. I'm still cleaning it up, but this helped a lot.




Oh, and I'm currently using the internal builder in NetBeans to create the .jar file, but I have used ANT as well.

Thanks again!
Sam
[ September 06, 2006: Message edited by: Sam Smoot ]
I guess what I'm looking for is what or where I define the resource, either genericaly or through Netbeans, so that as I develop and deploy, everything works the same. I need to make this as much of a single package "tool" as possible.

Thanks.
Sam
I am creating an application that requires some .txt files to be accessed during processing. Currently, they are in the root of my project directory structure because I can't access them from anywhere else. I know that I should be able to add them to the .jar file and still be able to access them, but I'm not sure which property, build, or resource file I need to modify to make the code in the project actually access the file without it being in the project's root directory.

I am currently using NetBeans 5.0 for this project. Any / all help is greatly appreciated.

Sam
I need to know what the actual definition (accepted descriptions?) of what an API actually needs to be and/or entails. I need to create access and controls into a legacy based system that has indirect access by java. If this is done right, this could become part of a commercial product, but I just need some advice / clarification on the subject so that I can proceed with MUCH caution.

Thanks in advance!

Sam
17 years ago
Thanks for the responses.. I haven't really had to code in a while, so I'm trying to catch back up. I'll let you know what I wind up with.

As a general review question: Won't the "new Date()" call cause a bunch of Date objects in memory? If so, when can they be expired to be collected by the garbage collector or would that really matter?

Thanks again.
Sam
[ August 21, 2006: Message edited by: Sam Smoot ]
17 years ago
This is probably not advanced enough for this forum, but..

I'm trying to get a "clock" to work out in java (actually as a JSP, but for now, in Java). When I execute the following code, I get the same time over and over, but I (thought) am reloading the time value at every iteration of the loop...




What am I missing?

Thanks in advance.
17 years ago
Well, it kinda works, but now the server won't reuse the threads.... How do you make the server recycle the threads on it's end?




=================


[ March 09, 2006: Message edited by: Sam Smoot ]
I'm assuming you are talking about the client part. I'm gonna give it a try and see if it'll work (probably will, I'm really too old for this...)


Thanks for the help!

Sam
First, I will admit up front that this is a homework assignment. I need some guideance, but I am not looking for a final solution. However, I have no other resource at this time to eyeball this with me to see what is missing, so any good nudge will be greatly appreciated.

I have a class DateServer that is supposed to generate multiple threads (5) for a client to access. This is what I have, but...



I then have a client (DateClient) that is currently only a single thread, but I also have to modify it to create 50 threads to act like there are multiple request accessing the DateServer.



Originally, I had a loop around the try block for 50 passes, and it worked on the original server, but only 1 at a time.

Again, I'm not looking for the direct solution, but a good hint in the right direction is greatly appreciated.