gaurav abbi

Ranch Hand
+ Follow
since Jan 05, 2007
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 gaurav abbi

Hi,
I am trying to use JNDI with activeMQ as described in the link.

ActiveMQ JNDI Support

I am able to create a static queue (it is being displayed in the admin webpage under queues) and want to access it through JNDI, but after giving all the proper values it does not show up on the JNDI Context in the JMS Client.
Only the lookup is giving me "ConnectionFactory" and I am able to send and recieve the messages for dynamic queue, but lookup fails for the static queue.

I also verified that the jndi.properties is coming in the classpath by changing the wrapper.conf
wrapper.java.classpath.1=/home/gauravabbi/softwares/activeMQ/apache-activemq-5.5.0/customize/jndi.properties

and verified the same in the start up logs.

It looks like activemq is not using it at all as the factory names, i am specifying are also not coming up.

below is my jndi.properties file
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url=vm://localhost
connectionFactoryNames=connectionFactory1, queueConnectionFactory, topicConnectionFactry
# queue.[jndiName] = [physicalName]
queue.MyQueue=MyQueue.queue
# topic.[jndiName] = [physicalName]


Kind of stuck at this for a long time.

I am using ubuntu 10.04 and running activeMQ/apache-activemq-5.5.0/bin/linux-x86-32/activemq script to start activemq
does java mail API uses streaming? where can i get the source code to confirm this.
also i am tryign to send the mail using raw and non-raw mode.
in raw mode i can pass an input Stream to MimeMessage constructor:


In Non-raw mode, i have to do the following
Since there can be any mime type, so i have to use DataHandler and DataSource. Since the DataSource interface contracts says of providing the fresh inputStream everytime we invoke getInputStream(), we need to keep the data in the byte[] which will throw OOM for large size or documents Is there a way to avoid this?

11 years ago
no jetty 6.x doesn't support. Yeah I'm talking about clustering.
i want to implement Session Replication logic in my HTTP Server.
12 years ago
hi,
can anybody help me on this?
12 years ago
hi,
I'm working on a server which uses jetty as an embedded server. i want to incorporate Http Session Replication functionality into it. I tried googling for it, but all i got is how to use this functionality provided by various open source servers like tomact, jboss etc.

can anybody help me on like what all a server side should do to implement session replication.
Currently I'm aiming at Database level persistence.

any relevant links will also be helpful.
12 years ago
hi, can anybody suggest me a way to take heap dump, which can help me to analyze and debug memory leak.
i tried jmap, but that information is not very helpful for me.
13 years ago
hi,
i want to add security to a RMI client server scenario.
what i means is when a RMI call is made by the client, the server should be able to verify the authenticity of the client.
is there any APIs available for this?
13 years ago
hi all,
if a server is sending back a 102 status code( processing), does it mean that server is sending an interim response and then a final response on the same connection.
i'm not very sure about this. also googling is not giving any concrete results.
can anybody help me on getting a clear view of what this status code actually means and what the server and client should do to implement this.
13 years ago
hi,
is there a way by which i can run a executable jar as a Windows service.
then i don't need to keep my commnad line window open as long as jar is running.
13 years ago
hi,
can we modify an existing jar file with ant.
is there any ant task available for this.
modifications is like adding a class file to a jar.
13 years ago
hi Peer,
there's something wrong with the site.
i can't see any of posts for this topic except the previous one posted by me
13 years ago
i tried adding a policy file, but i'm getting the same error i was getting before that.



there must be some way to specify the security token for decrypting a soap response because i'm able to add tokens for signing, signature verification and encryption.
but no code sample is available for decryption in a .Net client.

here is my policy file.


here is a part of soap response


i'm using the same token in policy file.
[ May 14, 2008: Message edited by: gaurav abbi ]
13 years ago
hi all,
this may not be the right place to ask this question, but i believe a java web service developer must have done this.
i've a web service written in java.
i'm testing its interoperability with .Net.
i'm able to sign, verify signature and encrypt using a .Net client.
the only point where i'm stuck is decrypting a soap response using .Net client.
i'm not finding any code sample for this on google.
also don't have much knowledge of .Net APIs
the MSDN topic for decryption is for web service part not for client part
please provide me some link or pointer if some one has done this earlier.
i'll be extremely helpful.
13 years ago
hi all,
i need urgent help.
can anyone give me some hint about deploying a rmi service using JBOSS.
13 years ago
hi,
i have a rmi service running which is binded with these environment variables
java.naming.provider.url=blriedlin03:19014, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces

when i try to invoke the same using a RMI client and using "jbossall-client.jar", it works fine.

but when i replace the url with the one using ipv6 address, it fails.
with a timeout

The code snippet is:


java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://[fe80::213:72ff:fe3c:21bf]:19014 java.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces
java.net.preferIPv6Addresses=true
java.net.preferIPv4Stack=false


its a dual stack machine, with host name mapped to ipv4 address.

My first question is does jboss supports IPV6?
if yes, then what am i missing here which is causing me the failure?
13 years ago