[Design of JBoss ESB] - Re: jbossesb-properties.xml filters
by tfennelly
Daniel, this looks fine, but I suspect you may run into problems if you have variable length CSV rows (i.e. with multiple line items as with the quickstart you added). Perhaps this isn't an issue for you in the real world.
This has prompted me with an idea however... The EdiSax parser is like the CSVParser in that it converts a non-xml stream (EDI stream) into a stream of SAX events, which are then used to build a DOM (intermediate XML as you've called it). However, the EdiSax parser is more powerful in that it can be configured to handle repeating segments etc (i.e. variable length segments like the line-items). It can also be configured to handle message formats with different delimiter types etc.
What I'm thinking is that it might be possible to use the EdiSax parser to parse CSV - just configure the field delimiter to be "," and the segment delimiter to be "& #10;" (linefeed).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041314#4041314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041314
17 years, 8 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Remoting is throwing unrecognized listener ID: blah blah
by ron.sigal@jboss.com
Ok, with help from Andrew on the related thread
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041276#4041276
I see why this message is appearing. When a callback handler is registered, the client side creates a control connection, and when the handler is unregistered, the control connection is destroyed. However, the creation and destruction is somewhat asymmetric: the connection is created when BisocketClientInvoker.transport() sees an ADDLISTENER message go by, and it is destroyed when the callback BisocketServerInvoker.handleInternalInvocation() gets a REMOVECLIENTLISTENER message. Originally, the treatment was symmetric, but in the case of "quick shutdown" with no network i/o, BisocketClientInvoker is bypassed, which caused a leak.
Now, the problem occurs when the Messaging connection is created in a single JVM. Even though the transport is specified as "bisocket", a LocalClientInvoker is used, which makes direct method calls on the server invoker, and so, appropriately, the bisocket control connection isn't created. But the REMOVECLIENTLISTENER message still goes to the callback BisocketServerInvoker, which tries to destroy the non-existent control connection.
I'll reduce the message's log level in Remoting 2.2.0.SP3, which I'll create in time for the Messaging 1_2_0_SP2 release.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041278#4041278
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041278
17 years, 8 months
[Design of JBoss Remoting, Unified Invokers] - Re: JBREM-63, configuration pojofication
by scott.stark@jboss.org
"ron.sigal(a)jboss.com" wrote :
| 3.
| I suppose the goal is to configure the server invokers as independent pojos, but a problem is that server invokers are created by a factory method in org.jboss.remoting.InvokerRegistry, which is called by Connector. In this particular case, I could change things so that server invokers are created by constructors that register the new invoker with InvokerRegistry, but it seems like a general issue, and I'm wondering if there is a general solution.
|
There are various ways one can register a bean with another bean in the mc without having to code such a dependency. For example, you can use something like this:
| <bean name="BisocketInvoker"
| class="...">
| <install bean="InvokerRegistry" method="addInvoker">
| <parameter>
| <this/>
| </parameter>
| </install>
| ...
| </bean>
|
this says that the BisocketInvoker bean should be added to the InvokerRegistry bean by calling its addInvoker method with the BisocketInvoker bean instance passed as the argument.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041239#4041239
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041239
17 years, 8 months