Solved

servlets -> native code

Posted on 2001-08-08
8
298 Views
Last Modified: 2013-11-24
Hi!

We have implemented some servlet-based applications. We wish to convert these servlets into native-code. I ahve two questions:

1. can we convert servlets into native code and then use native code as we use servlets?
2. if so, how to convert servlets into native code (i mean how to compile them into object code for this purpose)?

Following are more details on the specifications:

a. we are hosting these servlets on TomCat. So it is OK if the answers/comments work for Tomcat alone.
b. our servlets interact with native code dll written in C++ (I mean we are using JNI technology).
c. The JNI in turn opens sockets to a server program running. This server program may or may not be running on the same system.
d. these servlets spit client-side programs. Thus these servlets are referred in the application URLs.
e. in one of the applications, we are using JDBC connections. It is OK if the solution works for servlets that do not contact JDBC. I do not know how much this point is of relevance, thought you should be aware.

Please let me know if you need more details.

regards,
Raghu
0
Comment
Question by:raghurani
8 Comments
 
LVL 92

Accepted Solution

by:
objects earned 200 total points
Comment Utility
> 1. can we servlets in native code?

No. Servlets are a Java concept.

> 2. if so, how to convert them?

You don't.


Of course you can convert your servlets to native code, but they will cease to be servlets and you will need to use a different method (eg cgi) to integrate them with your web server.

0
 

Expert Comment

by:raghu_k_n
Comment Utility
Hello....
Wakeup......
Sorry to say like this. What makes u think that u can convert Servlets to native code. U can use ASP or any CGI mechanism if u don't want to use java and be deprived of its advantages......

Servlets is very much a java technology and u have to write Servlets in JAVA only.

-HTH
Raghu
0
 
LVL 1

Author Comment

by:raghurani
Comment Utility
Raghu k n,

good morning, and welcome to the world of experts!

1. you are not supposed to propose any answer.
   this will move the question from 'awaiting answer' cart.
   please go through guidelines on how to use this site.

2. thanks for your suggestion, rather, proposed answer ;)
   I am rejecting it as I do not find any trace of
   answer in your statements. I have been programming in
   web-technologies for almost three years... I know
   what it takes to come up with a product. I have already
   written some applications (started with it a year back)
   and now we are at release 3.0. I selected Java when I
   was a porject leader... We wish to increase performance
   of our products. That is why I asked this question...

Thanks a lot to 'objects' for good comments. Wish I could get more details. Any pointers... any doc... should do.

thanks :)
Raghu

0
 
LVL 1

Author Comment

by:raghurani
Comment Utility
'objects' I am working on your inputs.. thanks buddy :)
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 92

Expert Comment

by:objects
Comment Utility
no worries.
Let me know if u have any questions.
0
 
LVL 1

Expert Comment

by:Moondancer
Comment Utility
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if still open in seven days.  Please post closing recommendations before that time.

Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> You cannot delete a question with comments, special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process for further information, if needed.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.  Anytime you have questions which are LOCKED with a Proposed Answer but does not serve your needs, please reject it and add comments as to why.  In addition, when you do grade the question, if the grade is less than an A, please add a comment as to why.  This helps all involved, as well as future persons who may access this item in the future to seek help.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20109564.html
http://www.experts-exchange.com/questions/Q.20125848.html
http://www.experts-exchange.com/questions/Q.20165659.html
http://www.experts-exchange.com/questions/Q.20165662.html
http://www.experts-exchange.com/questions/Q.20169389.html
http://www.experts-exchange.com/questions/Q.20170409.html
http://www.experts-exchange.com/questions/Q.20250408.html




PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643

Moderators will finalize this question if still open in 7 days, by either moving this to the PAQ (Previously Asked Questions) at zero points, deleting it or awarding expert(s) when recommendations are made, or an independent determination can be made.  Expert input is always appreciated to determine the fair outcome.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange
0
 
LVL 1

Author Comment

by:raghurani
Comment Utility
objects,

please accept my sincere apologies for keeping this question open. thanks a lot for your answer :-)

regards,
Raghu
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
No worries :-)

http://www.objects.com.au
Brainbench MVP for Java 1
http://www.brainbench.com
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 62
json example 39 110
word0 challenge 4 52
Java array passed to SQL where clause 23 38
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now