[flexcoders] UserTransaction JNDI syntax for FDS/Hibernate support

2006-09-19 Thread amalabie
I'm trying to configure the integrated JRun to use it's built-in
transaction manager with Data Services. I get a Unable to access
UserTransaction error. I suspect that I need to specify the JNDI
parameters in jrun-resources.xml. I just need the correct syntax so
that Data Services can work with Hibernate (which apparently will not
work without a Transaction Manager).

Also, what are the entries to make in hibernate.cfg.xml...ie. what are
the values for the property hibernate.transaction.factory_class and
property hibernate.transaction.manager_lookup_class?

Any examples from anyone who has successfully configured JRun,
Hibernate, FDS with transaction support would be really useful. The
examples I've found don't help me find the solution.

Any help greatly appreciated!
Aubrey 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex Data Services configuration problem

2006-09-18 Thread amalabie
I'm trying to configure Flex Data Services with Hibernate on the back
end and I'm running into
these problems as shown below. Any pointers to solve these would be
highly appreciated.

Thanks in anticipation!
Aubrey M.
Config: Windows XP
FDS 2
Integrated JRun4
PS: My apologies if this has been posted twice! 
-
Entries in data-management-config.xml
-
?xml version=1.0 encoding=UTF-8?
service id=data-service 
class=flex.data.DataService 
messageTypes=flex.data.messages.DataMessage

adapters
adapter-definition id=actionscript
class=flex.data.adapters.ASObjectAdapter default=true/
adapter-definition id=java-adapter
class=flex.data.adapters.JavaAdapter/
/adapters
default-channels
   channel ref=my-rtmp/
/default-channels

destination id=BohaUser channels=my-rtmp 
adapter ref=java-adapter / 
properties 
!--use-transactionstrue/use-transactions --
sourceflex.data.assemblers.HibernateAssembler/source
scopeapplication/scope
metadata
identity property=id/
many-to-one property=establishment
destination=Establishment lazy=true / 
many-to-one property=userRole
destination=UserRole lazy=true / 
/metadata
network
!--session-timeout20/session-timeout --
paging enabled=true pageSize=10 /
throttle-inbound policy=ERROR max-frequency=500/
throttle-outbound policy=REPLACE max-frequency=500/
/network
server
hibernate-entityboha.db.BohaUser /
update-conflict-modePROPERTY/
delete-conflict-modeOBJECT/
fill-configuration
use-query-cachefalse/
allow-hql-queriestrue/
/fill-configuration
/server
/properties
/destination
!-- End of Hibernate destination  --
destination id=Establishment channels=my-rtmp 
adapter ref=java-adapter / 
properties 
sourceflex.data.assemblers.HibernateAssembler/source
scopeapplication/scope
metadata
identity property=id/
many-to-one property=owner
destination=Owner lazy=true / 
many-to-one property=province
destination=Province lazy=true / 
/metadata
network
paging enabled=true pageSize=10 /
throttle-inbound policy=ERROR max-frequency=500/
throttle-outbound policy=REPLACE max-frequency=500/
/network
server
hibernate-entityboha.db.Establishment/hibernate-entity
update-conflict-modePROPERTY/update-conflict-mode
delete-conflict-modeOBJECT/delete-conflict-mode
fill-configuration
use-query-cachefalse/use-query-cache
allow-hql-queriestrue/allow-hql-queries
/fill-configuration
/server
/properties
/destination
!-- End of Hibernate destination  --
destination id=UserRole channels=my-rtmp 
adapter ref=java-adapter / 
properties 
sourceflex.data.assemblers.HibernateAssembler/source
scopeapplication/scope
metadata
identity property=id/
/metadata
network
paging enabled=true pageSize=10 /
throttle-inbound policy=ERROR max-frequency=500/
throttle-outbound policy=REPLACE max-frequency=500/
/network
server
hibernate-entityboha.db.UserRole/hibernate-entity
update-conflict-modePROPERTY/update-conflict-mode
delete-conflict-modeOBJECT/delete-conflict-mode
fill-configuration
use-query-cachefalse/use-query-cache
allow-hql-queriestrue/allow-hql-queries
/fill-configuration
/server
/properties
/destination
!-- End of Hibernate destination  --
-
Output of integrated JRun4 startup
-

9/18 12:52:26 info No JDBC data sources have been configured for this
server (see jrun-resources.xml)
09/18 12:52:26 info JRun Web Server listening on 

[flexcoders] Flex Data Services configuration problem

2006-09-18 Thread amalabie
I'm trying to configure Flex Data Services with Hibernate on the back
end and I'm running into
these problems as shown below. Any pointers to solve these would be
highly appreciated.

Thanks in anticipation!
Aubrey M.
Config: Windows XP
FDS 2
Integrated JRun4

-
Entries in data-management-config.xml
-
?xml version=1.0 encoding=UTF-8?
service id=data-service 
class=flex.data.DataService 
messageTypes=flex.data.messages.DataMessage

adapters
adapter-definition id=actionscript
class=flex.data.adapters.ASObjectAdapter default=true/
adapter-definition id=java-adapter
class=flex.data.adapters.JavaAdapter/
/adapters
default-channels
   channel ref=my-rtmp/
/default-channels

destination id=BohaUser channels=my-rtmp 
adapter ref=java-adapter / 
properties 
!--use-transactionstrue/use-transactions --
sourceflex.data.assemblers.HibernateAssembler/source
scopeapplication/scope
metadata
identity property=id/
many-to-one property=establishment
destination=Establishment lazy=true / 
many-to-one property=userRole
destination=UserRole lazy=true / 
/metadata
network
!--session-timeout20/session-timeout --
paging enabled=true pageSize=10 /
throttle-inbound policy=ERROR max-frequency=500/
throttle-outbound policy=REPLACE max-frequency=500/
/network
server
hibernate-entityboha.db.BohaUser /
update-conflict-modePROPERTY/
delete-conflict-modeOBJECT/
fill-configuration
use-query-cachefalse/
allow-hql-queriestrue/
/fill-configuration
/server
/properties
/destination
!-- End of Hibernate destination  --
destination id=Establishment channels=my-rtmp 
adapter ref=java-adapter / 
properties 
sourceflex.data.assemblers.HibernateAssembler/source
scopeapplication/scope
metadata
identity property=id/
many-to-one property=owner
destination=Owner lazy=true / 
many-to-one property=province
destination=Province lazy=true / 
/metadata
network
paging enabled=true pageSize=10 /
throttle-inbound policy=ERROR max-frequency=500/
throttle-outbound policy=REPLACE max-frequency=500/
/network
server
hibernate-entityboha.db.Establishment/hibernate-entity
update-conflict-modePROPERTY/update-conflict-mode
delete-conflict-modeOBJECT/delete-conflict-mode
fill-configuration
use-query-cachefalse/use-query-cache
allow-hql-queriestrue/allow-hql-queries
/fill-configuration
/server
/properties
/destination
!-- End of Hibernate destination  --
destination id=UserRole channels=my-rtmp 
adapter ref=java-adapter / 
properties 
sourceflex.data.assemblers.HibernateAssembler/source
scopeapplication/scope
metadata
identity property=id/
/metadata
network
paging enabled=true pageSize=10 /
throttle-inbound policy=ERROR max-frequency=500/
throttle-outbound policy=REPLACE max-frequency=500/
/network
server
hibernate-entityboha.db.UserRole/hibernate-entity
update-conflict-modePROPERTY/update-conflict-mode
delete-conflict-modeOBJECT/delete-conflict-mode
fill-configuration
use-query-cachefalse/use-query-cache
allow-hql-queriestrue/allow-hql-queries
/fill-configuration
/server
/properties
/destination
!-- End of Hibernate destination  --
-
Output of integrated JRun4 startup
-

9/18 12:52:26 info No JDBC data sources have been configured for this
server (see jrun-resources.xml)
09/18 12:52:26 info JRun Web Server listening on *:8700
09/18 12:52:26 info Deploying web 

[flexcoders] Need help auto starting a Java program to listen to msgs from Flex client

2006-09-12 Thread amalabie
I'm using messaging (JMS) to pass objects to a Java program that
listens for messages on the Topic. My question is: How do I
automatically get the Java program running so it can pick up messages?
When I start it manually it does start to grab msg's off the message
queue. Does JRun have some sort of config parameter I can set?

Also, should the Java program be utilising threads? It's job is to
wait around and service requests as they come in, so if a lot of users
are sending, things could get messy.

Any help would be greatly appreciated! Thanks in anticipation!

My config:
Windows XP Pro
Eclipse and Flex Builder plugin
Integrated JRun4





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Getting contents of ArrayCollection (flex newbie)

2006-09-01 Thread amalabie
Hi! I have an ArrayCollection object returned from a RemoteObject call
and I need some help getting the data out of the collection. 

What is the syntax to iterate through the collection and pick out the
data items I need.

mx:ArrayCollection id=myCollection
source={remoteObject.get.lastResult} /

In my actionScript, how do I access myCollection? I've tried
getItemAt() but am not sure whether I specified the right parms.

I've tried: 
  var msg:String;
  msg = myCollection.getItemAt(0);

Nothing seems to work. I can see the ArrayCollection object in the
debugger and it contains the data I need, which is a mixture of
numbers and strings. Help!

Any pointers greatly appreciated! Thanks in anticipation! 
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Getting contents of ArrayCollection (flex newbie)

2006-09-01 Thread amalabie
Hi! I have an ArrayCollection object returned from a RemoteObject call
and I need some help getting the data out of the collection. 

What is the syntax to iterate through the collection and pick out the
data items I need.

mx:ArrayCollection id=myCollection
source={remoteObject.get.lastResult} /

In my actionScript, how do I access myCollection? I've tried
getItemAt() but am not sure whether I specified the right parms.

I've tried: 
  var msg:String;
  msg = myCollection.getItemAt(0);

Nothing seems to work. I can see the ArrayCollection object in the
debugger and it contains the data I need, which is a mixture of
numbers and strings. Help!

Any pointers greatly appreciated! Thanks in anticipation! 
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Getting contents of ArrayCollection (flex newbie)

2006-09-01 Thread amalabie
Hi! I have an ArrayCollection object returned from a RemoteObject call
and I need some help getting the data out of the collection. 

What is the syntax to iterate through the collection and pick out the
data items I need.

mx:ArrayCollection id=myCollection
source={remoteObject.get.lastResult} /

In my actionScript, how do I access myCollection? I've tried
getItemAt() but am not sure whether I specified the right parms.

I've tried: 
  var msg:String;
  msg = myCollection.getItemAt(0);

Nothing seems to work. I can see the ArrayCollection object in the
debugger and it contains the data I need, which is a mixture of
numbers and strings. Help!

Any pointers greatly appreciated! Thanks in anticipation! 
 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/