Chetan M

Ranch Hand
+ Follow
since Dec 18, 2002
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 Chetan M

Hi,

What would be the max length of the MQ generated Message Id and that of JMSMessageId.

Thanks in advance,
Chetan


Value has a value only if its value is valued by you
14 years ago
Hi,

What would be the max length of the JMSMessageId that is been generated by the JMS.
Actually, i want to store this ID in db, to set the size for the field, i need the max length of the JMSMessageId.

Any links or references to this would be helpful.

Thanks in advance,
Chetan


Value has a value only if its value is valued by you
[ December 21, 2005: Message edited by: Chetan M ]
Hi,
Portal users entity,property_key and property_value tables to store all data. My requirement is to store a value of 3000 charecters in property_value table in the portal application. Property_value table has TEXT_VALUE COLUMN of datatype varchar(254) and BLOB_VALUE of datatype blob to store images and bin data(very large data). How do i store, value of length 3000 charecters. Is it possible put it in BLOB_VALUE column and retrieve it back.
Thanks in advance.
Chetan
16 years ago

Originally posted by Reginald Law:
...
public static void main(String [] args) {
George myGeorge = new George();
charlie z = myGeorge;
z.m1();
}
...


Yes Reginald, variable 'z' is a reference to the interface charlie.

Originally posted by sergiu truta:
If you throw an exception from inside onMessage(), the container will know that it has to put the message back into the Queue.


which exception should be thrown. throwing JMSException will do??
of any other exception has to be thrown.
Sergui, am not throwing any exception instead, loging msg to file n console in the case as shown below.
public void onMessage(Message msg)
{
....
Transport.send(message);
}
catch(JMSException ex)
{
LogTrace.info(ex.getMessage(),ex);
}
catch(SendFailedException sfex)
{
LogTrace.severe(sfex.getMessage(),sfex);

}....
}
If inside onMessage() i throw an exception, are you sure that message is put back into the queue? and any specific exception to be thrown ?
Suppose a process puts a message in queue and say a mdb receives it and sends a mail to say client.
Now if during mdb is sending message, any exception occurs, message is not sent. Then what will happen to the message. What will be the queue state, Will the unsent message be sent back to the queue, If not how can that be achieved.

Originally posted by Lasse Koskela:
..the message you just read from the queue won't be put back. You need to throw an exception...


Well Lasse, i am throwing an exception, but doing nothing with the message. How do i populate queue with the unsent message?.
I am working with Weblogic 7.1 and using JMS.
I have a component which populates the Queue with messages and a MDB which send messages to the client. Now the problem am facing is,
One Component puts messages in queue, and mdb (onMessage()) called and it tries to send mail. Now suppose smtp(mail) server is down for some reason. So no message delivary takes place. Now when the mail server is up again, unsent messages (which i suppose are recollected by messengin service and kept in queue)are to be sent again.Sending of unsent messages is not happenning. How do we achieve this.
Hope anyone has usefull hint for this issue.
Thanks in advance

Originally posted by Harjinder Singh:
[QB]Hi Harjinder,
Congradulations and All the best wishes and luck for your future endevour.

16 years ago
Hi,
Congradulations Roger !! and good luck for future
Regards,
Chetan M
[ September 08, 2003: Message edited by: Chetan M ]
17 years ago
Hi Vidya,
When you say taglib attributes not taking expression value, first that comes to mind is tld file rtexprvalue tag value.
Your .tld file should contain
<rtexprvalue>false</rtexprvalue>
For example, say your taglib attribute is content,
then for the same, entry in your tld file should be
...
<attribute>
<name>content</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue></attribute>
...
Please change your .tld file and see it works or not.
Its better to have rtexprvalue tag value always set to true.
Hope this helps.
[ May 06, 2003: Message edited by: Chetan M ]
17 years ago
JSP
Very good example Rajeshwari.
[ March 23, 2003: Message edited by: Chetan M ]
Congradulation Kai
17 years ago