Help coderanch get a
new server
by contributing to the fundraiser

Tirthankar Dutta Chaudhuri

Ranch Hand
+ Follow
since Feb 26, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tirthankar Dutta Chaudhuri

Hi ,

I need to generate a url dynamically with the values coming from bean .
I have written the following code

[CODE<logic:iterate id="user" name="users">
<TR>

<TD><html:link page='/AddUser.do?userid='>
<bean:write name="user" property="userId" />
</html:link>

<bean:write name="user" property="userId" /></TD>
<TD><bean:write name="user" property="userDescription" /></TD>
</TR>
</logic:iterate>
[/CODE]

But its getting tranlated to

but i want something like <a href="/App54_Prototype_UI/AddUser.do?userid=PSS011"</a>

Please let me know what changes i need to make to my code .

Tirthankar
16 years ago
Hi ,

I am working on a ESB exception handing framework .I need to expose method which accepts a java.lang.Exception as input parameter . Say method signature will be anything like public void handle(Exception ex) . I am using apache axis in RAD . Is there any way of doing it .

Thnaks ,
Tirthankar
16 years ago
There are a lot of examples online jst have a look at them .
The sample code send msg to a topic jst modify it accordingly .
The only part that critical is the jndi properties.

hope this helps .
Thanks,
Tirthankar
There are a lot of examples online jst have a look at them .
The sample code send msg to a topic jst modify it accordingly .
The only part that critical is the jndi properties.

hope this helps .
Thanks,
Tirthankar
Hi,
i need to send a message to a queue in generic jms provider in websphere ,
But i not getting the jndi lookup . what will be the provider url .
I have both the application server installed in my local host.
Thanks ,
Tirthankar
Thanks ,
yes message listners are one on the options . but they have some problem in working in clustered envoirenment. so i was thinking of doing it this way.
Hi,
I need a JMS mesage receptor which listens to particular topic . I have put the a infininite loop.

Is the implementation ok . The message will be sent to message handlers which will inturn invoke buisness services . which are resource intensive and may take long time .So should i call the handlers from a thread in the handlers . Please suggest me some way to do it .

Thanks and regards,
Tirthankar Dutta Chaudhuri .
Hi ,
when implementing a queue receiver and a topic receiver i find a diffrence . When i use queueReceiver.receive() for a queue i get all the messages which have been put in queue.
But when i do the same thing in a topic subscriber.receive().
i dont get the messages which had been earlier unless i create a durable subscriber .
Can any one tell me the reason .

Thanks ,
Tirthankar
Hi ,
i am using WAS (websphere application server ) 6.0 and IBM websphere MQ 5.3. My message driven bean is giving the following exception .
thanks in advance .
Tirthankar Dutta Chaudhuri .


1/30/06 11:10:48:699 IST] 00000038 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "onMessage" on bean "BeanId(TestMdb#MDB.jar#MyMDB, null)". Exception data: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:456)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Caused by: java.lang.ClassCastException: ejbs.MyMDBBean
at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:809)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:614)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:581)
... 8 more
hi,
thanks for the prompt reply . well i need it for logging .
yes we get it from a stacktrace .
Thanks,
Tirthankar
18 years ago
Hi,
is there any method by which i can know a particular fuction has been called from which class.
For eg

In method called i want to know from where is method called .
Is there any way to do that .
Thanks,
Tirthankar
18 years ago
hi,
my application needs an abstraction over log4j . so we are using jakarta commons logging . But the problem is that we need diffrent appenders for diffrent modules . Is there any way that we can use appeneders from jcl . or is there any way that we can specify more that one appenders in log4j properties file .
Thanks in advance.
Tirthankar Dutta Chaudhuri
I am looking to use websphere application server feature dynacache in hibernate. Other than implementing org.hibernate.cache.CacheProvider and org.hibernate.cache.Cache, what else do I need to do? Can anybody please help me in this regard? Also, I am bit puzzled on the configuration settings to be done in WAS in this regard.
Hi,
i need to implement a ErrorManager . Which is a singleton class . The client programs would register the listners of the expected Errors .
I am storing all the listners in Vector . If listner for a particular error is registered it wont be added again . Now the problem is that if i have more than one client who register the same listner and one of then removes the listner then the listner gets removed . Is thre any thing that i can do to prevent that . Please suggest me something .
18 years ago
class TrickyTest {

public static void main ( String args [ ] ) {
int i = 10 ; // line 1
i = ++i ; // line 2

i = i++ ; // line 3
System . out . println ( i ); // line 4
}
}


The output of the follwing code is 11 . Logically it should be 12 . Can any one help .
Thanks in advance.
Tirthankar Dutta Chaudhuri