How to get a EAR package for deploying without local data-source setting in JDev9i?
Hi all,
I want to use pooled data-sources defined in OC4J's global configuration setting directory in JDEV_HOME\j2ee\home\config.
But when I packaged my application to an EAR file,it contains it's local data-sources.xml file in the package.Each time the server was restared,the local data-sources.xml file was overwritten by the originally setting in the EAR package,thus I cannot use the pooled settings.
So could let me know how to package a EAR file without containing it's local data-source setting,but use the global data-source setting?Or how to control the local data-source setting without changed after mannully defined.
Your reply is greatly appreciated!
Regards,
Robbin Woo
Mike,
You don't need a File to do what you want. Even if you could, it would be wrong to use a file.
It would be wrong, because the compiler might not by using a JavaFileManager that is actually backed by a filesystem. It could be backed by some form of repository such as a database, or it could be backed by a transient in memory file system ( An example of the latter is the [annotation processor test framework|https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/package-summary.html] in hickory)
But probably of more interest to you, you don't need to because you can simply [get an InputStream|http://java.sun.com/javase/6/docs/api/javax/tools/FileObject.html#openInputStream()] from the FileObject returned from [filer.getResource(...)|http://java.sun.com/javase/6/docs/api/javax/annotation/processing/Filer.html#getResource(javax.tools.JavaFileManager.Location,%20java.lang.CharSequence,%20java.lang.CharSequence)] and read it.
You might also find the [Compiler Tree API|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/index.html] useful. The Compiler Tree API is available to annotation processors running in Oracle's (Sun's) javac, but not in other compilers (possibly limiting portability).
With this API you can [convert |http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html#getPath(javax.lang.model.element.Element)] the Element representing the annotation to a Treepath then [get the leaf node|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/TreePath.html#getLeaf()] and from that tree [obtain its offsets|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html#getSourcePositions()] within the source file.
Bruce
Similar Messages
-
SSRS CatalogItem method not working for deploying a shared data source
I have been working with the SSRS CreateCatalogItem method to deploy reports to a SSRS 2012 in SharePoint integrated mode with SharePoint Server Enterprise 2013. I am using Powershell. The CreateCatalogItem method works fine when I deploy RDL files,
but fails when I deploy an RDS. I get an rsInvalidXML1400 error, whatever that is. Here is a cut-down version of my code to establish the bare essentials:
[String] $reportserver = "server20";
[String] $url = "http://$($reportserver)/sites/AdventureWorks/_vti_bin/reportserver/reportservice2010.asmx?WSDL";
[String] $SPFolderPath = "http://server20/sites/AdventureWorks/BICenter/Data%20Connections/";
[String] $fileFolder = "C:\SiteBackups\BIReports\BIReports\";
[String] $itemName = "AdventureWorksCube.rds";
$ssrs = New-WebServiceProxy -uri $url -UseDefaultCredential;
$warnings = $null;
$itemPath= $($fileFolder + $itemName);
$definition = get-content $itemPath -encoding byte;
try
$ssrs.CreateCatalogItem("DataSource", $itemName, $SPFolderPath,$False,$definition,$null, [ref] $warnings);
catch [System.Web.Services.Protocols.SoapException]
$msg = $_.Exception.Detail.InnerText;
Write-Error $msg;
I have a workaround whereby I read the XML of the data source file directly and extract the ConnectString and Extension elements then use the text within them to create the data source using the DataSourceDefinition class. My point is not to get a workaround.
I want to establish that the CreateCatalogItem method indeed does not work when used with the ItemType "DataSource". In the code above, if I change the itemType i.e. first parameter of CreateCatalogItem to "Report" and change the $itemName
to the name of an RDL file, it deploys correctly. Has anyone else encountered this behavior or am I doing something wrong here?
Charles Kangai, MCT
author of the following Microsoft Business Intelligence courses:
http://www.learningtree.co.uk/courses/139/sql-server-analysis-services-for-business-intelligence/
http://www.learningtree.co.uk/courses/134/sql-server-integration-services-for-business-intelligence/
http://www.learningtree.co.uk/courses/140/sql-server-reporting-services/
http://www.learningtree.co.uk/courses/146/sharepoint-business-intelligence/
Charles Kangai, MCTHello,
We can invoke the SSRS proxy endpoint (ReportService2006.asmx)from PowerShell to publish report definitions (.rdl) and report models (.smdl) to a SharePoint library, but this does not apply to data source (.rds) files.
In order to deploy .rds to SharePoint library without using SSDT, you should convert the .rds file to its .rsds counterpart which is pretty contains same content but in different schema.
If you want to fully automate your deployment, you should write your own converter and perform the deployment by utilizing SharePoint feature framework and SSRS proxy endpoint (ReportService2006.asmx).
Please refer to the following blog about this issue:
PowerShell:Deploying SSRS Reports in Integrated Mode
Deploying Reports in Integrated Mode
Regards,
Fanny Liu
If you have any feedback on our support, please click
here.
Fanny Liu
TechNet Community Support -
How to change the safety interval for 0FG_DO01- Special ledger data source
Gurus,
Is there a way to change the safety interval for SAP Standard Data source 0FG_DO01(safety Inteval).
I am only able to display it in RSA2 and not change.
Appreciate your immediate assistance.
Thanks,
Ravi AananthuniYou can view it in RSA2. However you may need to update table ROOSOURCE to change the value of safety interval upper and lower limits.
Thanks,
Ravi ananthuni -
There are links on the pages for various Cummulative Updates for SQL Compact v3.5 SP2 which look to relate to the desktop version, but are these also available for Windows Mobile devices? If so, what is the process to get hold of them?
We are seeing intermittent problems with corrupted databases on devices which are using SQL Compact v3.5 SP2 and have seen that some of the Cumulative Updates do relate to corruption and would like to see if these can help to solve the issue.Just select the KB article, at the top of each there is a link to request a hotfix, you will then get a email with a download link. The 8088 and 8109 hotfixes also apply to Windows Mobile.
http://erikej.blogspot.dk/2010/08/sql-server-compact-35-sp2-downloadable.html
Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com -
I downloaded the US version in Thai and the interface is in Thai script - I checked the general agent locale and it is set to English US. How do I get an interface I can read ?
== This happened ==
Every time Firefox opened
== I downloaded the US version in ThailandSee:
*https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
*http://kb.mozillazine.org/File_types_and_download_actions
Current Firefox versions remember the download directory based upon the URL, so if the URL changes then the default folder may be chosen if there hasn't been selected a download folder before for that server.
You can disable this feature to remember the download directory via the Boolean pref <b>browser.download.lastDir.savePerSite</b> on the <b>about:config</b> page.
The browser.download.lastDir.savePerSite pref doesn't exist by default (it is a hidden pref), so you need to create it.
Create a new <b>Boolean</b> pref with the name <b>browser.download.lastDir.savePerSite</b> and set the value to false.
* http://kb.mozillazine.org/about:config
You can delete the content-prefs.sqlite file in the Profile Folder to only remove settings stored in this file and keep the exceptions that are stored in permissions.sqlite that would be lost if you clear the "Site Preferences" via Clear Recent History. -
Hi,
Can anyone describe me how to create package(not database package) for deployment in oracle forms 10g?
Thanks in Advance
Baloch.hi
example:
PACKAGE test IS
END;
/*Define package body procedures */
PACKAGE BODY test IS
PRODEDURE register_libs IS
BEGIN
/* Load the test library */
testlib_lhandle := Ora_Ffi_.load_library
('c:\orawin95\oralibs\','testlib.dll')
END;
PROCEDURE define_c_funcs IS
getresult_fhandle Ora_Ffi.Funchandletype;
foo_handle Ora_Ffi.Funchandletype;
BEGIN
/* Register the info for function getresult */
getresult_fhandle := ora_ffi.register_function
(testlib_lhandle,'getresult');
/* Register the info for function foo */
foo_fhandle := ora_ffi.register_function
(testlib_lhandle,'foo');
/* Generate PL/SQL package containing all
functions defined in test library */
ora_ffi.generate_foreign
(testlib_lhandle, 'test_ffi_pkg');
END;
END;check out the following PDF file i hope you will get idea and hope this helps u.
http://download.oracle.com/otn_hosted_doc/forms/forms/A73152_01.pdf
sarah -
How to download a business package for ESS and MSS?
hi folks,
could anyone tell me how to download a business package for ESS and MSS ? any reference material on the same would be appreciated..
thanks
aditiHi aditi
You can get it from service market place.Follow the below specified path.
https://websmp203.sap-ag.de/swdc -> SAP Installations and Upgrades -> SAP Application Components -> SAP ERP ->
SAP ERP 2004 -> SAP Business Packages -> Portal Content ->
Entry by Component -> Portal Content ->
BP ESS (ERP 2004) 60.2 -> #OS independent ->
BPERP4ESS0_0-10003146.zip.
Unzip that zip file to get the BPERP4ESS01_0-10003146.sca file. Deploy this file via SDM.
You can get refernce material in
https://www.sdn.sap.com/irj/sdn/developerareas/contentportfolio
Also check these links below:
https://websmp203.sap-ag.de/ess.
http://kwhelp.sap.com/SAPIKS/Sc03c90b8d952479cb6d30c4ce66c8b8e/KW/IWB_STRUCT21D0EB3B19C10401E10000000A114084/IWB_EXTHLP1CD0EB3B19C10401E10000000A114084/?LANGUAGE=EN&RELEASE=50_2003_Q4&IWB_INDUSTRY=EP_CONTENT&IWB_COUNTRY=&TMP_IWB_TASK=DISPLAY
http://kwhelp.sap.com/SAPIKS/Scd39acba0a12454691a37c1e41deaeeb/KW/IWB_STRUCT9B33383FDB800804E10000000A114084/IWB_EXTHLPE033383FDB800804E10000000A114084/?LANGUAGE=EN&RELEASE=642&IWB_INDUSTRY=&IWB_COUNTRY=&TMP_IWB_TASK=DISPLAY
Hope this helps.
Regards
Yoga -
How to make jar files availabe for deployed EJBs
Hi,
I'm interested on how to make jar files availabe for deployed EJBs.
My EJB is packed in an ear. It uses a util jar. I now just add the jar to the
classpath, but I think that shouldn't be the way. Is there somthing in the admin
console to make jars available or do I have to insert it in the ear file? And
if so, where do I hve to place it?
Thanks
ClaudiaPut the util.jar in the ear with your ejb jars - at the same level (i.e. in
the root) - but do not include them in the manifest.xml.
Also each ejb jar that refers to util.jar must have util.jar on its internal
classpath in the manifest.
"Claudia" <[email protected]> wrote in message
news:3d537db5$[email protected]..
>
Hi,
I'm interested on how to make jar files availabe for deployed EJBs.
My EJB is packed in an ear. It uses a util jar. I now just add the jar tothe
classpath, but I think that shouldn't be the way. Is there somthing in theadmin
console to make jars available or do I have to insert it in the ear file?And
if so, where do I hve to place it?
Thanks
Claudia -
How to get javax.servlet package
Hi guys
Does anybody know how to get javax.servlet package?
Thanks in advance.
Regards,
Mark.I just moved the servlet jar into java_home/jre/lib/ext and I made some progress. Instead I recieved this error
---------- Javac ----------
Note: C:\jdk1.3.1_04\bin\java\lang\ThreadGroup.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
Normal Termination
Output completed (17 sec consumed).
DOes anyone have an idaea of what would cause this when it had compiled normally before?
THanks Bruce -
How to get the last error for while loop?
How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.
What do you mean by "get" and "transfer"?
If the shift register is not what you want, use a plan tunnel instead.
Typically, programmers are interested in the first, not last, error.
Can you show us your code so we have a better idea what you are trying to?
LabVIEW Champion . Do more with less code and in less time . -
How to get title templates library for CC?
How to get title templates library for CC? Do you have to download and install PP 6 to get them?
Try here Library, title templates, template projects missing: Premiere Pro, After Effects, Encore
-
How to get balance sheet report for profit centers
hi
how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for thisHi,
You can use T. code KE5Z for actual line items.
More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
In selection, you can give ledger name which is generally 8A for profit center ledger.
Reg -
I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?
anyonr know how I can get my money back????????Go to Settings>General>Reset>Erase all content and setting. Then re-setup the iPod with your account/media. To redownload iTunes purchases see:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
How to get 64 bit version for premiere elements 12
How to get 64-bit version for Premier Elements 12 ?
I download from ADMISY site.
Click on win 64 bit and download it.
When I try to install ther is a error this download version is not for 64 bit I have try many times but same resultHello
I have been away some days
ADMISY is a software partners for Adobe
I running Win 7 Home Edition
I have received a card with a code when I bought the program and the I
download from ADMISY
Sending serial and installation warning
PhotoshopElements_12_WWEFDJ.7z
PhotoshopElements_12_WWEFDJ
PremiereElements_12_WWEFDJ_win32.7z
PremiereElements_12_WWEFDJ_win32
I can not find a 64 bit version of 32-bit or 64-bit version of downloads
This is information I have
Best regards
Erling Magnusson
2015-02-04 22:33 GMT+01:00 Adobe Forums <[email protected]>:
How to get 64 bit version for premiere elements 12 created by A.T.
Romano <https://forums.adobe.com/people/A.T.+Romano> in *Premiere
Elements* - View the full discussion
<https://forums.adobe.com/message/7162950#7162950> -
How to get the depreciation areas for an asset in particular period
Hi frndz,
how to get the depreciation areas for an asset in a particular period for writeup or manual depreciation method.
Thanks and regards.
Harisumanth.ChTry table ANLB, then read ANLC.
Regards.
Maybe you are looking for
-
After upgrade System fail to boot
Hi, few days ago I did the system upgrade and after reboot i get several errors and the system doesn't boot, the first one in the list is: FATAL could not load "/lib/modules/3.0-ARCH/modules.dep" no such file or directory I think the problem is that
-
Add a link to page option with flash animations??
Hello, I see that you have an option for images if you insert an image, you have a link to html page option But if you insert a flash animation , there is no link option? as some research i have found that I have to do it i flash itself. Why did you
-
How-to set pre-specified time for amplitude measurement vi?
In acquiring data at 100 Hz, I'm writing this to file while using the Amplitude & Level measurement VI to decide when the data has peaked. I've built arrays to accumulate the data but I don't see a simple timing scheme to continue this for one or fiv
-
I have a pair of M01061 USB DVI Adaptors and they both connect fine to my Windows 7 laptop. However, if I drag a Browser window, IE, Firefox, Chrome etc into a Lenovo adaptor monitor, the browser freezes. Same with any playing Videos. Dragging them
-
Thread Pool Executor ( Runnable Class Executing another Runnable Class )
Hi Folks, I have my main class called ThreadPoolExecutorUser. I have two Runnable classes called XYZ and ABC in ThreadPoolExecutorUser class I execute the Runnable class XYZ. Which inturn executes Runnable class ABC. The problem is that the Runnable