[Design of AOP on JBoss (Aspects/JBoss)] - Refactoring AspectManager/Domains
by kabir.khan@jboss.com
I am about to look into whether refactoring the AspectManager/Domains is possible, and here are my initial thoughts.
One problem with the current way the AspectManager/Domains work, which has been bugging me for ages, is that there is no interface, we are working on the plain implementing classes. This becomes a problem when working with PER_INSTANCE aspects in the new weaving model. These require access to the instance advisor, which is backed by an instance domain. An instance domain is quite costly to create, since it has extends AspectManager. Although I was able to improve performance by making some of these maps lazy initialise, it still slows things down considerably. I want to update the current aop trunk to have an AOPManager interface (with the same methods as AspectManager/Domain) and to use this with AOP 2.0. In most cases the creation of these domains are unnecessary, since in the case of PER_INSTANCE aspects we are just reading data, i.e. the data is the same as the parent data. Basically the idea is to replace the initial domains for Class- and InstanceAdvisors with something that is more lightweight that just delegates onto the parent AOPManager UNTIL we add some dynamic information to the current domain.
The old AspectManager/Domain's will become facades onto the new structures, so that code woven with AOP 1.5.x will still be usable with the new structures, and I will provide a new way of accessing the main AOPManager singleton. AspectManager.instance() will still exist, but be deprecated.
I'll flesh out this thread once I start looking into this a bit more.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064041#4064041
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064041
18 years, 9 months
[Design of JBoss ESB] - SQL Listener configuration problem ..URGENT PLEASE
by srikanth_vals
Hi friends,
below is the configuration of my sql listener, i ran the esb in standalone mode there is no error or any ouput when the table got inserted a new record. Its urgent as i could not debug since there is no error...
| <providers>
| <jms-provider name="JBossMQ"
| connection-factory="WSMQQueueConnectionFactory"
| jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
| jndi-URL="localhost" >
| <jms-bus busid="sqlstartEsbChannel">
| <jms-message-filter
| dest-type="QUEUE"
| dest-name="wsmq/sqlmessage"
| selector="type='fromHelloWorldJmsAction'"/>
| </jms-bus>
| </jms-provider>
| <sql-provider name="SQLprovider"
| url="jdbc:db2://ip:6789/testdb"
| driver="COM.ibm.db2.jdbc.net.DB2Driver"
| username="user"
| password="pass">
| <sql-bus busid="helloSQLChannel" >
| <sql-message-filter
| tablename="order_complete"
| status-column="mass_update_flag"/>
| </sql-bus>
| </sql-provider>
| </providers>
| .
| <services>
| <service
| category="SQLService"
| name="SQLService"
| description="Hello World SQL Action (esb jdbc listener)">
| <listeners>
| <sql-listener name="SqlGateway"
| busidref="helloSQLChannel"
| maxThreads="1"
| is-gateway="true"
| poll-frequency-seconds="2"/>
| <jms-listener name="helloWorldJmsAction"
| busidref="sqlstartEsbChannel"
| maxThreads="1"/>
| </listeners>
| <actions>
| <action name="action1"
| class="com.bluebird.integration.SQLAction"
| process="displayMessage" />
| </actions>
| </service>
| </services>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064012#4064012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064012
18 years, 9 months