[Installation, Configuration & Deployment] - Re: From JIRA Issue to Patch on Production System
by andsch
Hi,
so far as I can see, one has to use bootdir if any class must be patched that is loaded via the ServerLoader according to section 2.2.2.4.3. The Complete Class Loading Model im Adminguide of the JBoss Admin-Guide (concerning JBoss AS 4.0.3SP1).
Anything else should be patched via patchdir. The reason not to use bootdir as well is that some required classes might not be available via ServerLoader.
All in all, nearly anything can be patched, except:
1) org.jboss.Main / org.jboss.system.server.ServerLoader
2) Application classes (in .ears, .wars, ...) if a loader-repository is configured or some other configuration prevents the respective deployer from using the JBoss-Classloader
Is that correct so far?
By the way, what about the possibility to provide patches that are loaded by the Classloader of a particular loader-repository (which then would have to be configured)? Deployed applications could then be patched the way the JBoss server itself gets patched.
Kind regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958557#3958557
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958557
19 years, 9 months
[EJB 3.0] - Lookup work, but @EJB annotation don't
by angelogalvao
I have this in my JSF backing bean:
anonymous wrote : private CadastroManagerLocal getCadastroManagerLocal(){
| try {
| Properties p = new Properties();
| p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| p.put(Context.PROVIDER_URL,"jnp://localhost:1099");
|
| InitialContext ctx = new InitialContext(p);
| Object ref = ctx.lookup("CadastroManagerBean");
| return (CadastroManagerLocal) PortableRemoteObject.narrow(ref, CadastroManagerLocal.class);
| } catch (Exception e) {
| e.printStackTrace();
| return null;
| }
| }
and work fine, but when a try to inject with @EJB annotation i have nothing...
anonymous wrote : @EJB(name="CadastroManagerBean")
| private CadastroManagerLocal cadastroManagerLocal;
|
| or
|
| @EJB(name="mappedName")
| private CadastroManagerLocal cadastroManagerLocal;
I see in the documentation that the EJB work only in "java:com/env" ENC and my Bean is in global jndi namespace...
This is the problem? how do i change from global to java:comp/env?:??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958553#3958553
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958553
19 years, 9 months