• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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: 22862
132
Eclipse IDE Spring TypeScript Quarkus 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic