Ankit Bhandari

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

Recent posts by Ankit Bhandari

Dear friends,
I am trying to find out a way to read SIP port inside init() method of a servlet. I have a scenario where SIP Port used by container is not a default one (5060), in one call scenario i need the SIP PORT on which container listens. Please provide you inputs, i appreciate any help provided.

Thank you
Regards,
Ankit Bhandari
12 years ago
Hi All,
I am trying to deploy RAR file ( ResourceAdapter file ) & EJB JAR file ( Message Driven bean file ) together on my sailfin(Glassfish) server. Can you please help me in getting it done. Is there any common file that i can created using these two RAR & JAR file, and can deploy only that file.

I appreciate any help provided.

Thank you
Regards,
Ankit Bhandari
Hi All,
I am trying to deploy RAR file ( ResourceAdapter file ) & EJB JAR file ( Message Driven bean file ) together on my sailfin(Glassfish) server. Can you please help me in getting it done. Is there any common file that i can created using these two RAR & JAR file, and can deploy only that file.

I appreciate any help provided.

Thank you
Regards,
Ankit Bhandari
Hi Frends,
I am trying to send Out-Of-dialog REFER through a Sip servlet. I am using sailfin, do we have sample code that i can take as reference and start with. I tried by changing sample code provided by sailfin, in place of INVITE i tried sending REFER, but it is throwing error.

Can you please point me to some example were refer is sent OOD.


Thank you
Regards,
Ankit Bhandari
Tim,
Thanks for your reply. As you suggested, will it be okay to invoke a listening socket from container. Or i can make container to listen on a socket and deliver raw buffer to some servlet.


Thank you
Regards,
Ankit Bhandari
13 years ago
Hey Abhay,

I have one doubt regarding invoking service method. As you said, "When ever a message is received on port 7080, control goes to service() method " . Can you please help us in doing this. I am not able to invoke service from there.

Thank you
Regards,
Ankit Bhandari
13 years ago

Abhay Agarwal wrote:Welcome to Java Ranch !!!

you can write a Generic Servlet which will have 3 methods

a. init()
b. service()
c. destroy()

In init() method, you can write code which listens to port 7080
When ever a message is recieved on port 7080, control goes to service() method where you can construct sip message using the caller-callee information. Then control can be forwarded to SIPServlet with required information
In destroy() method, you can discontinue listening to port 7080 (closing the socket)


~ abhay




Thanks a lot Abhay !!!

I have one doubt regarding the approach you suggested. As per specification of jsr289 and container manual, it says we should not spawn a new thread from servlet, as container manages the thread pool ( Please Correct me if i am wrong.
1. Will it be okay to spawn a thread from init ?
2. The thread that gets spawned through init() is container thread or an independent thread ( How can i verify this by looking at thread signature ...).


Thanks you
Regards,
Ankit Bhandari
13 years ago
Hi All,
I am very new to the servlet concept. I am trying to write an application which takes input (Non SIP non HTTP) on a socket & then converts it into SIP. Here is a scenario ....

1. My application will be listening on a socket say for example 7080 and will receive message.( Message simply contains To and from user name)
2. A generic servlet will get invoked which will construct a sip message using the caller-callee information sent in a simple string. ( I am not looking for any parsing to be done by container).
3. That generic servlet will then invoke a sip servlet.

Can somebody help me in designing this application.













13 years ago