Running JMS tutorial examples in Eclipse without deploytool
I’ve currently been reading up on JMS via the J2EE 1.4 tutorial. (Chapters 33 and 34). I use Eclipse J2EE.
The deploytool way of doing things annoyed me quite a bit. When I had to edit the /jms/simple/src/* code for the first example (remove the jupiter prefix used for the next example in the Connection Factories) I really wanted to use eclipse. But in Eclipse I needed to emulate all the magic that asant.bat and appclient.bat made to build the class-files and run the code. After lots and lots of browsing I found the jars I needed in my build (and run) path. I created an Application Client project for each of SimpleProducer, SimpleSyncConsumer and SimpleAsyncConsumer.
Each of these in the buildpath.
- C:\Sun\AppServer\lib\install\applications\jmsra\imqjmsra.jar
- C:\Sun\AppServer\lib\appserv-admin.jar
- C:\Sun\AppServer\lib\appserv-rt.jar
- C:\Sun\AppServer\imq\lib\imq.jar
besides from being created with the Sun Application Server 8.2 Default Configuration in the eclipse wizard. Here’s a .classpath
I also tried to emulate the deploytools .jars. To be able to create jars usable by appclient (and everything else) you need to manually fix the MANIFEST.MF. Set the Main-Class: to the right class. For examples like this for SimpleProducer:
Manifest-Version: 1.0
Main-Class: SimpleProducer
| Print article | This entry was posted by svrist on 2007-11-09 at 11:40, and is filed under English, Work. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No comments yet.
No trackbacks yet.
Biomolecular computers and programming
about 2 months ago - View Comments
I have recently handed in a report as a part of my masters/candidate in Computer Science at University of Copenhagen – “Visualizing blobs and computation in a biomolecular computation model“. It sounds very fancy and I would like to introduce the subject and my report here in hopefully a less dry way than in the report
What does CodingHorror have in common with Apache H-Base?
about 6 months ago - View Comments
As I was in my “Advanced data management” class today I realized that CodingHorror aka Jeff Atwood of stackoverflow fame agree quite alot with Apache H-base. Apache H-base is a column-store database system based on the Google BigTable ideas leveraging Apache Hadoop. Jeff Atwood was is not very happy with the default “incredibly pessimistic out
Logging vs. debugging
about 1 year ago - View Comments
It is probably no news that measurements in an experiment almost by definition affects the experiment. This is true also for IT systems, where logging is a very used way for observing running code. From Jeff Atwoods Coding Horror blog about a problem during the beta of stackoverflow.com: We spent days troubleshooting these deadlocks by
What I like about Unit Tests
about 1 year ago - View Comments
They are included with the source code, committed to SC and build along with the code pretty automatically these days! Actually I dont really care if it’s unit tests, integration tests or any other kind of test, I just see unit tests every day as part of my work. The part I like is that
Eclipse setup
about 2 years ago - View Comments
Image from WikipediaI work with eclipse all day, so I’ve spent some time messing around with plugins. Lots and lots of plugins. The plugins I’ve current stablized on is: Maven2 plugin: http://m2eclipse.codehaus.org/ (update-site: http://m2eclipse.sonatype.org/update/) PMD for static analysis of java code: http://pmd.sourceforge.net/integrations.html#eclipse (update-site: http://pmd.sf.net/eclipse ) Findbugs for static analysis of java bytecode http://findbugs.sourceforge.net/manual/eclipse.html (update-site: http://findbugs.cs.umd.edu/eclipse/)
Focus on the technology – 2
about 2 years ago - View Comments
So, progress is slow, and currently I’m looking into the base “architecture” of the show. I’ve been looking into different ESB’s as in: Mule OpenESB Apache ServiceMix Im pretty hooked on using SQS for queues which Mule supports out-of-the-box. On the other hand is it tempting to code it my self. But then again. Ill
Fast inverse square root
about 2 years ago - View Comments
Beyond3D(Rys) wrote an article (almost a series!) about the history of the magic fast inverse square root found in for example the quake code. With the explantions it doesn’t seem quite that much as magic. As this pdf says, its not magic at all(page2) The history article is all about paying homage to the author(s)
Mere googlemania
about 2 years ago - View Comments
Så har jeg også fået googledesktop. Nu ejer google ca. alt hvad jeg har på diverse af mine maskiner. Det er noget af en fest! Google desktop plugins er nu så meget sejere end yahoo-widgets. Jeg elsker de små korte beskeder man får hele tiden med updates på ens rss-feeds, emails og lign. Og TODO
Java and closures – YAPOJC
about 2 years ago - View Comments
YetAnotherPostOnJavaClosures So, I fell over some articles with both the words closure and java in them this week. It was this article about JavaFX closures. Since I’ve done some of my non-mandatory classes in my stud.scient. days (like the last 4years) it kinda woke my interest. It seems like lots of things has happend in
Eliteprofessionel!
about 2 years ago - View Comments
ADVARSEL: Buzzwords og partisk indlæg! Jeg har den store glæde at kunne præsentere mig selv som en af de få rå: Ægte Eliteprofessionel! ComputerWorld interview med vores administrerende direktør At kommentarene til den tilhørende artikel ikke er helt så fine kan ikke ryste mig Man kunne måske mene at eliteprofessionel måske er lidt meget buzzword,