[JBossWS] - Re: Transaction Not Allowed
by subramaniam.venkat
Hello oskar,
First thanks for replying.
I am using Required transaction attribute when i am creating a transaction with Spring. This behaves the same way as the Required transaction attribute in CMT.
And the transaction attribute in the EJB is also "Required". So in theory there must not be a new transaction which should be created by Spring and the same transaction which has been created by the EJB must be used.
My application runs fine for a long time and then suddenly this error pops up and then all the following request fail with the same error. If Jboss is restart then it is working fine again.
Please let me know your comments.
Thanks & Regards,
Subramaniam V
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091412#4091412
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091412
18Â years, 6Â months
[JBoss Seam] - el processor ignoring errors
by jbeaken
Can anyone explain the thinking behind seam el not throwing an exception if it comes across a unknow el expression?
for example;
<h:outputText value="#{listInvitedUsersInFolderService.firstItem + 1} ... #{listInvitedUsersInFolderService.itemCount < listInvitedUsersInFolderServicefirstItem + listInvitedUsersInFolderServicebatchSize ? listInvitedUsersInFolderServiceitemCount : listInvitedUsersInFolderServicefirstItem + listInvitedUsersInFolderServicebatchSize}"/>
This output is not displayed, but the page is with no errors. I mistakenly omitted some full stops, it should be :
<h:outputText value="#{listInvitedUsersInFolderService.firstItem + 1} ... #{listInvitedUsersInFolderService.itemCount < listInvitedUsersInFolderService.firstItem + listInvitedUsersInFolderService.batchSize ? listInvitedUsersInFolderService.itemCount : listInvitedUsersInFolderService.firstItem + listInvitedUsersInFolderService.batchSize}"/>
To reiterate, why does the seam el processor not compain about the first expression? just out of interest you see..
thanks (using seam1.2.1, faclets, jboss 4.21)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091407#4091407
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091407
18Â years, 6Â months
[JBoss Seam] - Identifying long running conversations
by omilian3
I'm having a few difficulties understanding the observed behaviour of my conversations.
I have an application which starts 2 conversations one after the other. Both conversations are defined on stateful EJBs with methods annotated with @Begin. Both of these 'begin' methods are called, so at this point I expect I'll have a long running conversation, but I don't see the 'clr' in the URL that I would expect (having set conversation-is-long-running-parameter="clr" in components.xml). I do see the conversation in the debug.seam page, but I can't tell from this listing if the conversation is long running or not (can I?).
To get a bit more info I did the following 2 things:
1- I've added a "conversationLogger" event listener as follows.
| @Name("conversationLogger")
| public class ConversationLogger implements Serializable {
|
| private Log log = Logging.getLog(ConversationLogger.class);
|
| @Observer("org.jboss.seam.beginConversation")
| public void logConversationBegin() {
| Conversation currentConversation = Conversation.instance();
| log.info("Beginning conversation: #0, Parent Id: #1", currentConversation.getId(), currentConversation
| .getParentId());
| }
|
| @Observer("org.jboss.seam.endConversation")
| public void logConversationEnd() {
| Conversation currentConversation = Conversation.instance();
| log.info("Ending conversation: #0, Parent Id: #1", currentConversation.getId(), currentConversation
| .getParentId());
| }
| }
2 - In my pages I've included the following line in my facelets:
Current converstation is long running #{org.jboss.seam.core.conversation.longRunning}
Curiously, I don't see any event being raised by the 'conversationLogger', nor do I see the 'clr' in the URL, however my pages do display "Current conversation is long running true". Do I have a long running conversation or not? Why might the methods marked with @Begin not raise the 'org.jboss.seam.beginConversation' event?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091399#4091399
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091399
18Â years, 6Â months