Melody Siu

Greenhorn
+ Follow
since Nov 06, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Melody Siu

How popular is struts now, in the world of live applications deployed by businesses?

I have heard a lot of reasons to use struts...but sometimes the frameworks have too much below it and when you need customization done, and the hooks for it has not yet be defined....it gets really frustrating....

on the other hand, if you write your own web application processing code using one controller servlet and various view objects for jsp...it's much easier to do customization as the in and outs are all there

well, this is of course assuming that the person struggling to use struts
already has a strong background with http, servlet, and jsp processing...

any comments...
20 years ago
Hi,
I am using xa (under wsad for sql server and embedded mq).
I was able to perform xa transaction successfuly.
However, if i have a rollback happened for a xa transaction follow by another xa transaction, the verify first call to use the db connection
(of the next xa tx) will failed when preparing stmt.
Any idea.
Wendy
4/22/04 12:22:31:506 MDT] 5e945e94 XATransaction E J2CA0030E: Method enlist caught javax.transaction.SystemException: Failed to start the transaction association.
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at javax.transaction.SystemException.<init>(SystemException.java:39)
at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1917)
at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1410)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1381)
...
while trying to enlist resources from datasource myDataSourceJNDIName with the Transaction Manager for the current transaction, and threw a ResourceException.
Hi all,
Got the following error when trying to create connection to a queue
factory, the link exceptin is also included below. The code is working
fine for me but not on another machine where the setup is the same.
Is there something that is bothing mq in wsad....we are using embedded
messaging in wsad 5.1.1.....
Thanks for any input...
../Melody
3/26/04 9:11:00:604 MST] 77317731 FreePool E J2CA0046E: Method createManagedConnctionWithMCWrapper caught an exception during creation of the ManagedConnection for resource THEQUEUEFACTORY, throwing ResourceAllocationException. Original exception: javax.resource.spi.ResourceAdapterInternalException: createQueueConnection failed
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at javax.resource.ResourceException.<init>(ResourceException.java:73)
at com.ibm.ejs.jms.JMSCMUtils.mapToResourceException(JMSCMUtils.java:125)
at com.ibm.ejs.jms.JMSManagedQueueConnection.createConnection(JMSManagedQueueConnection.java:174)
at com.ibm.ejs.jms.JMSManagedConnection.<init>(JMSManagedConnection.java:166)
at com.ibm.ejs.jms.JMSManagedQueueConnection.<init>(JMSManagedQueueConnection.java:64)
at com.ibm.ejs.jms.WSJMSManagedQueueConnectionFactory.createManagedConnection(WSJMSManagedQueueConnectionFactory.java:84)
at com.ibm.ejs.jms.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:477)
at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1280)
at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1064)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java:1571)
at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:622)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:424)
at com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:80)
-----------------------
Next Linked Exception:
com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data
at java.lang.Throwable.<init>(Throwable.java)
at com.ibm.mq.MQException.<init>(MQException.java:859)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:239)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:276)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:296)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:737)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:671)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:452)
at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1659)
at com.ibm.mq.jms.MQConnection.createQMXA(MQConnection.java:1077)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:123)
at com.ibm.mq.jms.MQXAQueueConnection.<init>(MQXAQueueConnection.java:56)
at com.ibm.mq.jms.MQXAQueueConnectionFactory.createXAQueueConnection(MQXAQueueConnectionFactory.java:122)
at com.ibm.ejs.jms.JMSManagedQueueConnection.createConnection(JMSManagedQueueConnection.java:157)
at com.ibm.ejs.jms.JMSManagedConnection.<init>(JMSManagedConnection.java:166)
at com.ibm.ejs.jms.JMSManagedQueueConnection.<init>(JMSManagedQueueConnection.java:64)
at com.ibm.ejs.jms.WSJMSManagedQueueConnectionFactory.createManagedConnection(WSJMSManagedQueueConnectionFactory.java:84)
at com.ibm.ejs.jms.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:477)
at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1280)
at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1064)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java:1571)
at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:622)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:424)
at com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:80)
21 years ago
Try using a class that is in the same package as the xsl file, e.g.
theClass.class.getResourseAsStream("a.xsl")
../Melogy
21 years ago
I encountered the same problem. It seemed to me that the rollback code
make no differences. However, if you simply throw an EJBException when
rolling is intended it seems to work.
../Mel
Hi, I am having some problem (class cast exception) when I try to marshall an object into its xml representation (all the object classes are generated by jaxb that comes with jwsdp1.3) inside an EJB under WSAD 5.1.
I think it's complaining that the object is not a jaxbobject but the object
is implementing that class though.
However, when I try the same code in a web container (Web app) under WSAD 5.1, the problem does not existed.
Any idea?
Mel
Don't use MDB but write your own class to read out from queue and process.
Schedule this process to run periodically.
../Mel
Ok, i fixed the problem already. I have the method name specified reversed.
../Mel
Hi, I am trying to override the default binding of xs ate to java.util.Calendar to java.sql.Date.
The following is what I have added:
<xs:annotation>
<xs:appinfo>
<jaxb:globalBindings>
<jaxb:javaType name="java.sql.Date" xmlType="xs ate"
printMethod="valueOf" parseMethod="toString"/>
</jaxb:globalBindings>
</xs:appinfo>
</xs:annotation>
and I have an attribute that uses xs ate as the type.
I was able to generate using xjc, but the classes generated do not compiled.
Anyone has any suggestion? I have included some of the compiler error below.
../Mel
-------------
public void serializeBody(generated.impl.runtime.XMLSerializer context)
throws org.xml.sax.SAXException
{
context.startElement("http://govt.of.alberta.children.services", "Value");
context.endNamespaceDecls();
context.endAttributes();
try {
context.text(((java.sql.Date) _Value).valueOf(), "Value");
} catch (java.lang.Exception e) {
generated.impl.runtime.Util.handlePrintConversionException(this, e, context);
}
context.endElement();
}
-------------
private void eatText5(final java.lang.String value)
throws org.xml.sax.SAXException
{
try {
_InvoiceDate = java.sql.Date.toString(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
} catch (java.lang.Exception e) {
handleParseConversionException(e);
}
}
Hi, is there any benefit for having the sql.Date object exposed to the web tier after object is retrieved from its persistent storage versus using Calendar object through out except in the block of code that needs to deal with sql.Date (i.e. insert/update sql methods).
Thanks,
Mel
Hi, what is your opinion on...
having one servlet to delegate work for an application, or
each clickable (post/get) of each page goes directly to its dedicated servlet (i.e. many servlet, no concept of a controller)
Also, what is your strategy in terms of saving session information to its minimal...
Thanks,
Mel
21 years ago
I am quite new to this forum myself but am getting to know it better.
Welcome.
First, I would like to know if your book cover much in terms of how we can use web services to support asynchronous messaging? Also, is the limitation of web service in terms of how big the attachment etc.
Thanks,
Mel
21 years ago
Has anyone manage to use jaxb to generate classes for a xml schema (xsd)
inside WSAD 5.1?
I have to manually generate those classes outside WSAD and then move them to my workspace. The ant file used failed to run in WSAD but works fine outside with the latest jwsdp from Sun.
Thanks,
../Mel
Hi, I manage to run the test servlet that comes with JUnitEE as an
Ant task. The summary is spit out to the console. I try to use the xml report to capture the test result but no luck (inside WSAD 5.1).
Anyone has sample ant script to do what I want?
../Mel
21 years ago
Hi, we have a linux box and the mail function is there.
Do you know if this is a smtp server (?) and in particalur i can
use java mail api to send/receive text mail messages?
../Mel
[ January 27, 2004: Message edited by: Melody Siu ]
21 years ago