[JBossWS] - Re: Accessing USERNAME_PROPERTY from Web Service class
by mjhammel
I've spent all day on this and found nothing. It appears that *maybe* something called handlers or interceptors might be useful here. The password must be sent in the SOAP message but the question is how to pull it out. I think the PASSWORD_PROPERTY as set by the client is received on the server side (proven by the use of BASIC authentication using a database login module) but is not in the APPLICATION scope and therefore I can't get at it the way I've been trying. Which is what leads me to think the handlers or interceptors might have some way to get at it. But I'm still not clear on how to write handlers (and I'm not even sure what interceptors might be, other than they appear to be part of Apache CXF, whatever that is).
Maybe if I post enough messages in this thread someone at JBOSS will pay attention to it long enough to tell me "You can't get there from here." At least then I'd know I can stop wasting my time on it.
At this point it feels like I'm wasting my time on Web Services, which feel about as useful as Esperanto. *sigh*
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123277#4123277
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123277
18 years, 4 months
[JBoss Seam] - Re: modify entity after persist from same method
by jsutherland
Pete,
Because when I do that I get transient instance problems:
| 19:33:15,893 INFO [STDOUT] Hibernate:
| insert
| into
| User_Calendar
| (users_id, calendars_id)
| values
| (?, ?)
| 19:33:15,895 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.vivapop.calendar.entity.Calendar
| at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:219)
| at org.hibernate.type.EntityType.getIdentifier(EntityType.java:397)
| at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:78)
| at org.hibernate.persister.collection.AbstractCollectionPersister.writeElement(AbstractCollectionPersister.java:755)
| at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1143)
| at org.hibernate.action.CollectionRecreateAction.execute(CollectionRecreateAction.java:26)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
| ...
|
I searched hibernate forums about this and couldn't seem to find anything related ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123265#4123265
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123265
18 years, 4 months