[EJB 3.0] - Re: Problem using SequenceGenerator
by Arno Werr
Checked my logs.
| 2006-07-27 16:09:40,003 DEBUG [org.hibernate.jdbc.ConnectionManager] - opening JDBC connection
| 2006-07-27 16:09:40,004 DEBUG [org.hibernate.SQL] - select nextval ('postmaster_sequence')
| 2006-07-27 16:09:40,043 DEBUG [org.hibernate.id.SequenceGenerator] - Sequence identifier generated: 1
| 2006-07-27 16:09:40,043 DEBUG [org.hibernate.jdbc.AbstractBatcher] - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2006-07-27 16:09:40,043 DEBUG [org.hibernate.jdbc.ConnectionManager] - aggressively releasing JDBC connection
| 2006-07-27 16:09:40,043 DEBUG [org.hibernate.jdbc.ConnectionManager] - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
| 2006-07-27 16:09:40,045 DEBUG [org.hibernate.id.SequenceHiLoGenerator] - new hi value: 1
| 2006-07-27 16:09:40,046 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] - generated identifier: 50, using strategy: org.hibernate.id.SequenceHiLoGenerator
| 2006-07-27 16:09:40,119 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] - processing flush-time cascades
|
As you see
generated identifier: 50, using strategy: org.hibernate.id.SequenceHiLoGenerator
50 - it is in the database
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961420#3961420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961420
19 years, 9 months
[JBossWS] - Re: Type Hiererchy
by Arno Werr
anonymous wrote : Looking at the WSDL generated for this I dont see Dog or Cat show up anywhere. Is that not valid for web services? Do I need to have separate getAllCats and getAllDogs methods that specify the exact return type?
Me neither. Yet I think it's correct.
Ask yourself for which purpose in Java-to-Java communication you would need such heavy web service implementation as SOAP (standard? marketecture over architecture?). In Java-to-Java there are plenty much lighter alternatives - just look at Spring remoting.
We really need SOAP when we communicate with non-Java client/server - interoperability. And what if that non-Java platform does not support all/some features of OOP including inheritance? So SOAP web service is the lowest and heaviest possible denominator. Use concrete classes instead - exact return types.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961415#3961415
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961415
19 years, 9 months
[Messaging, JMS & JBossMQ] - Send Message to Queue on Remote Broker From MDB
by bhuste1
I am attempting to create a computing grid. I setup the grid servers to pull requests from the mutliple brokers using the instructions from "HowDoIConfigureAnMDBToTalkToARemoteQueue". Once the MDB running on the grid is finished processing the message, a message needs to be sent back to the broker.
The only design option I see at this point is to configure queues on each of the compute grid servers and have the MDB running on the broker listen for messages on each of the grid servers. However, we could potentially have hundreds of compute grid servers and I believe this would be a lot of overhead if the MDB running on the broker needed to maintain connections to every grid server. In addition, I would need to add jms proxy configuration in the broker for every grid server.....it seems there should be a better solution.
Is it possible to create a design where the grid servers can talk back to a queue residing on the broker? In addition, I would like the grid servers to be able to detect a failed broker to ensure that the message is sent to a running broker.
Any advice would be very much welcomed.
Thanks,
Brian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961413#3961413
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961413
19 years, 9 months