• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get JBoss and/or Websphere servers to generate Client jars while deploying EJB

 
Siddhartha Ghosh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am completely new to EJBs. Although, I have successfully deployed an EJB in the J2EE RI server using the Sun Studio IDE, I wanted to know how I can get a production server like JBoss or Websphere to generate the Client-jar files needed by a Swing Desktop client. If Jboss does generate these files automatically where does it put it?
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is not any automatic way to create a client jar, you can use Ant and create a task that creates the jar file fo ryou, but you do that manually yourself just like you would on the command line.

Mark
 
Siddhartha Ghosh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Mark,
Thanks a lot for answering so soon. But you see I am a total noob in EJB. So I would appreciate it very much if only you could just gimme some hints about what commands to use for generating the client jars, or else atleast could you please gimme some references from where I might learn more about the process?
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My best suggestion is to go out and buy a book like Head First EJB.

But you should also learn Ant here.

but jars can be created with the jar command, like jar -cvm

But Ant makes it easier with a jar tag to jar up files.

All you really need are the remote interfaces for the client in a jar file.
 
Siddhartha Ghosh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Mark,
Once again thanks a lot for your help. I have bought the book, Head First EJB, which I think I should have bought a lot earlier. And I've also learned how to create the client jars. Hey, that was damn easy, it's almost like creating any other jar file, only that we need to pack the client interfaces in it. Many many thanks to you, I am no longer afraid of EJB or JBoss any more.
Regards,
Siddhartha Ghosh
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very cool. So I want a picture of you and EJB out on a date now. Take it to a real nice fancy restaurant.

The funny thing, is we all do the same thing with a new technology. We are afraid of the learning curve and think that it will be really complicated, then when we actually do it, it ends up being pretty easy. Well, most of the time. It is just our perspective before and after that changes.

Good Luck.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!