Can you provide more details? Are the components ejbs running on the same jboss instance? Are they accessing the same row(s) of the table? Do you need one bean to see the modifications made by the other?
Generally speaking this is likely to work in jboss 2.4.1, although if you need to see the results of one bean in the other, you may need to re-find the first bean after making changes... I'm not sure. There were some problems about the timing of writing changes back to the db, and I'm not 100% sure of the extent of the fix.
In what sense it this a distributed transaction?