-
15. Re: JNDI in Jboss AOP
oliver_zzx Oct 28, 2005 7:04 AM (in response to oliver_zzx)ah sorry...forget something...its sad that edit-options is deactivated here :/
C:\Programme\jboss-aop_1.3.4\docs\aspect-framework\examples\injboss>ant deploy-b asic-lt-war Buildfile: build.xml prepare: [echo] =========================================================== [echo] YOUR JBOSS DISTRIBUTION ROOT IS: C:\Programme\jboss-4.0.1RC2\> [echo] YOUR SERVER CONFIG IS: all [echo] MAKE SURE YOU STARTED JBOSS WITH: run -c all [echo] =========================================================== [echo] ../../../../lib [echo] ../../../../lib
-
16. Re: JNDI in Jboss AOP
oliver_zzx Oct 29, 2005 8:54 AM (in response to oliver_zzx)kabir, i found the entry in the jmx-console. The loadtime-weaver is activated. (EnableLoadtimeWeaving=true)
The Advice Binding also have an entry from my aop-xml:
Pointcut Expression: execution(public java.lang.String beans.FacadeBean->sayHello())
The bean is bound here:
Domain Name: jboss.j2ee
service: EJB
plugin: pool
jndiName: Facade
You see something wrong in there ?
thanks alot for the help kabir, really appreciated,
oliver -
17. Re: JNDI in Jboss AOP
kabirkhan Oct 31, 2005 1:05 PM (in response to oliver_zzx)I'm not sure what you're asking me here. This stuff
The bean is bound here:
Domain Name: jboss.j2ee
service: EJB
plugin: pool
jndiName: Facade
Is the JMX ObjectName of the bean, but it looks like it should be bound under "Facade"
Try the JNDIView MBean to find out what your ejb is bound under? http://wiki.jboss.org/wiki/Wiki.jsp?page=DisplayTheJDNITreeWithTheJMXConsole -
18. Re: JNDI in Jboss AOP
oliver_zzx Oct 31, 2005 2:44 PM (in response to oliver_zzx)oh ok. sorry....now heres the result of the jndiView.list() -invoke you told me todo:
Ejb Module: aopproject.jar java:comp namespace of the Facade bean: +- HandleDelegate (class: org.jboss.proxy.ejb.handle.HandleDelegateImpl) +- ORB (class: org.jacorb.orb.ORB) +- env (class: org.jnp.interfaces.NamingContext) java: Namespace +- jaas (class: javax.naming.Context) | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext) | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext) | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext) +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter) +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl) +- JBossCorbaNaming (class: org.omg.CosNaming.NamingContextExt) +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory) +- TransactionManager (class: org.jboss.tm.TxManager) +- JBossCorbaPOA (class: org.omg.PortableServer.POA) +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter) +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- JBossCorbaInterfaceRepositoryPOA (class: org.omg.PortableServer.POA) +- Mail (class: javax.mail.Session) +- JBossCorbaORB (class: org.omg.CORBA.ORB) +- timedCacheFactory (class: javax.naming.Context) Failed to lookup: timedCacheFactory, errmsg=null +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory) +- comp (class: javax.naming.Context) Global JNDI Namespace +- Facade (proxy: $Proxy58 implements interface beans.FacadeHome,interface javax.ejb.Handle) +- HASessionState (class: org.jnp.interfaces.NamingContext) | +- Default (class: org.jboss.ha.hasessionstate.server.HASessionStateImpl) +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair) +- jmx (class: org.jnp.interfaces.NamingContext) | +- invoker (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor (proxy: $Proxy39 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt) | +- rmi (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef) +- JAXR (class: org.apache.ws.scout.registry.ConnectionFactoryImpl) +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UserTransactionSessionFactory (proxy: $Proxy12 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory) +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- invokers (class: org.jnp.interfaces.NamingContext) | +- athlon (class: org.jnp.interfaces.NamingContext) | | +- iiop (class: org.jboss.invocation.iiop.IIOPInvoker) +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction) +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef) +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef) +- local (class: org.jnp.interfaces.NamingContext) | +- Facade@14491830 (proxy: $Proxy56 implements interface beans.FacadeLocalHome) +- HAPartition (class: org.jnp.interfaces.NamingContext) | +- DefaultPartition (class: org.jboss.ha.framework.server.HAPartitionImpl) +- topic (class: org.jnp.interfaces.NamingContext) | +- testDurableTopic (class: org.jboss.mq.SpyTopic) | +- testTopic (class: org.jboss.mq.SpyTopic) | +- securedTopic (class: org.jboss.mq.SpyTopic) +- queue (class: org.jnp.interfaces.NamingContext) | +- A (class: org.jboss.mq.SpyQueue) | +- testQueue (class: org.jboss.mq.SpyQueue) | +- ex (class: org.jboss.mq.SpyQueue) | +- DLQ (class: org.jboss.mq.SpyQueue) | +- D (class: org.jboss.mq.SpyQueue) | +- C (class: org.jboss.mq.SpyQueue) | +- B (class: org.jboss.mq.SpyQueue) +- console (class: org.jnp.interfaces.NamingContext) | +- PluginManager (proxy: $Proxy40 implements interface org.jboss.console.manager.PluginManagerMBean) +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef) +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory) +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef) +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair) +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
the other thing i sent you was taken from here:
jboss.j2ee --> jndiName=Facade,plugin=pool,service=EJB
of the jmx-console.
well just thouught this might be tell something as it looks like the bean is bound.
Hope this helps..btw i can access the sessonbean when i deploy as *.jar file. Doesnt that work too ? I mean deploy a *.jar-file with the interceptor and the bean-stuff in it and putting the jboss-aop.xml into the deploy-root of jboss ? Or is it necessary that the deploy of the bean etc are exported as *.aop
thanks! hope we make it finally as its quite important for me. My diploma thesis will deal about a open-source jboss project and i want to extend it with aop-functionalities :/ -
19. Re: JNDI in Jboss AOP
oliver_zzx Nov 1, 2005 1:23 PM (in response to oliver_zzx)hmm, kabir. Would you check my package i export to jboss maybe ? Maybe you'd be able to see my fault better this way ?! Well just an idea - as i dont know what i made wrong :/
-
20. Re: JNDI in Jboss AOP
oliver_zzx Nov 9, 2005 7:48 AM (in response to oliver_zzx)ok, i made it working finally. thanks for the help kabir