Accessing/Writing/Reading Tape/Compact Discs from Java
Hi,
Does Java provide any API for reading/writing files on Tapes/Compact Discs?
Or is there any repository or API for the same?
Ud highly appreciate to any pointers for the same.
TIA,
Regards,
Prashanth Babu.
From Unsupported Features and APIs:
Unsupported Feature
Alternative
Remote invocations with a transport protocol other than HTTPS (including plain text HTTP).
Not applicable.
One alternative could be to create a web service that you can call from JCS.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/
Similar Messages
-
How to Read a CAB File from JAVA?
Hi,
Anyone knows how to read a CAB File from java. I need to read a property file of txt file that is packaged in CAB file & then based on that, I have to do processing. Is there anyway to do it.
I had tried using java.util.zip.ZipFile Class, but it does work for JAR, but not for CAB.
siva.Perhaps there's something in the Cabinet SDK that will help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncabsdk/html/cabdl.asp -
Accessing user_tables and user_tab_columns of oracle from java
hi, i can not access "user_tables" and "user_tab_columns" from java code while i can access them from TOAD.I connect to the database "HR", which is a sample database of oracle, as "normal".When i write:
@Entity
@Table(name="user_tab_columns")
public class USER_TAB_COLUMNS{
}it gives an error that user_tab_columns could not be found on the database.What can i do to access these tables from code?I think you have posted your question in the wrong forum. Try the [JDBC forum|http://forums.sun.com/forum.jspa?forumID=48].
-
Query: accessing of shared variables of Informix from JAVA
Can i access the shared variables of Informix from my java program.
Please provide links or reading stuff if anyYou can use the error-cluster to detect the end of your queue. The erroroutput of the shared variable will return a -2220 Warning, if it reads a value it has read already before. I attached a modified example and saved it for 8.2 I hope you can open it.
Attachments:
readbuffered82.zip 51 KB -
How to access data structures in C dll from java thru JNI?
We have been given API's( collection of C Functions) from some vendor.
SDK from vendor consist of:
Libpga.DLL, Libpga.h,Libpga.lib, Along with that sample program Receiver.h (i don't know its written in C or C++), I guess .C stnads for C files?
Considering that I don't know C or C++ (Except that I can understand what that program is doing) & i have experience in VB6 and Java, In order to build interface based on this API, I have two option left, Use these dll either from VB or Java.
As far as I know, calling this DLL in VB requires all the data structures & methods to be declared in VB, I guess which is not the case with Java (? I'm not sure)
I experiemnted calling these function from Java through JNI, and I successfully did by writting wrapper dll. My question is whether I have to declare all the constants & data structures defined in libpga.h file in java, in order to use them in my java program??
Any suggesstion would be greatly appreciated,
Vini1. There are generators around that claim to generate suitable wrappers, given some dll input. I suggest you search google. Try JACE, jni, wrapper, generator, .... Also, serach back through this forum, where there have been suggestions made.
2. In general, you will need to supply wrappers, and if you want to use data from the "C side" in java, then you will need java objects that hold the data. -
Is there any way to read Windows NT Event Log from Java?
Thanks
Wilson Pusee http://www.javaworld.com/javaworld/jw-09-2001/jw-0928-ntmessages_p.html
-
Error in reading sp(Oracle 9i) from java.
Hello,
While I am reading sp,it returns a result set,in java an error is occuring.Anybody can help me for solving this problem.I am attching the java code,error message and procedure below.
import java.sql.*;
public class CallOracleProc
public static void main(String[] argv)
Connection conn=null;
ResultSet rs=null;
CallableStatement cstmt=null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
conn=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.56:1521:hpcl","uday","uday");
cstmt = conn.prepareCall("{? = call PKGMORTGAGEAPP.sproc_GetRates}");
cstmt.registerOutParameter(1, oracle.jdbc.driver.OracleTypes.CURSOR );
cstmt.executeUpdate();
while (rset.next())
str += rset.getInt(1)+" "+ rset.getInt(2)+" "
rset.getString(3)" "+rset.getInt(4)+" "+rset.getInt(5)+" "+rset.getInt(6)+"\n";
rset.close();
cstmt.close();
conn.close();
catch(Exception e)
System.out.println("Exception in connection"+e.getMessage());
Erro message is
Exception in connectionORA-06550: line 1, column 28:
PLS-00306: wrong number or types of arguments in call to 'SPROC_GETRATES'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
The procedure is given below
Create Package Body PKGMORTGAGEAPP
AS
PROCEDURE sproc_GetRates (rateCursor out typeRateCursor)
IS
BEGIN
OPEN rateCursor FOR SELECT * FROM tblMortgageRates;
END;
PROCEDURE sproc_CreateApplication
(fullName in VARCHAR,
propertyValue in NUMBER,
downPayment in NUMBER,
rateID_ in NUMBER,
isRateLocked in NUMBER,
isPreApproved in NUMBER,
insertResult out NUMBER
IS
BEGIN
INSERT INTO tblApplications
VALUES (fullName, propertyValue, downPayment, rateID_,
isRateLocked, isPreApproved);
insertResult := 1;
EXCEPTION
WHEN OTHERS THEN
insertResult := 0;
END;
END pkgMortgageApp;
BIPIN.VPrabhu wrote:
We are not able to connect from SQLplus as we.. If i issue this command in Sqlplus from client machine 'sqlplus admin/admin@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<Ip Adddress>)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))'' it was throwing the below error.
Error: ORA-12541: TNS:no listener
Do i need add get any config details in the client machine..
Could please tell me what is the general procedure to access the DB server from client machine..on DB Server issue following OS commands
lsnrctl start
lsnrctl status
lsnrctl service
COPT commands & results, then PASTE all back here -
How to access methods in existing dll file from java
I have a dll file and that file contains two methods.
Now I would like to access those two methods in java program.
How to access these methods.
Give me the sample code for this problem.http://forum.java.sun.com/thread.jspa?threadID=757125&tstart=0
-
Reading Forms Key Mappings from java bean - how ?
I want to be able to invoke key trigger code in a Forms 10g run-time from a java bean (extends BeanWrapper) either by:
a) using inherited method calls passing the KeyEvent retrieved from my listener, or
b) dispatching a custom event from the bean with a parameter value which identifies the key trigger to process (not the key code & modifier string).
On a), I've not been able to identify any method in the BeanWrapper hierarchy tree that might help me do this, and samples like (http://forms.pjc.bean.over-blog.com/categorie-465294.html) seem to imply that no such method exists.
In terms of b), the oracle.forms.engine.KeyMapTable class seems to be what I want (seems to translate the KeyEvent into a FormAction/string using server settings), but getting a hold of this object through (oracle.forms.engine.Main)getHandler().getApplet() doesn't seem possible.
How are others invoking eg: key-crerec from a Forms 10g bean component in a way which is sensitive to server key mappings ?
Thanks in advance for your help.I have no experience with KeyEvents in Forms, but if the KeyMapTable class really is the solution, can't you just instantiate one yourself.
Looking at the constructor it only needs a single argument, the oracle.forms.engine.Runform class. You should be able to get a handle on it with:
IHandler hander = getHandler();
if (handler instanceof UICommon) {
UICommon u = (UICommon)handler;
// u.getDispatcher() should get oracle.forms.engine.Runform
}Not sure if it will work, but you can give it a try.
I love pushing the PJC and Oracle Forms applet to its limits. Not really sure if Oracle intended the PJC framework to do stuff like this, but it sure would have helped if they have JavaDoc about the oracle.forms.* classes -
Error code -200088, accessing DAQmx read function in fncB from fnc A
Hi,
I am using NIDAQ 6229, and C code.
My c code is as follows:
#define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
int main()
TaskHandle aiTaskHandle;
// and the variables whatever used in the API's declaration below done here and initialised
DAQmxStartTask (aiTaskHandle);
DAQmxErrChk (DAQmxCreateTask("AI Task",&aiTaskHandle));
DAQmxErrChk (DAQmxCreateAIVoltageChan(aiTaskHandle,AIChannelList,AINameList,DAQmx_Val_RSE,0.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxCfgSampClkTiming(aiTaskHandle,"OnboardClock",AIRate,DAQmx_Val_Rising,DAQmx_Val_ContSamps,AISamplesPerChannelAcq);
while(1)
fncB( );
fncB( )
DAQmxErrChk (DAQmxReadAnalogF64
(AITaskHandle,DAQmx_Val_Auto,timeOut,DAQmx_Val_GroupByScanNumber,AIReadArray,AIarraySizeInSamps,&AISampsPerChanRead,NULL));
This Code builds without errors and runs. But the problem is with calling the fncB( ) where the DAQmx read for aiTaskHandle is executing.
The DAQ read works fine for one time, but in the second call of fncB it gives error " task specified is invalid or does not exist" with error return code: -200088.
why for the second call , the task specified becoming unknown is not yet all clear.
the ni error codes document doesnot list this error code yet all.
i have tried in declaring aiTaskHandle variable global, then in the first time of calling fncB it gives the error as mentioned above.In my application i cant use DAQRead in the same function where i declared the taskHandle , so i have to call it from the function.
Does some body help in calling the DAQread from another function, and why this task is becoming invalid for the second call,.
Thanks ,
vishnu
Message Edited by gkvishnu on 10-12-2005 08:10 AMI found where does my error come from.
I configure my task from a other function and call this callback to start acquisition (get partly from NI examples)
I get the error on the Start_AI_Clk(taskAIClk); call.
int CVICALLBACK AI_TrigStartCallback(int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
int32 error=0;
char Chaine[500],Chaine1[500],ChaineFormateur[500];
int32 numRead;
float64 *data=NULL,*dataMoy=NULL;
int i,j,Checked;
double LocValeurLue,TempsDebut,TempsTotal,TempsEnCours;
long int NbMesTotale = 0;
FILE *TempFile;
if( event==EVENT_COMMIT ) {
if( (data=malloc(NbMes*NbChanAIClk*sizeof(float64)))==NULL ) {
MessagePopup("Error","Not enough memory");
goto Error;
TempsDebut = Timer();
TempsTotal = TempsDebut;
TempFile = fopen("TempoResult.txt","w");
Start_AI_Clk(taskAIClk);
ProcessDrawEvents();
gRunningTrig = 1;
while( gRunningTrig )
DAQmxErrChk
(Read_AI_Clk(taskAIClk,NbMes,data,NbMes*NbChanAIClk,&numRead));
ProcessSystemEvents();
/*data treatment*/
TempsTotal = Timer() - TempsTotal;
fprintf(TempFile,"Temps total:%.3f - Nb Mes totales : %d",TempsTotal,NbMesTotale);
fclose(TempFile);
Error:
if( DAQmxFailed(error) )
TraitErreurCarteDAQmx("Lecture AI horloge externe",error);
if( taskAIClk!=0 ) {
Stop_AI_Clk(taskAIClk);
if( data )
free(data);
return 0;
What happen is when I click on my start button, my function is executed
once before a EVENT_COMMIT came, so it jumps directly to the Error part,
then as the taskHandle is not null, it stop the task
if( taskAIClk!=0 ) {
Stop_AI_Clk(taskAIClk);
Then it executes the if(event==EVENT_COMMIT) part and as the task has been stopped, it give the -200088 error code.
To correct this, I change the Error treatment like this:
if( DAQmxFailed(error) )
TraitErreurCarteDAQmx("Lecture AI horloge externe",error);
Stop_AI_Clk(taskAIClk);
Yop!
DanY -
How to read xml node content from java[ urgent]
My tag is
<person1> a="hello">
<person><first>Steve</first></person>
</person1>
I want if i read <person1> tag then it store its inner content in a string.
i.e my output should be
<person><first>Steve</first></person>Hi, parse the file using dom.then print out the root tag.you will have to strip the indentation this way.or you could use sax.
-
Read Synchronous interface data from Java Stack
All,
I am working on a report to report synchornous timeouts to the management. Though I can see the synchronous messages for classical and ICO scenarios in message monitoring. I cannot find those messages using msg_id i get from message moniroting audit_log in bc_msg or bc_msg_audit table.
Can someone let me know from which table can I pull this information.
Thanks.I tried to analyse this, did a poc and what i found was.
When i was creatingan Asynchronous ICO and running it. An entry was getting created in bc_msg table.
But
When i was creating a Synchronous ICO and running it. No entries were created in bc_msg table. I have also tried after enabling the logging and storing using the "user scenario specific configuration" option, still no luck. No entries were found in bc_msg table.
I too wonder where the information will be stored.
Regards
Osman -
Accessing XI Tables (ABAP Stack) from Java code
Hi,
IS it possible to access tables like SXMSPMAST, SXMSPEMAS directly from Java code without the use of any RFC or BAPI in between?
Cheers,
EarlenceI think it is technically possible, as you can get access to the JDBC Connector service using J2EE's JNDI feature ... Then you can use the internal DB datasource to read data from tables (read ONLY, cuz I'm not sure it is a good idea to update data "outside" the box, and reading can also have potiential perf or stability issue) ... Some (better) methods can also exist !
Chris
Edited by: Christophe PFERTZEL on Jan 15, 2010 3:07 PM -
Are there any APIs to access user personalization data from java
Hi gurus,
We want to access personalization data for a user from java using API. This includes user mapping also.
If you are aware of any api please let me know.
Thanks in advance.
Regards,
Pratik ThakkarHi Pratik,
You can also retrieve a system object and get the user mapping for the system:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
iCtx = new InitialContext(env);
ISystem pcdSys =(ISystem)iCtx.lookup(sysId);
ISystemUserMappingData um = pcdSys.getUserMappingData(request.getUser());
From this object you can get the user, password and other properties.
As for personalized values of iView attributes, you can an environmental value before create the initial context to indicate to return personalized value, as follows:
env.put(IPcdContext.PCD_PERSONALIZATION_PRINCIPAL, request.getUser());
Hope this helps.
Daniel -
How to edit the existing data in the XML file from java programming.
Hi all
i am able to create XML file with the sample data as below from java programming.
i need sample code on how to edit the existing data in the XML file?
for example
<?xml version="1.0"?>
<mydata>
<data1>
<key1>467</key1>
<name1>Paul</name1>
<id1>123</id1>
</data1>
<data2>
<key2>467</key2>
<name2>Paul</name2>
<id2>123</id2>
</data2>
</mydata>
i am able to insert the data in the XML.
now i need sample code on how to modify the data in the above XML file from the java programming for only key2,name2,id2 tags only. the remaining tags data in the XML file i want to keep same data except for key2,name2,id2 which are i want to modify from java code
Regards
Sunil
[points will be always rewardable]hi
u need a parser or validate the xml file for to read the xml file from java coding u need for this
xml4j.jar u can download this file from here
http://www.alphaworks.ibm.com/tech/xml4j
or we can use the SAX(simple API for XML)
some sample applications for this
http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
http://www.developertutorials.com/tutorials/java/read-xml-file-in-java-050611/page1.html
http://www.xml-training-guide.com/e-xml44.html
let me know u need any other info
bvr
Maybe you are looking for
-
I will PAYPAL 100 bucks to the person who can help me with 5510 issue
Below is a on going chat i am having with a PIX expert... Can anyone see where the problem is when you read the message below??? Cisco ASA 5510 configuration for host inside private network Question: We have a Citrix host behind a new 5510 that needs
-
Error while executing webgui service
Hi All, I have created a R/3 system(system object, system alias) in portal and maintained the ITS properties. When i am testing the connection for the ITS its working fine. When i am trying to execute the servie "webgui" in R/3 system by using the T-
-
"Document type" in access sequence not working in free goods
Dear All, our requirement is to provide free goods with the main items in portal. for this i defined access sequence 1.Customer/Material and 2. SalesOrg/Documnet Type/Material. for access sequence Customer/Material it's working fine but when i use S
-
How to erase some of the pictures in photo stream
How to delete some of the pictures in photo stream?
-
I have tried several different Facebook covers I created in PSE 13 and cannot upload any of them to Facebook. I have authorized PSE to be able to post to my Facebook account and the App Settings are correct. I am able to post videos from Adobe Premi