Jay Shaw

Greenhorn
+ Follow
since Jun 20, 2001
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 Jay Shaw

Amir,
pardon my ignorance, but when you said persistent queues and deploy them runtime, won't these queues expire once I recycle the server for some reason. How do I deal with such situation? Also, I am not trying to build a chat application, this is for a user interactive forum kind of application. we can take this offline if you are interested to know more about what I am trying to achieve. Let me know your email address and I can send you a detail description. Maybe this will help give you a clear picture.

Thanks
Yes, I need to be able to create queues on the fly, meaning when either a "user" join my application, i should be able to create a queue for him in case the user wants to initiate a private conversation with an "agent". Once he initiates the private conversation with an agent, I can subscribe that agent to that queue and they both can continue conversing.
So your solutions seems interesting, but I thought JMS api only lets you create temporary queues which caanot be deployed on JMS server at runtime and which expire once the session ends. Can you elaborate a bit on your suggestion or any sample code would really help. Also I was a bit confused with your discussion with "naming", wasn't sure if you are talking about JNDI naming for those newly created queues..

Thank you for your time
GS
Hello all,
I am trying to find a solution for a problem I have. My application is initially setup with a Topic where all my agents and users can post messages where everyone receives those msgs. Now my agents and users have to added/removed dynamically, meaning I want to be able to make them dynamic durable subscribers/publishers. I want to be able to create a queue between an agent and a user for private communication "on-the-fly" when an agent wants to communicate to a user in private and vice-versa. Also would be nice to have the feature of sending offline messages from/to either of them (I know this is what durable subscribers does) but not sure how to create on the fly persistent queue connections on JMS server and let the subscribers/publishers connect to this queue. I could later delete the queues if I wanted to, but would like to be persistent queues which should not die after my connection is lost. This is what I thought of, but if you guys think of any alternate solutions, please share with me..

I always wondered how IM systems like yahoo messenger works if one were to create a similar system using JMS with offline messaging, 1 to 1 and group messaging capabilities.

TIA
GS
Hi all,
I am trying to write a new class to wrap my Date object which takes millisecs. This class is somewhat similar to the java.sql.Time class which does almost the same thing what I wanted to do. But the problem is I dont want to use java.sql package. So i wanted to create this class which basically should wrap my Date object and set the date to zero epoch and give me just an object with hrs:mins:secs and not full date. I could'nt write this as most of the constructors in Date are deprecated. Is there any way I could set the date object to zero epoch and get what i wanted? Please help. I have a dead line today. I am stuck here. How can I set my date to zero epoch and just return an object of type Time.
Thanks in advance
Jay
22 years ago
Hello,
Can anyone help me on this? I have a JTable with 3 columns in which my 3rd column should hold multi line cells. Now I created a custom cell renderer extending JTextarea and did wordwrap and line wrap. I also did a setCellRenderer to my third column. But somehow when I have a long string passed into that cell, it only appears as a single line where i can see only partial string.
Could someone send me some code snippets regarding this like the cell renderer code and the iteration code which is used to get the max row height.
really appreciate it,
Thanks
Jay
22 years ago
Hello Michelle,
I also encountered the same kinda problem. I tried doing what you said, but some if i have a small text the row height for that row is very large. And if i have a long text in my text area cell renderer then i the text in that cell is not showing up as multiline but only shows a part of the text in a single line, though the height is set as previous cell. I am kinda confused if my logic is any different.
Could you send me some code snippets regarding this like the cell renderer code and the iteration code.
really appreciate it,
Thanks
Jay
22 years ago