• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Importing EJB into RAD7

 
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Currently I'm learning how to use ejb 2.1...Unfortunately I am required to deploy my ejbs to RAD7.A colleague of mine has told me that I cannot deploy my ejb-jar without a client ejb-jar in the environment which my beans must deploy to.Now I would just like to check something...if I can successfully deploy my ejb-jar/client-jar onto glassfish...what changes would I need to make in order to import these into a RAD7 project?

Also I am slightly confused about the whole stub-generation thing.....if I jar my beans/ejb-jar myself...how are the stubs generated?Or will glassfish/rad7 generate the stubs and put the stubs and jars into an EAR automatically?

Lastly,my colleague mentions something called a SYST project that RAD7 must generate in order for the beans to work...?What is this SYST project?
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry could the mods please move this thread to the websphere/rad forum...I should have placed this there....
 
author & internet detective
Posts: 40798
829
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Duran Harris wrote:A colleague of mine has told me that I cannot deploy my ejb-jar without a client ejb-jar in the environment which my beans must deploy to.


That depends. Where is your EJB being called from. If it's the same EAR, you don't need a client jar.

Duran Harris wrote:what changes would I need to make in order to import these into a RAD7 project?


You would have to change the classpath and java jar dependencies to make it compile.

Duran Harris wrote:Also I am slightly confused about the whole stub-generation thing.....if I jar my beans/ejb-jar myself...how are the stubs generated?Or will glassfish/rad7 generate the stubs and put the stubs and jars into an EAR automatically?


When you run ejb-deploy, WebSphere will generate the stubs. (as will I assume glassfish)

Duran Harris wrote:Lastly,my colleague mentions something called a SYST project that RAD7 must generate in order for the beans to work...?What is this SYST project?


I've never heard of such a thing. Maybe you should ask the colleague who brought this up?
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you...

That depends. Where is your EJB being called from. If it's the same EAR, you don't need a client jar.


Clears up my confusion about client jars nicely

When you run ejb-deploy, WebSphere will generate the stubs. (as will I assume glassfish)


Was hoping this was the case.(I was scared I had to somehow get the stubs inside the jar)

I've never heard of such a thing. Maybe you should ask the colleague who brought this up?


I think I won't worry about this for now.If you can use EJB's in RAD without it then it's ok so I can too.


You would have to change the classpath and java jar dependencies to make it compile.

I'm only confused about this one...wouldn't this only be necessary if my bean is dependant on outside classes(perhaps another JAR?)I also don't understand why I'd need to change the classpath...
 
Jeanne Boyarsky
author & internet detective
Posts: 40798
829
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Duran Harris wrote:I'm only confused about this one...wouldn't this only be necessary if my bean is dependant on outside classes(perhaps another JAR?)I also don't understand why I'd need to change the classpath...


Come to think of it, the import wizard is probably smart enough to handle this for you. You are correct, you likely wouldn't need to change it.
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the advice!
reply
    Bookmark Topic Watch Topic
  • New Topic