Using property files into an EAR Project? How?
Hi there,
I'm pretty new to j2ee development, so i hope i'm not asking a silly question.
So what I have done / wanna do:
- I created a ejb module project with several ejbs and several java classes in it
- I created an ear application project to deploy the ejb module project
- I am succesfully deploying my ear on my j2ee server
So after all, I want to load different properties of some java classes through properties files (*.properties). How do I do that in this situation? Is there a way to use properties files altough the whole ejb project (containing the properties files) is packed into one file (the ear file)?
I hope someone can help me an I'm pleased for every message
Thank you all.
Regards
Daniel
poissble with:
getResourceAsStream(String)
Regards
Similar Messages
-
Hi..
I am currently working on Internationalization. I have created property files for the textual content and using PropertyResourceBundles. Now I want to use ListResourceBundles. So what I want to know is..
How to convert Property files into Java Objects.. I think Orielly(in their book on Internationalization) has given an utitlity for doing this. But I did not get a chance to look into that. If anyone has come across this same issue, can you please help me and send the code sample on how to do this..
TIA,
CKHi Mlk...
Thanks for all your help and suggestions. I am currently working on a Utility Class that has to convert a properties file into an Object[][].
This will be used in ListResourceBundle.
wtfamidoing<i>[0] = currentKey ;
wtfamidoing<i>[1] = currentValue ;I am getting a compilation error at these lines..(Syntax error)
If you can help me.. I really appreciate that..
TIA,
CK -
How to use property file - sql query define in property file
Hi All,
Anybody please tell me how to use property file.
I have placed sql query in propery file and I have to access this in my file.
well so far this is my code but don't know how to implement in the following ...
pstmt = con.prepareStatement("select * from registration where username=?");
instead of writting the query I want to use the property file.
so far I have developed the following code...
FileInputStream fis = new FileInputStream("querysql.property");
Properties dbProp = new Properties();
dbProp.load(fis);is the code correct... or is there another way to access property file
Please help.
please reply soon....
ThanksBefore answering, check if it's already been done here http://www.jguru.com/forums/view.jsp?EID=1304182
-
Use properties file out of EAR
HI All,
Generally we create an EAR file with all the property files embedded in it. Here the problem is as and when we change the property files we need to build a new ear file and redeploy to J2EE stack.
Is there any way that this properties file is out of EAR application and changes done to the property file reflects in EAR? So that, no need to redeploy the application again and again. Means dynamic reflecting of property changes to already deployed EAR application. How it can be done?
Actually this is our client requirement also...
Hope am clear.
Regards,
Satish.Hi,
There are ways to achieve this.
I guess you can try following.
You can define properties file in another project (like java project) and then include that project as a reference in your EAR application.
Ashutosh -
Is it possible to Load External SWF files into Flex Mobile projects?
Hi Guys,
I'm trying to load an external asset in this cse (a SWF file) into my flex project (Apple IOS IPAD), don't get any luck. Can any one suggest a solution ?In Apple's words, "No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple's Documented APIs and built-in interpreter(s)".
Hence external swfs cannot be loaded in iOS. -
Someone used upload files into blob in JDeveloper 10.1.3.2 ?
Someone used upload files into blob in JDeveloper 10.1.3.2 ?
I used Steve Muech example 85, but after downloading , downloaded files doesn't work ?
I prepared test case http://www.sttb.pl/jakub/UploadAndDownloadBlob.zip - meybe someone resolve it.
Regards
KubaHi,
There is no problem with download in above example. I have used Steve's example to upload, and solution delivered by Ric Smith on his blog to download files. I think there is something wrong with Steve's uploading solution. When I used Ric solution (he sent me by email complete JDeveloper project) to upload and download everyting works correct. I created last Friday SR on Metalink to review it and it's still in progress. My advice is:
1) Look onto Ric Smith blog:
http://thepeninsulasedge.com/blog/2006/08/17/reading-and-writing-blobdomains-to-and-from-an-adf-uploadfile/
and
http://thepeninsulasedge.com/blog/2006/11/06/adf-faces-and-adf-bc-fileupload-and-blobs-continued/
2) Ask him to send JDeveloper project or update email to your profile - I'll send you directly this project that I retrieved from Ric Smith
Regards
Kuba -
Importing data- using xml file into HANA Table
Hi,
We are using (HDB STUDIO ) - revision 60.......
Is it possible to import data using XML file into HANA table (Master,Fact tables)?
(Without using any intermediate adapters for conversion of data.....)
Can any one suggest us........
Thank you.Hi user450616
I am a bit confused about what you are trying to achieve.
Are you:
1. importing a CSV file into APEX
2. adding an extra column to the Oracle Table
3. populating the extra column with the CSV filename?
Let us know if this is what you are trying to do.
Cheers,
Patrick Cimolini -
How to read values from Property file into BPEL process local variable?
I would like to use a Property file with some parameters e.g.
<myparm1>12345</myparm1>
How can I read from a BPEL process such a Property file and assign it into e.g. local variable "intparm1"?
Where (in which directory) should I put this XML Property file to have it always available for reading?
PeterHi,
You can also use
ora:readFile( ) function as follow :
ora:readFile(xml file location (ex. "file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xml"),xsd file location (ex."file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xsd"))
inside the assign activity and assign this to the variable you want.
regards
arababah
Edited by: arababah on Aug 10, 2009 12:55 AM -
How to use keystore file from native android project.
Android apk upload fails with error 'The apk must be signed with the same certificates as the previous one'.
Out of the frying pan, into the fire.
How to convert .keystore file to .p12 file?"Bobby Digi" <[email protected]> wrote:
Hi,
Is there a way to use .keystore file with BEA Weblogic 6 or 6.1 ?
I used keytool to create private key and public key..
I do not know how to tell weblogic 6 to use it....
Can this be done through the GUI or do I have to add something to the.xml
config file for the site?
Thanks,
Rob
nope. with 7.0 you can do that.
>
> -
How to add static resource file into the NetBean project
I have several static data files(such as icons, images and etc.) need to be loaded by the program. How to add them into the NetBean project?
ThanksTry a NetBeans forum. This is the Java Compiler forum.
-
How to use cab files in jsp & ear
I have a jsp page and a cab file which helps change printer settings.. I have embedded the activex control(cab file) as follows.. Is this ok?
<object id="factory" style="display:none" viewastext
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="ScriptX.cab#Version=5,60,0,375">
</object>
Also where do I place the cab file? I want that the file should be downloaded the first time the user visits the jsp page.You should be able to just bring the files into DreamWeaver. It should edit the HTML part of the JSP just fine.
-
There are some strange problems when i used swc files in my as3 project
Hello everyone,
My development environment: fdk4.0, flash cs5.5, I publish fla file by using flash cs5.5, publish setting is fp version :10.0&10.1 ->swc. I imported swc files to my as3 project and complied them by using flex sdk4.0. When i run my project,fp was crash. when i republished on fp 10.2, the project works. Is there any reason?
another strange problem, for example a MovieClip's aslink named "A" in swc, it has a textfield named "subText". I write code like below:
var mc:A = new A();
mc.subText.text = "test";
when mc called "subText" , fp throws null property error, it can't find subText.. very small number of movieclips have this problem, I sloved this by duplicating a new one and rename it.
but i don't know why ?
thank you for your reply.I should have figured that out from your original post. I think there is a possibility that your bookmarks/history database (places.sqlite) has a corrupted record. Rather than take drastic action on that immediately, could you do a test? The test is to exit Firefox, rename your existing database, and restart Firefox. Firefox should import your last bookmarks backup. You then could check whether the problem remains or whether you got a clean restore of bookmarks. After the test, assuming you prefer to retain your history, you could undo the procedure and try restoring your bookmark backup into the database to see whether that overwrites the problem record. If not, then we would go back to possible drastic action.
'''Test procedure''':
Open your current Firefox settings (AKA Firefox profile) folder using
Help > Troubleshooting Information > "Show Folder" button
Switch back to Firefox and Exit
Pause while Firefox finishes its cleanup, then rename '''places.sqlite''' to something like places_20130614.sqlite. Keep this window open.
Restart Firefox. By design, Firefox should import your last automatic bookmark backup.
If you return to the Library dialog, how does it look?
'''To reverse the test''' (but preserve a backup of your history/bookmark database):
Exit Firefox
Delete the newly created places.sqlite file
Right-click copy and paste the places_20130614.sqlite and rename the copy to places.sqlite
Restart Firefox and open the Library dialog. Should look like it did a few minutes ago before any changes.
''If the test showed no corruption,'' try to restore your last bookmarks backup. The procedure is described in this article: [[Restore bookmarks from backup or move them to another computer]].
Does any of that get us closer to a solution? -
Specify a property file inside a ear file
Hi guys I have this myApplication.ear file.
All the project inside the ear file are using myProperties.properties file.
I have been told that this property file has to be inside the ear file.In websphere 7.0 ,the administrator will specify a jvm classpath like /webAS/installedApps/myApplication.ear/myProperties.properties.During runtime my code will find the property file using this class path
I am using RAD 7.5 to generate the ear file.Can some one tell me how to achieve this.Basically my ear file has to be bundled with the property file.
thanks
mYou might get better results from a RAD forum if you a havent already figured out your issue.
-
Importing WAR file into Web Module Project
Hi,
I am brand new to SAP and i'm trying to help out with a proof of concept for our SAP rollout. I am trying to import a J2EE application that currently runs on WebSphere 5.1 and was developed using WSAD. I found a blog on the SAP site and it gave a simple run down of how to Migrate from WebSphere application server to SAP Application Server.
Here is the link: /people/community.user/blog/2007/03/06/migrating-application-from-websphere-application-server-to-sap-was
The steps seem simple enough yet I am having issues trying to import my WAR file into my Web Module Project in Netweaver.
Step 4 gives the following instructions: Create a WEB Module Project and import the WAR file.
Unfortunately, they do not give more detail besides Import the WAR file. When I try importing my WAR file, it adds the WAR file in my Web Content folder. I was expecting it to extract all my java classes and my jsp files but this is not the case. To do this, I right clicked on my Web Module Project while in the J2EE Explorer view and selected import file and selected my WAR. I'm assuming this is not correct.
Any help would be appreciated.
Thanks,
PhilHi Phil!
You don't need to create previously a web module to import the war then.
I'm assuming you're using NWDS (Netweaver Developer Studio). Try this. In NWDS: File -> Import... ->
then, select "WAR file". After that, you need to inform the path of you WAR file and automatically it will fill in the name of your project, that you can change if you desire. After that, click in Finish and it's all. -
Importing 16 bit file into 24 bit project
Whats up guy's
When importing a 16 bit file into a 24 bit project
should I convert the file to 24 bits or keep the
original 16 bit depth?
I'm aware that the sample rate is converted to the
projects sample rate when importing files as long as
the corresponding checkbox is enabled in the project
settings - assets pane.
I'm also aware that conversion can be done at a later
state after importing, but I'm curious about the best
or proper approach. Should this be done prior to importing
or should the file be kept in it's original state (16 bits)?
PS - If you could provide the chapter or page of the manual
this information is on that would be extremely helpful.
Thnx in advanceQstn wrote:
When you say "alter the file's sample data" are you referring to
edits done in the sample editor or sample rate conversion?
both would qualify. there are some corner cases where bit depth does not matter when destructively editing sample data (as I outlined in my initial post).
If you're talking about the sample editor do you mean converting by
saving a copy as 24 bits and making edits to the copy might show tiny
improvements?
yes.
At this moment I don't intend on destructively editing the file but
you never know how processing and mixing might go until your done.
ok. if your file is read and processed in realtime (or via a frozen track) then there's no loss - logic will convert audio samples during playback to a 32 floating point representation as it is read from disk, before it enters the mixer, or is processed by your plugins.
i'm not sure if source bit depth determines bounce in place format- if so, and if you use this feature, then you should convert the source to 24 bit.
the end point is: unless you are desperate for disk space, just convert it to 24 bits. 16 bits is very 'last millennium' in modern production stages - there are a few exceptions to that (e.g., if the files are used by a software sampler, or if the format is required for compatibility with other hardware or software) but... most of the strong arguments for 16 bit died years ago. so, i'd say it's best to consider 24 bits as the minimum during production unless you have very specific reasons to go below that (and you fully understand the tradeoffs). if you want to know the 'whys', that's fine, of course. curiosity and knowledge don't hurt. if you're only looking for a recommendation, that's my recommendation.
Maybe you are looking for
-
Info Record Not Appearing for all materials in classic scenario.
HI ALL, I am working on Classic Scenario and all the follow-on documents are getting created properly. But the problem is With SOS. Currently i am able to view the info record for only one of my material, I am also referring backend cont
-
My mac firefox toolbar and dock have dissapeared when I click on firefox
Something happened in which both my dock and toolbar at the very top that allows me to view history, bookmarks, tools etc. see the time (File, Edit, Tools,etc) dissapears when I click on firefox. This does not happen in other browsers. How can I fix
-
Ringer doesn't work for calls or SMS, not in headphone. Any ideas?
Tried putting headphone in and out, didn't work also did a reset didn't help either!
-
I have always set my importing preference to aac format and have 4946 songs in my library. I have just searched my hard drive for m4a files and only 1120 show up as this file type. The other 3700 or so show up as MPEG Layer 3 Audio files within the s
-
Boot time for early 2008 MacBook Pro longer after upgrade to Snow Leopard
Hi all, I upgraded to Snow Leopard about 2 months ago and have found my boot times longer ever since - by about 5-10 seconds. Any idea what could be causing this? btw all patches to SL have been applied including the most recent OS update, 10.6.4. Th