UNIX/Linux commands w/i Java
Hello Everyone! I'm new to this mailing list and am looking quite forward to conversing w/ you all. I'm attempting to put UNIX commands w/i in my Java code. A simple example of this would be to change directories on the UNIX box and look for files w/ a given extension. I'm having a difficult time locating documentation on how to do this, and more complex forms of the same idea. Do any of you have any experience in this area or can point me to some documentation our online source code that does similar tasks. I'd be ver grateful. Thanks for your help. Andy Priestley -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Choosing open source app server for linux
> First, I have no budget for this... :) > Having said that - I need to come up with an app server that handles message > driven beans and is open source, and is enterprise capable (we're expecting > massive traffic) . I have narrowed things down to Enhydra or Jboss. We run a > clustered solution here, and that must be factored into the decisions - Java is > not popular here ( superstition ) and I have to have this working soon. Which > app server should I go with? Enhydra or Jboss? Any suggestions? Please help. I've never used JBoss, but one thing that's noteworthy about Enhydra in your situation is that it supports load balancing out-of-the-box through the use of Enhydra Director (an apache module). -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>' Key retrival: Send an E-Mail to [EMAIL PROTECTED] E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org PGP signature
Re: 2.4 kernels and Java
> What issues have been seen using the 2.4 kernels and java 1.3 ? > Do the threading issues lessen or go away? > Do I need to change my code? I went from 2.2.15 to 2.4.3 a while back and haven't had any problems yet... -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>' Key retrival: Send an E-Mail to [EMAIL PROTECTED] E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org PGP signature
Re: Choosing open source app server for linux
> I've never used JBoss, but one thing that's noteworthy about Enhydra in your > situation is that it supports load balancing out-of-the-box through the use > of Enhydra Director (an apache module). Unfortunately, I am not using apache. I am using Zeus. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: UNIX/Linux commands w/i Java
> I'm attempting to put UNIX commands w/i in my Java code. A simple example of this >would be to change directories on the UNIX box and look for files w/ a given >extension. I'm having a difficult time locating documentation on how to do this, and >more complex forms of the same idea. Do any of you have any experience in this area >or can point me to some documentation our online source code that does similar tasks. >I'd be ver grateful. Thanks for your help. See Runtime.exec(). Or use JNI if you wish to invoke native code you have written yourself that perform the desired tasks. -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>' Key retrival: Send an E-Mail to [EMAIL PROTECTED] E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org PGP signature
Re: Fwd: Re: Java/Linux at JavaOne
Christopher Smith wrote: > > On 31 May 2001 06:45:08 +1000, Jesus M. Salvo Jr. wrote: > > > 4) Use JNI to use Linux's various asynch I/O API's. > > Option 4) is how BEA WebLogic Server does it, ( I think ). They have this > > libmuxer.so ( which is also available for Solaris -- dont know why when JVM > > for Solaris makes use of solaris native threads ) which enables native I/O, > > or the so-called "performance pack". > > Yes, many of the various application servers employ various strategies > for this. Unfortunately I am unaware of any of them who have taken the > time to do this for Linux. > > > Speaking of 4), does anyway have a ready-made ( cut&paste ) C code that one > > can compile into a shared library and have all I/O made through this library > > via JNI? > > I'll be demoing a library that does this with SGI's KAIO patch at the > presentation (presuming I can iron out this nasty sigtimedwait problem). > > > And how does JDK 1.4 affect the performance on Linux, given that 1.4 was > > better I/O support overall, in particular non-blocking I/O. > > We're benchmarking that right now, but it doesn't take a genius to > realize the impact is pretty spectacular. All you need to do is compare > Apache's performance with polling I/O based web servers on Linux to get > a good idea of the potential performance gains. > > The NIO API is a little annoying to me though in that it's low enough > level that it exposing the polling approach to I/O. With the overhead of > JNI, it's much nicer to use an asynch I/O approach for most Java > applications. > > --Chris > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] Chris! I missed your talk at JavaOne, and not just because it was so early in the morning. ;-) I missed the entire conference because I had some important things to take care of, i.e. work! Are you going to post slides from your presentation anywhere? Can you provide a short summary of the talk and questions here or a link to it? Thanks, Ed Phillips In fact, anyone who attended or went to any Java/Linux talks or BoFs at JavaOne; it would be interesting to hear on the list from you: short summaries, interesting questions, new directions -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: UNIX/Linux commands w/i Java
Priestley, Andy writes: > Hello Everyone! > > I'm new to this mailing list and am looking quite forward to conversing w/ you all. > > I'm attempting to put UNIX commands w/i in my Java code. A simple > example of this would be to change directories on the UNIX box and > look for files w/ a given extension. I'm having a difficult time > locating documentation on how to do this, and more complex forms of > the same idea. Do any of you have any experience in this area or > can point me to some documentation our online source code that does > similar tasks. I'd be ver grateful. Thanks for your help. For the kind of thing you're talking about, you should use the appropriate java classes. Look at java.io.File. Also, dig around on search engines for "java reading directories". I quickly found this; http://www.artima.com/java/answers/Jul2000/messages/73.html which may help. Now, if your example was merely a bad example, and you still have a need to run external programs on linux, then you should check out the 'exec' method on class java.lang.Runtime. It is a bit tricky to use properly, but there is an excellent tutorial here; http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps_p.html Good luck. Sean -- Sean R. Owens [EMAIL PROTECTED] 412-268-3194 (office number) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fwd: Re: Java/Linux at JavaOne
> > > >Chris! > > > > > >I missed your talk at JavaOne, and not just because it was so early in > >the morning. ;-) > > > >I missed the entire conference because I had some important things to > >take care of, i.e. work! > > > >Are you going to post slides from your presentation anywhere? Can you > >provide a short summary of the talk and questions here or a link to it? > > > >Thanks, > > > >Ed Phillips > > > >In fact, anyone who attended or went to any Java/Linux talks or BoFs at > >JavaOne; it would > >be interesting to hear on the list from you: short summaries, > >interesting questions, new directions paul campbell wrote: > > I missed JavaOne because of the cost. > > If you visit the JavaOne site, they indicate that all the slides > will be up by June 17. > > The keynotes are already there with audio/video. Thanks Paul. Some of the slides may be up by the 17th. ;-) It would be nice for the Java/Linux folks, if they have permission, to post text from presentations, short summaries, and interesting questions here nonetheless! or links, Thanks all, ed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Build System
I've been handed the responsibility of designing a new automatic build process. Currently we use manually edited Makefiles for all or our C, C++ & java code. We will be scrapping almost all of the C & C++, so that it will be 90% java. I would like to make it easy on the other developers, so that changes can be easily updated. Any ideas on the best tools for this. I would like to have dependencies built in so that incremental builds only recompile the code that has changed. I will use Imake for the C & C++ so that is is portable (Win32, Linux & Solaris) but I don't need to portability for the java stuff. Thanks -- Jesse Stockall | Tel: 1+ 613.599.2441 ext. 243 CRYPTOCard Corporation | Fax: 1+ 613.599.2442 Suite 304, 300 March Rd. | email: [EMAIL PROTECTED] Ottawa, ON, Canada K2K 2E2 | web: www.cryptocard.com - -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
