Using JAXB with Oracle CEP
Just a tip to anyone looking to use JAXB or other APIs requiring class loading with CEP. Because CEP uses OSGi, you must provide your own class loader to use (in this example) JAXB 2.0. For example:
cLoader = com.mycorp.cep.message.schema.ObjectFactory.class.getClassLoader();+
jaxbCtxt = JAXBContext.newInstance("com.mycorp.cep.message.schema", cLoader);+
UnMarsh = jaxbCtxt.createUnmarshaller();+
The code snippet above demonstrates that before obtaining a JAXBContext object, there must be a separate class loader defined that is not the thread's default class loader. I used the JAXB ObjectFactory class that is generated when processing the schema XSD file.
There's probably other ways to do this, but I found this way to be the easiest solution so far that works.
--Jim L
Edited by: user13107483 on Aug 17, 2010 8:53 AM
I just downloaded JAXB 2.1 EA 2 from java.net
The xjc tool supports these arguments:
-relaxng : treat input as RELAX NG (experimental,unsupported)
-relaxng-compact : treat input as RELAX NG compact syntax (experimental,unsupported)I haven't tested this out yet. Let me know if you try this solution.
Similar Messages
-
Error when trying to use LogMiner with Oracle 8.1.6.0.0
Hi everybody,
I'm trying to use LogMiner with Oracle 8.1.6.0.0. When I execute the following code with SQL*Plus, I have an error.
BEGIN
DBMS_LOGMNR.START_LOGMNR
(options =>
dbms_logmnr.dict_from_online_catalog);
END;
The error displayed by SQL*Plus is:
PLS-00302: 'DICT_FROM_ONLINE_CATALOG' must be declared.
Please, how to solve this problem?
Thanks you in advance for your answers.user639304 wrote:
Hi everybody,
I'm trying to use LogMiner with Oracle 8.1.6.0.0. When I execute the following code with SQL*Plus, I have an error.
BEGIN
DBMS_LOGMNR.START_LOGMNR
(options =>
dbms_logmnr.dict_from_online_catalog);
END;
The error displayed by SQL*Plus is:
PLS-00302: 'DICT_FROM_ONLINE_CATALOG' must be declared.
Please, how to solve this problem?
Thanks you in advance for your answers.Looking at the 8.1.7 doc set (the oldest available on tahiti) I get no hits when searching for 'dict_from_online_catalog'. Searching the 9.2 doc set turns up a reference. Looks like you are trying to use an option that isn't available in your version of Oracle. -
Using Tuxedo with Oracle Real Application Clusters (RAC)
Hi all ,
Our present Producation environment is Tuxedo8.0 with Oracle 9i as database .
We are planning to implement oracle RAC .
Can any one tell us , with the current tuxedo version which is 8.0 ,can we for RAC Or we need to upgrade Tuxedo to 9.1 for RAC Implementation?
If anyone has Implemented Tuxedo and Oracle with RAC successfully
Pls share your experience.
Thanks In Adavance
Nadeer .Subbu,
As I mentioned earlier in this thread, support for Oracle RAC has been
implemented in Tuxedo 9.1 and in the Tuxedo 8.1 and Tuxedo 9.0 rolling patch
streams. There are no plans to backport this feature to Tuxedo 8.0. If you
plan to use RAC transactionally and if it is possible for multiple services
that could be located on different RAC instances to be accessed in a single
transaction (which will be true for most applications), then you should
upgrade to a version of Tuxedo with support for Oracle RAC. The
documentation at http://e-docs.bea.com/tuxedo/tux91/ads/adorac.htm#248431
gives an overview of RAC support in Tuxedo.
Ed
<Subramonian Arumugom> wrote in message news:[email protected]..
Hello Nadeer, Hello Ed,
Has the implementation of Tuxedo8.0 with Oracle RAC was completed
successfully ?.
If it is done , I have few doubts. Could you please help me ?.
1) I hope your Tuxedo middleware connects to the oracle Database using
Oracle XA resource manager and the TMS server built using buildtms with
oracle as RM .As per the mail from Ed, migration of Tuxedo9.1 should be done
before moving to Oracle RAC.
Also from BEA documentation, Oracle RAC support was given as new feature in
Tuxedo9.1.
Our Application uses Oracle RM to connect to Oracle DB[ Oracle 10g] from
Tuxedo8.0. So do we need to upgrade to Tuxedo9.1. for using Oracle RAC ?.
Thanks for your help
Best Regards
Subbu
#9880278452
Edited by subramonian.a at 04/16/2007 12:15 AM
Edited by subramonian.a at 04/16/2007 12:19 AM
Edited by subramonian.a at 04/16/2007 1:37 AM
Edited by subramonian.a at 04/16/2007 8:20 AM -
Using XA with Oracle ERP application
Hi,
We have two Tuxedo Domains that we need to establish global transaction:
First Domain - Tuxedo 6.4 with Oracle 8.0.6 database.
Second Domain - Tuxedo 6.4 with Oracle ERP application (Oracel version 8.0.5)
A Client that calls a Tuxedo server in the first domain this service doing some work
on the database and then calls another service in the second domain (using Domain
connection).
The service in the second Domain activate a Oracle API (package) from the ERP application.
The Rollback works but we problem with the commit. We recieve the following Oracle
Error - ORA-06574: Function "VIEW_ALL" references package state can not execute remotly.
Revital Bloom
[email protected]Subbu,
As I mentioned earlier in this thread, support for Oracle RAC has been
implemented in Tuxedo 9.1 and in the Tuxedo 8.1 and Tuxedo 9.0 rolling patch
streams. There are no plans to backport this feature to Tuxedo 8.0. If you
plan to use RAC transactionally and if it is possible for multiple services
that could be located on different RAC instances to be accessed in a single
transaction (which will be true for most applications), then you should
upgrade to a version of Tuxedo with support for Oracle RAC. The
documentation at http://e-docs.bea.com/tuxedo/tux91/ads/adorac.htm#248431
gives an overview of RAC support in Tuxedo.
Ed
<Subramonian Arumugom> wrote in message news:[email protected]..
Hello Nadeer, Hello Ed,
Has the implementation of Tuxedo8.0 with Oracle RAC was completed
successfully ?.
If it is done , I have few doubts. Could you please help me ?.
1) I hope your Tuxedo middleware connects to the oracle Database using
Oracle XA resource manager and the TMS server built using buildtms with
oracle as RM .As per the mail from Ed, migration of Tuxedo9.1 should be done
before moving to Oracle RAC.
Also from BEA documentation, Oracle RAC support was given as new feature in
Tuxedo9.1.
Our Application uses Oracle RM to connect to Oracle DB[ Oracle 10g] from
Tuxedo8.0. So do we need to upgrade to Tuxedo9.1. for using Oracle RAC ?.
Thanks for your help
Best Regards
Subbu
#9880278452
Edited by subramonian.a at 04/16/2007 12:15 AM
Edited by subramonian.a at 04/16/2007 12:19 AM
Edited by subramonian.a at 04/16/2007 1:37 AM
Edited by subramonian.a at 04/16/2007 8:20 AM -
Using OCCI with Oracle XA Library
Is it possible to use OCCI with Oracle XA Library?
the XA function xaoSvcCtx() can returns the OCI service handle
for a given XA connection. but how to convert it to the OCCI
Connection class?
any comments would appreciate
RayHi Ravi,
We are now building CORBA application with C++. some programs
manage transaction through Transaction service(a TM of X/OPEN
DTP architecture), these programs must use XA Library.
OCCI is a wonderful tool for C++ programer,with OCCI building
a persistent layer over ORACLE is very simple.
But if OCCI not work with XA we have no choice but PRO*C or
OCI ,which's actually C style tool and hard to use especially
in object mode.
So we hope OCCI can provide this feature in next release. and
I beleive This feature is necessary,It's very common using a
transaction monitor such as ORACLE Application Server .
regards,
Ray -
Using Mts With Oracle Database
I m building Com using Visual basic.I have made them transactional using MTS.first i have firstly user Sql Server database.the components are working properly.but when i
have made back end as Oracle the Trasactions
fails. if i make them not Mts object then it will function properly. I have read article from microsoft site "Using Mts with Oracle".acc to them a file named XA80.dll should be on ur system on which mts is runing.I have made a database server and a client on which Mts is installed.But XA80.dll
was not found. whats the problem .tell me solution if anyone can.
i have installed OEM GUI which installs XA80.dll on ur system.but when i tested microsoft test program which checks weather ur Oracle supports Mts or not fails at the end. When calling XA_Open_Entry it gives error with return code -3
Plz tell me Solution
Thankx in advance
nullHi,
Oracle JVM in 11gR2 (the latest release) supports Java 1.5 only. So no, you won't be able to load classes compiled with target class level 1.6 into DB. But you surely may explicitly set target class level of 1.5 in javac and then load compiled classes. Or you may not use 1.6 features in your code and then CREATE JAVA SOURCE from it. -
Using psp with oracle text.
we are design a simple document management application using psp with oracle text.
we can query on index and finding the record and display the result on browser page.
but we can't take document link on the same browser page. So we can't take document itself.
We are using Oracle database release 1 text
Thanks for your help.Sorry. The correct one is http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/text.920/a96517/acase.htm#620714
-
Using jfreechart with oracle forms 11g
Hi everybody,
I'm using jfreechart with oracle forms 11g to continue having graphs in my application since i'm migrating from forms 6i. I've already got it working and it's great. Just have one problem left. I don't know how to change the axis labels. In Bar charts, it comes with "Values" in y axis and "Category" in x axis by default. I wanted to change that or make it dissapear. Anyone knows how to?I've never used the jFreeChart, but according to their website you can use the "setLabel" method to set the label for an axis. Check out Axis (JFreeChart Class Library) for more information.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
How to use JAXB with web services
Hi All,
I am new to JAVA WS and read the sun jee tutorial on JAX-WS and SAXB. Now I can create simple JAX-WS passing simple parameters. Now I want to create a service which take java bean as a parameter or returns a java bean (complex type). I think this is where JAXB should come. However I can understand JAXB seperately, but still could not find how JAXB is work together with my web service. Could someone help me or point to a simple tutorial/example on using JAXB with JAX-WS. Or simply a tutorial that use Complex data type in JAX-WS.
Thanks
Nalaka
Edited by: nalakayoyo on Mar 27, 2008 11:39 PMHi,
When you are using JAX-WS, there is a tool wsimport, with which you are going to generate the artifacts required to implement the web service.
When you pass the WSDL as a parameter to the wsimport tool, it will be create the required beans also(JAXB Objects).
So need of any other external implementation of JAXB when you are working with JAXWS
Thanks, -
Can we use WebUtil with Oracle Forms 6i
Can any one tell me if we can use WebUtil with Oracle Forms 6i..I have 11.5.9 instance of oracle apps and i want to use some features of WebUtil to customize one of seeded Oracle Form.
Any pointers in this regard are quiet welcome.
Thanks,Strictly speaking no...however you could "backport" the webutil code and in theory you could get some of the functionality to work - this is not supported in the context of oracleForms although Oracle Applications may have their own specific solution/certification of this.
Regards
Grant Ronald -
Problem while using XML with Oracle
I have a problem using XML with oracle applications
The process I am following
1. Making a XML string.
2. Parsing it to get a document
3. Free the parser using xmlparser.freeparser
4. Traversing through nodes .
5. Freeing the document.
The whole Process is executed in batch mode.
The problem occurs after executing the procedure for 5000 records and I get the error
ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
heap","library cache")
Can you please help me out to overcome this problem
It's urgent
I have
Oracle version 8.1.7.0.0
XML version 1.2
OS Windows NT
To resolve the problem I have increase shared memory size and java initialization parameters ,which seems OK
Looking forward for your answer.Hello, Reena
Your process flow seems to be correct in term of getting/freeing memory.
Following error
The problem occurs after executing the procedure for 5000 records and I get the error
ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
heap","library cache")may be caused by memory leaks in xdk or memory fragmentation(due to get/free memory cycle)
To find out if this is an memory leak issue you could try to monitor V$SGASTAT from one session while running your batch process in another session.
To prevent (or lower its impact) fragmentation issues try to PIN objects, and adjust java_pool_size and shared_pool_reserved_size.
Anyway, counsult your Oracle DBA.
Oracle version 8.1.7.0.0I think, you should apply database patch first of all. The latest one (8.1.7.4.x) could be accured from Metalink. -
Issues with using utl_http with Oracle Wallet
Hello Everyone,
We are experimenting with Oracle wallet and utl_http and are attempting to do an https transfer and we are facing some problems. I will appreciate your help greatly if you can advise on what could be wrong. We are on db version 10.2.0.1 and Unix HP-UX. The intention ping an https url and get a simple 200 response. Future development would include get/post XML documents from that url and other interesting stuff. I understand that utl_http with Oracle wallet can be used for this purpose.
The wallet has been created and the ewallet.p12 exists. We downloaded the SSL certificate from the url's website and uploaded into the wallet.
Everything works if I put in a url with plain http. However, it does not work with an HTTP*S* url.
With HTTPS when I run the below code I get the following error. Again, greatly appreciate your time and help because this is the first time we are using Oracle wallet manager and do not know where to go from here.
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1029
ORA-29268: HTTP client error
declare
url varchar2(225);
req utl_http.req;
resp utl_http.resp;
my_proxy BOOLEAN;
name varchar2(2000);
value varchar2(2000);
V_proxy VARCHAR2(2000);
v_n_proxy varchar2(2000);
v_msg varchar2(100);
v_len PLS_INTEGER := 1000;
BEGIN
-- Turn off checking of status code.
utl_http.set_response_error_check(FALSE);
--Set proxy server
utl_http.set_proxy('my-proxy');
utl_http.set_wallet('file:<full Unix path to the wallet on DB server>','wallet998');
req := utl_http.begin_request('https://service.ariba.com/service/transaction/cxml.asp');
--Set proxy authentication
utl_http.set_authentication(req, 'myproxyid', 'myproxypswd','Basic',TRUE); -- Use HTTP Basic
resp := utl_http.get_response(req);
FOR i IN 1..utl_http.get_header_count(resp) LOOP
utl_http.get_header(resp, i, name, value);
dbms_output.put_line(name || ': ' || value);
END LOOP;
utl_http.end_response(resp);
exception
when others then
dbms_output.put_line(sqlerrm);
END;I tried this using plsql ...
declare
SOAP_URL constant varchar2(1000) := 'http://125.21.166.27/cordys/com.eibus.web.soap.Gateway.wcp?organization=o=WIPRO,cn=cordys,o=itgi.co.in';
request UTL_HTTP.req;
begin
dbms_output.put_line('Begin Request');
request := UTL_HTTP.begin_request(SOAP_URL,'POST',UTL_HTTP.HTTP_VERSION_1_1);
dbms_output.put_line('After Request');
exception
when others then
dbms_output.put_line('Error : '||sqlerrm);
end;The output was ...
Begin Request
Error : ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1029
ORA-12535: TNS:operation timed outIt seems to be an issue with the webservice, plz check if its available & allowing requests. -
Using JDeveloper with Oracle 10g Express Edition
Hi,
can JDeveloper 11g 11.1.1.4.0 Studio Edition be used to develop applications connection with Oracle 10g Express Edition?
If not, is there a version downloadable that can?
TIAYes, it can.
John -
Using Java with Oracle Spatial
I am using the JDBC (Java classes dowloaded from
technet.oracle.com - (sdoapi.zip)) together with Oracle Spatial
8.1.6. I am writing a collection of Linestrings into Oracle
Spatial using the supplied java classes(sdoapi.zip). I use the
function createGeometryCollection(myCollection)to write the
Linestring collection to Oracle Spatial and they are written to
the database without error. However, when I try to read the
object back I get the following error:
Exception in thread "main"
oracle.sdoapi.geom.InvalidGeometryException
at oracle.sdoapi.adapter.AdapterSDO.importGeometry
(AdapterSDO.java:101)
at
MapInfoToOracleSpatial.MapInfoToOracleSpatial.main
(MapInfoToOracleSpatial.java:211)
I do not have a listing of this code so can you please tell me
what the error is (line of code) at line 211. Also, when I use
the Oracle Spatial Index Advisor to view the spatial data, it
only displays a quarter of the data. When I use MapInfo to view
it's equivalent TAB (Table) file it views correctly all the
data.
I can't understand why this is happening because the writing to
oracle and creation of each individual linestring does not
throw an error. It is only when I try to read back larger
objects from the database (2500 points) that it gives an error.
Is there a limitation on the size one can create linestrings?
Thanks
Regards
Stephen Syrett
Mobile Telecommunications Network
(MTN) South AfricaLatest Oracle Openworld Spatial/MapViewer activities list:
http://www.oracle.com/us/products/database/options/spatial/ssLINK/oow10-focuson-spatial-169204.pdf
thanks
LJ -
Using cvs with Oracle Repository
I was just wondering if you can use cvs with the Oracle Repository.
No, the Repository would be used instead of CVS.
David
Maybe you are looking for
-
I just set up a second email account on the same iPad but cannot seem to see, read or send email from the second account.
-
HP LaserJet 2100TN and MacOS 10.4.2
May wife and I have been using our HP LaserJet 2100TN since a couple of years, originally with her blue/white iBook and my PowerBook Titanium, and since this spring with her 12" PowerBook G4 (867MHz, 768 MB of RAM, MacOS 10.4.2) and my 17" PowerBook
-
Post down payment with different currency from request with F-48
Hi all, I have a problem when I try to post a vendor down payment with the transaction F-48. The down payment request currency is EUR but I want to do the payment with USD. If I put in the field Currency/Rate USD the transaction F-48 show the message
-
Changed BIOS settings, Monitor won't turn on (Help with resetting CMOS)
Hello, I have an HP Envoy 700 PC Series. Running Windows 8. Everything was working fine, until I changed/disabled some settings in the BIOS, an dnow the PC turns on without any display. I need to reset my Bios settings. I tried removing the CMOS batt
-
Exchange rates Gand B in Purchase order
Hi, while doing P.O the exhange rate will come from exhange rate type M, now my client wants when they do IMPORT Purchase order the exchange rate has to take fro exchange rate type G(bank buying rate) and while doning Export P.O the exchange rate has