Help coderanch get a
new server
by contributing to the fundraiser

Reena Kher

Greenhorn
+ Follow
since Jun 08, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Reena Kher

Originally posted by Pradeep Bhat:
Pass the locale to the getBundle method.



no luck !
i am really stuck up!
Yeah, i tried using that also -

java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("general");

I got following exception -
java.util.MissingResourceException: Can't find bundle for base name general, locale en_US
[ July 20, 2004: Message edited by: Reena Kher ]
didn't work

i put the property file at top level one level up meta-inf. Secified it in the class path of the manifest. But when i use following statement from a java code -

InputStream in = this.getClass().getResourceAsStream ("general.properties");
properties.load(in);

I get NullPointerException!
HI,
I want to keep a property file in an ear at a common location so that the ejb jar and war both can use it. I tried putting it in meta-inf directory (along with application.xml). then i specified the path in the classpath of manifest. it didn't work

where do i keep the common peoperties file?
Hi all,
I have a question abt tx management. I have a session fa�ade layer that talk to an intermediate layer. This layer talks to entity beans. A method in session fa�ade calls a method say addCustomer() in intermediate layer. This is a hypothetical example. AddCustomer() method talks to 2 entity beans. A customer and a address bean. It first calls create on customer and then create() on address bean. Now if there is any exception while create() call of address, I want to rollback create on customer. I can always do that by calling remove on customer bean. However, I want to know is there any std way to handle such transactions. I can not use tx attribute �required� for addCustomer() method as it not a method of session fa�ade , rather it belongs an intermediate controller class. So how can I use container managed tx (CMT) in such a case? Is there any std pattern to do this?

Any help would be appreciated.

Originally posted by Naren Chivukula:
Hi,

Can u please tell where exactly we use the following and how these differ? JMS, JavaMail and Message driven beans?

Thanks and Regards,
Narendranath.



don't u think this is to generic question to ask? What do u exactly want to know about these technologies? And I guess, the forum (EJB) inwhich u posted is also wrong.