[Microcontainer] - Re: How to hide a bean from other deployments?
by obrien
"alesj" wrote : This is now done.
| - https://jira.jboss.org/jira/browse/JBMICROCONT-406
|
| It took a bit more than just that patch. :-)
| And, DML, I also updated BMDB to be able to use
| search in inject or add annotation metadata to property.
proper integration :). Thanks for that.
I spend some time last night designing the integration with RESTEasy and realized scoping really needs significantly more work. This is total science fiction and terminology is most likely mixed, but :
1. search itself doesn't have any concept of precedence/relationship of two scopes and respective deployment, ie. possible to pick up wrong bean.
I'll solved that for now by provisioning custom LookupStrategy, but within the kernel structure there's not sense of the deployment structure. For example is there easy way how to pickup beans from particular deployment (from jboss-beans.xml for example)?
2. That leads to the <scope%gt> we've discussed and I think it doesn't make sense to create it in such a manner.
To provide some generalized control of scoping to application developer I realized it would be better to have it on deployment level. Something like this:
| <deployment scoped="true" name="myApp" xmlns="urn:jboss:bean-deployer:3.0">
|
where scoping could be enabled by default. Then it would be just matter to create nested deployments and define visibility/relationship rules between them.
3. Rules are needed for merging of deployment scopes(along two different physical deployments).
4. In such a case Kernel/Controller reference handed over to the application (for example WAR file), would represent just its deployment scope, with resolving functionality by default to be upwards in the structure (as it's currently).
5. Then concept of the ObjectName as it was used within JMX microkernel could be recreated to support something like maindeployment.subdepl:name=myBean to define cross-scope references.
6. And to get this to the extreme, it might be then possible to create RemoteDeployment where the given scope doesn't have to part of the same JVM. with clever mixing of VFS delegation to the other kernel, aspects and bit of dark magic that could work :)
*. Which leads me to the question, if there is currently way how to 'include' other XML deployment descriptor?
--
And don't ask me what I'm trying to implement :) now it's time to see my shrink.
To stay real, there's a small bit I can try to implement - AbstractKernelController to have support to return scope context, because I don't see other way than lookup strategy to get to the scoped beans.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206609#4206609
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206609
17 years, 2 months
[JBossWS] - WeFault and throws declaration
by skajotde
Hi
I have that structure
@WebFault public class BaseAppException {
| ExceptionXBVO getFaultInfo() { ...}
| }
|
| @WebFault public class OtherAppException extends BaseAppException {
| ExceptionXBVO getFaultInfo() { super.getFa...}
| }
|
| public interface IServiceOne {
| @WebMethod public String one(@WebParam("xxx" xxx) throws BaseAppException;
| }
|
| @WebService [...other annotations...] public class SerwiceOne implements IServiceOne {
| @WebMethod public String one(@WebParam("xxx" xxx) throws BaseAppException {
| throw new OtherAppException("info");
| }
| }
|
|
If web service declare BaseAppException but method throws OtherAppException which inherit on it. Should JBoss WS throw SOAPFaultException or OtherAppException or BaseAppException ?
I think best solution is to catch OtherAppException by client but in my config is catched SOAPFaultException. When I add OtherAppException to throws declaration then is works as excepted. Does JBoss WS require adding to throws decalarion all possible exception, iheritance doesn't enough ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206608#4206608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206608
17 years, 2 months
[JBoss Portal] - New exception in JBP 2.7.1
by gressho
Hello,
our clustered webapp produces with JBossPortal 2.7.1 this exception:
anonymous wrote :
| INFO | jvm 1 | 2009/02/03 16:24:37 | 16:24:37,317 ERROR [STDERR] java.io.NotSerializableException: org.jboss.portletbridge.application.PortletStateHolder$WindowIDRetriver
| INFO | jvm 1 | 2009/02/03 16:24:37 | 16:24:37,317 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
| INFO | jvm 1 | 2009/02/03 16:24:37 | 16:24:37,317 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
| INFO | jvm 1 | 2009/02/03 16:24:37 | 16:24:37,317 ERROR [STDERR] at org.jboss.invocation.MarshalledValue.(MarshalledValue.java:70)
| INFO | jvm 1 | 2009/02/03 16:24:37 | 16:24:37,317 ERROR [STDERR] at org.jboss.portal.portlet.session.SubSession.synchronizeWithPortalSession(SubSession.java:192)
| INFO | jvm 1 | 2009/02/03 16:24:37 | 16:24:37,317 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:112)
| INFO | jvm 1 | 2009/02/03 16:24:37 | 16:24:37,317 ERROR [STDERR] at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
| ...
|
which didn't happen in JBossPortal 2.7.0.
I'm using the JBossPortletBridge 1.0.B3 (as an update to Beta 5/6
proved to be more difficult than I expected).
Has someone a tip?
Best wishes
Werner
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206607#4206607
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206607
17 years, 2 months
[EJB 3.0] - RA failing to invoke MDB method (on 5.0.0, worked on 4.2.3)
by matterbury
[Cross posted from JCA/JBoss as suggested]
I have my Resource Adapter (RA) in an rar and my MDB in a separate jar.
The MDB does not use JMS - I have defined a separate Listener interface.
The rar deploys successfully, and the MDB appears to as well, however when the RA invokes the MDB's method, "nothing" happens
(see below for the relevant trace). I believe the method isn't being called because it logs entry/exit/actions and none of
these things are logged.
It works fine using 4.2.3GA but does not work using 5.0.0GA.
Any suggestions on how to proceed? Thanks!
Trace:
The RA has created an instance/handle using the MessageEndpointFactory and is in the act of invoking the 'handles' method.
I believe the WARN's are a known JBoss problem (caused by a missing if-not-null condition).
anonymous wrote : 2009-01-30 13:44:58,566 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InterceptorsFactory
| 2009-01-30 13:44:58,566 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (InboundConnection) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
| 2009-01-30 13:44:58,566 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InterceptorsFactory
| 2009-01-30 13:44:58,566 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (InboundConnection) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
| 2009-01-30 13:44:58,566 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,566 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,566 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public java.lang.String com.example.xa.ExampleMessageBean.invoke(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception
| 2009-01-30 13:44:58,566 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public java.lang.String com.example.xa.ExampleMessageBean.invoke(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public void com.example.xa.ExampleMessageBean.ejbCreate() throws javax.ejb.EJBException
| 2009-01-30 13:44:58,582 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public void com.example.xa.ExampleMessageBean.ejbCreate() throws javax.ejb.EJBException
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public void com.example.xa.ExampleMessageBean.ejbRemove() throws javax.ejb.EJBException
| 2009-01-30 13:44:58,582 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public void com.example.xa.ExampleMessageBean.ejbRemove() throws javax.ejb.EJBException
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public void com.example.xa.ExampleMessageBean.setMessageDrivenContext(javax.ejb.MessageDrivenContext) throws javax.ejb.EJBException
| 2009-01-30 13:44:58,582 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public void com.example.xa.ExampleMessageBean.setMessageDrivenContext(javax.ejb.MessageDrivenContext) throws javax.ejb.EJBException
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,582 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public boolean com.example.xa.ExampleMessageBean.handles(java.lang.String)
| 2009-01-30 13:44:58,582 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public boolean com.example.xa.ExampleMessageBean.handles(java.lang.String)
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public java.lang.String com.example.xa.ExampleMessageBean.invoke(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception
| 2009-01-30 13:44:58,597 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public java.lang.String com.example.xa.ExampleMessageBean.invoke(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public void com.example.xa.ExampleMessageBean.ejbCreate() throws javax.ejb.EJBException
| 2009-01-30 13:44:58,597 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public void com.example.xa.ExampleMessageBean.ejbCreate() throws javax.ejb.EJBException
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public void com.example.xa.ExampleMessageBean.ejbRemove() throws javax.ejb.EJBException
| 2009-01-30 13:44:58,597 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public void com.example.xa.ExampleMessageBean.ejbRemove() throws javax.ejb.EJBException
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public void com.example.xa.ExampleMessageBean.setMessageDrivenContext(javax.ejb.MessageDrivenContext) throws javax.ejb.EJBException
| 2009-01-30 13:44:58,597 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public void com.example.xa.ExampleMessageBean.setMessageDrivenContext(javax.ejb.MessageDrivenContext) throws javax.ejb.EJBException
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (InboundConnection) Creating advice InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) new InjectInterceptorsFactory
| 2009-01-30 13:44:58,597 DEBUG [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (InboundConnection) Create interceptor chain for org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@17297941 on public boolean com.example.xa.ExampleMessageBean.handles(java.lang.String)
| 2009-01-30 13:44:58,597 WARN [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (InboundConnection) applicable interceptors is non-existent for public boolean com.example.xa.ExampleMessageBean.handles(java.lang.String)
| 2009-01-30 13:44:58,613 DEBUG [org.jboss.ejb3.interceptors.aop.InterceptorSequencer] (InboundConnection) aroundInvoke [advisedMethod=public boolean com.example.xa.ExampleMessageBean.handles(java.lang.String), unadvisedMethod=public boolean com.example.xa.ExampleMessageBean.handles(java.lang.String), metadata=null, targetObject=com.example.xa.ExampleMessageBean@32f533, arguments=[Ljava.lang.Object;@10a62e8]
| 2009-01-30 13:44:58,629 ERROR [STDERR] (InboundConnection) Jan 30, 2009 1:44:58 PM ExMessageEndpointManager get
| WARNING: Class TelcoSession.CustomerHome is unhandled
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206601#4206601
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206601
17 years, 2 months