Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JMS - Message redelivery

843830Jun 26 2006 — edited Jun 30 2006
I have created an MDB which has has an onMessage method that executes code that processes the message. Should the processing fail then a custom failure exception is caught and runTimeException is thrown causing the message to be redelivered. I currently have the redeliverylimit on the MDB's template through the weblogic console set to 3 redelivery attempts with the message eventaully sent to a posion queue after the final delivery attempt. This all works fine. I can send an email every time the message is processed but my problem is that I require an email to be sent on the last redelivery attempt. How can I do this? I could possibly set properties in the message each time it is delivered acting as a count? How could I read the max delivery attempts that I have set up through the console? (Otherwise I will have to set up another property loaded on startup of the managed server but this means the same value stored in two separate places)

Any Help? This is one of my first posts so any advice suggestions are welcome?

Message was edited by:
CaptainRhino

Comments

SH_INT

What is your target application?

ORAHYPFDM

EPBCS Planning app.

SH_INT

Why can't you just map the data to the correct currency member?

ORAHYPFDM

I am using * to USD and * to Local mapping.

But it seems not working.

SH_INT

If you are trying to do this in the same data load rule that isn't going to work as only one of those mappings will ever be applied. I assume your source data contains a currency identifier and separate records for Local and USD or you won't be able to achieve what you want in a single DLR. If it does contain a currency identifier then you need to make your mappings less generic to distinguish between the required currency targets. However, if there is no separation of records then you will need to have 2 DLRs and batch them together to achieve your requirement in a single execution

user111989

You can probably check for Logic Accounts if that can help

SH_INT

An option, but not necessarily a good one for this requirement as it would involve duplicating the entire dataset in memory and potentially increasing the amount of mapping maintenance required 

user111989

I think mapping would be the same as well have for one currency only additional would be #SQL probably

SH_INT

The amount of additional mapping required will be driven by the complexity of the account dimensions mapping. Unless there is no mapping in this dimension i.e. the data just passes through, additional maps will have to be defined for each associated Logic Account. Also if any other dimension uses accounts, for example in multi-dimensional mappings, this will require additional maps to be created. So unless the original mapping requirement is very basic there will undoubtedly be additional mapping maintenance overhead with the use of Logic Accounts.  

ORAHYPFDM

@"JohnGoodwin" Any thoughts?

JohnGoodwin

I think you need a bigger font.

What is wrong with the suggestions that have been provided?

You have not provided much about the type of currency application but it might be easier just to copy from USD to Local in the target app.

3870883

Hello,

I have the same issue I need to load data with the same location in different currency, and I dont know how do it, cause the location ask me for the functional currency

SH_INT

Hi, if you have your own question please open another thread and cross-reference this one. This will give you the ability to close the thread as resolved unlike this one which will probably perpetually remain open!

kafka89

Are the amounts the same both for LCY and RCY? If yes I would do it as SH_INT suggested - via 2 DLR.

1 - 14
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 28 2006
Added on Jun 26 2006
1 comment
153 views