<div dir="ltr"><div>Hello Guys,<br><br>I&#39;ve been noticing the following issues in my ear application server in JBoss AS.<br><br>Version : JBoss AS 7.1.1-Final<br><br>1) Serialization is happening when using local view of an ejb. Is that possible?<br>2) Cdi/weld injection (using @Inject) of ejb within a ear module : local or remote proxy view? what&#39;s expected?<br>3) How to configure the preference (local or remote) of injection for each deployment?<br><br>I just printed the instance of the injected bean in the log to differentiate its nature.<br>1) Local instance  =&gt; &quot;Proxy for view class: com.xxx.yy.core.service.SampleService of EJB: SampleServiceImpl&quot;<br>2) Remote instance =&gt; &quot;Proxy for remote EJB StatelessEJBLocator{appName=&#39;sample&#39;, moduleName=&#39;core&#39;, distinctName=&#39;&#39;, beanName=&#39;SampleServiceImpl&#39;, view=&#39;interface com.xxx.yy.core.service.SampleServiceRemote&#39;}&quot;<br><br></div><div>Is my above assumption correct?<br></div><div><br>Sample code (another issue) is in the stackoverflow : <a href="http://stackoverflow.com/questions/28229336/injecting-ejb-bean-using-cdi">http://stackoverflow.com/questions/28229336/injecting-ejb-bean-using-cdi</a><br><br>I wanted to avoid the unnecessary serialization happening within a module. I can&#39;t disable the jboss serialization, because I&#39;ve an another ear module which communicates using the remote view (pass by value).<br><br>I also tried to debug/understand the jboss source code but i couldn&#39;t, because there are lot of missing parts. Since It has many modules hosted in different places, not easy to setup and debug for new developer. Is there a guide or wiki which talks about how the jboss/wildfly works <i>internally</i>. It would be helpful if someone shares that links (other than HackingOnWildfly/HackingAS7usingEclipse wiki&#39;s).<br><br><br></div><div><br>Thanks<br><br>--<br>~Sriram~<br></div></div>