Skip to Content
author's profile photo Former Member
Former Member

How to use a resource bundle in EJB ?

Hi all,

I am trying to do the captioned task. However, when I package and deploy it using the deploy tool, it simply won't add the resources file to the <ejb>.jar or <ejb>.ear. Does anyone try this before?

Thanks in advance.

Best Regards,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 30, 2003 at 03:12 PM

    Hi Jacky,

    I have some questions regarding your problem. If you can answer them I can give you better answer otherwise I'll supply some generic answer. Here are the questions:

    Which version are you using ? Web AS 6.20 or 6.30?

    When you use the Deploy tool to make the jars and assemble the ear did you add the resource files in the Files/Additional Files tab or you expect they to be included automatically?

    In general the resource files have to be added explicitly, there is no easy way to find them and to decide automatically how to include them in the archives automatically. To include the files just select the archive node in J2EE Components Tab, and then select the Additional Files (6.20), Files (6.30) tab to view the current files that will be included in the archive and change them.

    To add a file:

    6.20 ? From Files Panel just use browse button to navigate to file location and press add. You can change the place where the file will be located in the archive in Map Name field; by default it is in the root of the archive. If there are more then one resource files in one folder you can add them by selecting Directories node in the Files? tree and browse the directory. Again you can set a Map name, which specifies where in the archive this directory will be copied.

    6.30 ? The same procedure ? the difference here is that the Bean classes also have to be explicitly specified; in 6.20 we tried to analyze the information in bean?s descriptor and the classpath but we?ve got too much special cases from developers and left the responsibility to them.

    To add a file in an Ear the procedure is nearly the same - just select the EAR node in the Assembler tab and select the files as described above. In 6.20 the files panel is different but I believe you want have problems using it.

    File content can not be changed in Deployer tab.

    If you have more questions or problems for this issue I can contact you via e-mail.

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.