jerry king

Greenhorn
+ Follow
since Nov 05, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jerry king

Dear all,

I have implemented a java client which will send 10 textmessage into the Oracle AQ (10g) with String property set to "cat='A'" with message id start from 1~10, when i try to read the message from the queue by a consumer program (messageListener) with message selector set to "cat='A'", the order of message consuming is not the same as the message sending order.

I have google about the message selector and no ordering issue mentioned, can any please give me suggestion on this ?

Thanks a lot.
Hi,

I am testing the XML publishing feature of Informix 11.5, everything works fine for xml input that without namespace.

My question is if i insert a xml with namespace as follow:

<?xml version = '1.0' encoding = 'UTF-8'?><OMG_O19 xmlns="urn:hl7-org:v2xml"> <MSH> <MSH.1>|</MSH.1> <MSH.2>^~\&</MSH.2> <MSH.3> <HD.1>ABCDE</HD.1> </MSH.3> </MSH> </OMG_O19>

when i try query the MSH.3/HD.1 value by this xpath : /OMG_019/MSH/MSH.3/HD.1, i got null returned.

Can someone kindly test me that where should i put the namespace info inside the xpath? or i need to specify it before i use the xpath to perform query?

Hi,

I have a stateless session bean that will query a db. The db is in primary/secondary design, in order to prevent exception thrown by the db accidentally crash. Is that possible to have a health check before declare the entity manager ?

Please kindly advise on this case
Hi,

I have deployed two application into single OC4J instance. Each application have its own log4j.properties. The funny thing is application A and B will perform logging process specified in application A's log4j.properties. Here is the sample:


Server : OC4J 10.1.3.1
log4j-1.2.15 is add in the shared library

application A
log4j.rootLogger=R
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=/log/Common1.log
log4j.appender.R.DatePattern = '.'yyyy-MM-dd
log4j.appender.R.MaxFileSize=100KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

application B
log4j.rootLogger=R
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=/log/Common2.log
log4j.appender.R.DatePattern = '.'yyyy-MM-dd
log4j.appender.R.MaxFileSize=100KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

only Common1.log can be found, can anyone test me why? Am i missing something ?
Hi all,

I have implementing a web service with only one method, the method have to receive a 'large' xml as input parameter (let say ~60mb ). I have try to use string type, but following error found:

Unable to connect to URL: http://192.168.5.10:8988/ADF-ADFReceiver-context-root/MyWebService1SoapHttpPort due to java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
09/01/21 14:34:26 ; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html


Is there any type (something like inputstream) that can be use as the web service input parameter? Please kinldy advise on this.
Hi all,

I have implementing a web service with only one method, the method have to receive a 'large' xml as input parameter (let say ~60mb ). I have try to use string type, but following error found:

Unable to connect to URL: http://192.168.5.10:8988/ADF-ADFReceiver-context-root/MyWebService1SoapHttpPort due to java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
09/01/21 14:34:26 ; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html


Is there any type (something like inputstream) that can be use as the web service input parameter? Please kinldy advise on this.
15 years ago
Hi,

I am coding the exception handling in side the onMessage(Message message) of a Message driven bean. All exception will be catch in the onMessage(Message message). My question is there any possibility for exception occur before enter the onMessage method? Let say timeout occur during the message is being transfer from the jms to the onMessage method. How can i handle this kind of exception? Please kindly help, thank you.
Hi,

I would like to know how to perform browse mode in MDB for Oralce AQ? I found that there is a sample code in oracle OTN (http://download.oracle.com/docs/cd/B10500_01/appdev.920/a96587/qsample.htm#65833). However, i dont know where should i put those code segment in my MDB, as i am using the annotation to define Queue info as follow. Please kindly help me

@MessageDriven(
activationConfig = {
@ActivationConfigProperty(
propertyName="messageListenerInterface",
propertyValue="javax.jms.MessageListener"),
@ActivationConfigProperty(
propertyName="connectionFactoryJndiName",
propertyValue="java:comp/resource/myProvider/QueueConnectionFactories/myQCF"),
@ActivationConfigProperty(
propertyName="destinationName",
propertyValue="java:comp/resource/myProvider/Queues/EPR_AQ_ADMIN.TEST_MYQUE"),
@ActivationConfigProperty(
propertyName="destinationType",
propertyValue="javax.jms.Queue")
//propertyValue="oracle.AQ.AQOracleQueue")
}
)
hi,

I am try to implement a Message Driven Bean through Jdeveloper 10g. I am try to connect Oracle AQ by this MDB, but i dont know how to specify the connection factory and jms name?

Can anyone help me on this?
15 years ago
Thank you for your reply. When i try to get local interface , i get the following excetpion:
Exception returned by remote server: {0}
javax.naming.NameNotFoundException: ASessionEJB not found

I am using Oracle 10.1.3.1 AS
Hi all,

i have implement two container managed session bean (beanA, beanB), and they are in the same applications. I can call beanA through a client program by following code:
Context ctx = new InitialContext();
beanARemote beanA = (beanARemote )ctx.lookup("beanA");

and i can call beanB through beanA as follow
Context ctx = new InitialContext();
beanBRemote beanB = (beanBRemote)ctx.lookup("beanB");

My question is , if beanA and beanB is in the same EJB container, i can't get the local interface through context.lookup("beanB")? Please kindly advise me on this.....

thank you!!