• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB files that appear to be auto-generated

 
Ranch Hand
Posts: 163
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm new to EJBs and they appear to have auto-generated code. I have the following classes:

WhoIsApplyingEJB.java
WhoIsApplyingEJBBean.java
WhoIsApplyingEJBHome.java

EJSLocalStatelessWhoIsApplyingEJB_fc0e15cc.java
EJSLocalStatelessWhoIsApplyingEJBHome_fc0e15cc.java
EJSLocalStatelessWhoIsApplyingEJBHomeBean_fc0e15cc.java

What procedure triggers the creation of the EJS* files? I tried googling to no avail.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Containers usually don't return instances of your EJBs to you when you inject them, but proxy objects. That allows the container to add aspects like security and interceptors to it without you having to worry about that in your code. When you call a method, the proxy objects first do their own thing (security, interceptors, etc), then call your implementation, then possibly do some more things. This is the main reason why EJBs can't be final or have final business methods. Usually these proxies are automatically generated classes like the ones you've seen.
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic