If your goal is to have one JMS Consumer which receivesmessages and
broadcasts them to Flex clients, you can do thiswithout using the JMS
adapter. Write some Java code either as a"message driven bean" or using
the JMS apis directly to grab theJMS messages. You can then convert
these messages to flex messagesand send them to an ActionScriptAdapter
flex messaging destination.See the Feed.java sample for the code
necessary to do this. Thetrickiest part of this is getting the JMS
messages in the fir...
I am actually a little confused. This is a RemotingMessagewhich means it
is sent from the client to the server when you"send" a RemoteObject
request. In this case, it is to thedestination "userMasterService" to
the "checkOrganization" method.Probably this is just a debug call you
added and so not related tothe original problem? I'm looking to see the
messages of typeDataMessage... in particular there would be a "batched"
messagewhich would contain one or more "update", "create" etcmessages.
Yeah, the updateItem call should have the proper value of the"locations"
property. The first thing I'd check is that you haveset up the
"identity" property for the location destinationcorrectly. If it has the
wrong property name, it won't be able tomap ids to items correctly and
so would get the empty value.If that isn't the problem, could you enable
debug logging onthe server and include the debug logs? You'd go
toWEB-INF/flex/services-config.xml, search for "level=", change thatto
Debug and be...
The code that Alex shows is what you would use if you write acustom
MessageAdapter. That allows you to process messages sentfrom the client
and alter the way in which those messages arehandled. In your case
though, it sounds like you simply need topush messages to clients by
routing them from some other messagesource. In this case, you can have
your clients subscribe toparticular destinations with/without subtopics
or selectors asneeded to control the routing. Then use the MessageBroker
You are charting new ground using hibernate annotations butit sounds
like your approach is the right one. The error you aregetting now is a
general one which happens when an uncaughtexception occurs on the
server. The best way to diagnose that is toturn on Debug logging on the
server (editWEB-INF/flex/services-config.xml, search for level= and
change thatattribute to Debug. Make sure that your tags
belowhave both Message.* and DataService.*. You should see the
stacktrace and detailed error on w...
Hi Ken,My apologies, I think I was off by one-level in myunderstanding
of the problem. From looking at the stack trace morecarefully, I believe
the issue is that you do a query on hibernateto return a Contact
instance. It is not that this instance hasproperties which point to
objects which are not initialized, butthat it is not initialized itself.
When the debug logging tries tofetch the Contact instance to call its
toString method, it isfailing to retrieve the "real" populated Contact
Hi Ken,I think the issue is with our debug logging code (Message.*).We
have some "pretty printer" logic which is trying to recursivelydump out
the state of any arguments and return values to theRemoteObject call.
For your Hibernate entity object, this means itis trying to access the
state of some properties which have notbeen initialized yet because they
are lazily loaded. Since this isall happening after the remote object
call has returned, thesession is closed.If you can modify the code of
So it sounds like you are building an application which mixesstruts
logic with flex logic - one page is rendered entirely in JSPwith struts,
but when you click a button you want to go to an MXMLpage and then at
some point go back again? The important thing to keep in mind here is
that each MXMLpage first compiles the MXML file into a SWF file, then
simplyrenders as an HTML page which has an Object tag which refers to
thecompiled SWF file. So if you are mixing HTML and Flash, you
simplyneed to ta...
This all looks ok to me. If the data grid is displaying all50 rows, you
will see all 50 and might not notice that it wasactually fetching them
10 rows at a time. To see more about whatthe server is sending to the
client, enable the debug logging inthe server. Go to your
services-config.xml (in WEB-INF/flex) andsearch for "level=". Change
that to Debug and make sure your tags just below that include
both "DataService.*"and "Message.*". When you run the application, you
should seesomething like:[F...
Hi Ken,Your assembler class does not implement FlexFactory. You onlyneed
one FlexFactory implementation for each source of Java objectsthat you
want to use with FDS either as remote object destinationsor data
management services assembler classes. Here's a copy of some more
complete instructions I wrote onintegrating FDS with Spring. Hopefully
this will help. Best, Jeff--- Integrating FDS with SpringStep for
configuring Spring and FDS. This step only applies ifyou havenot already