How can i write a servlet to connect to a fixed url periodically?
hello
my company have domain name,but not have ip address,the public website host in a rented space in a public server.wihtin my company also have a internal website,it host in my internal network,the internal server can connect to the public server by ADSL.
now we want my internal website is published to internet by a http link in my public website page,so that the other division of my company can visit the internal website, the critical is how can i make the public server learn my address.
i plan to write a servlet in my internal web,it periodically connect to the public server,and in the public server,i write another servlet to get the tempory public ip address( by getRemoteAddr()method),but how can i implement the first servlet that is used to connect to the public server?
thanks for any helps!
because we don't have the static public ip address,we use the ADSL to connect to the internet,at every connection,you can get a temporary public ip,at same time,we wamt publish our internal website to internet,you must explose the ip address
Similar Messages
-
I am connecting an external USB HDD and I can see it on my Apple Macbook Air. BUT this drive is READ only. How can I write to it?
Drive Partition and Format
1.Open Disk Utility in your Utilities folder.
2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive. -
How can i write info in text filefrom servlet
hello
can u give me exmaple how can i write data into text file from servlet ?
Edited by: bla123456789654 on May 17, 2010 2:05 PMjavax.servlet.GenericServlet
public void log(java.lang.String msg)
Writes the specified message to a servlet log file, prepended by the servlet's name.
See ServletContext.log(String).
Parameters:
msg - a String specifying the message to be written to the log file
*/ -
How can I write to an OPC Server?
Hello!
I was busy a few days with LabVIEW 8 to finish a special task, but now I've got problems to solve the following problem:
I have an OPC connection between a frequency converter and LabVIEW 8. With the example vi's I get the data out of the OPC Server (revolutions per minute).
So I can read data out of the OPC Server, but how can I write? I want to write several voltage values to the OPC Server that the frequency converter gets the required revolutions per minute.
Have you got any ideas? Are there existing example vi's to write data to an OPC Server?
Best regards and Thanks in advance!So here it is - a little bit modified, but you should get the idea out of it.
If you have questions, I'll try to answer them .
Thomas
Using LV8.0
Don't be afraid to rate a good answer...
Attachments:
IOControl.llb 168 KB -
I want to wrtie some ECPM code
but I don't know how can i write code in IViewo
How to install or enable EPCF development enviroment
Where should i write the EPCF code?Hi,
Try this link for EPCF:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/enterprise portal client.pdf
<b>Regards,
Sai Krishna.
PS: Plz do assign points if it helps. ;-)</b> -
How can I write a simple proxy server that intercept 80(www)socket???
Does any body knows how can i write simple proxy server that intercept web sites watching by user???thx
Does any body knows how can i write simple proxy
server that intercept web sites watching by user???thxTo be clear a proxy means that requests go to the proxy and then the proxy relays the request to proper place.
If you want to see traffic without being in the middle (the requests go direct) then you can not use the standard Java API. And do so in any situation of course requires that you be in the physical connection in the first place (ie in a star network with a router in the middle a client machine will not see packets from other machines.) -
How can i create a new usb connection (service) on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )
i know its not a problem whit my carrier o data plan or sharing preferences on the ipone because when i use it un my laptop it works perfectly through
the usb and even works on the Imac through wifi and bluethood tethering but NOT through usb!!.
the problem is that trying to make it work i deleted the "profile" usb iphone on the network prefereces panel. Now i only have 3 options: ethernet / wifi / bluetooth
but not the usb iPhone i used to have.
And when i try to add a new one i dont get a USB option.
can some one help me please??
this is how it looks (after the bluetooth PAN i used to have USB iPhone option)The question would be more appropriate in the Mac forums as it is not really related to the iPhone.
-
HT5437 How can I use apple TV to connect my computer to the tv screen as an external monitor?
How can I use apple TV to connect my computer to the tv screen as an external monitor?
Morning jotref,
Thanks for using Apple Support Communities.
For more information on this, take a look at this article:
About AirPlay Mirroring in OS X Mountain Lion
http://support.apple.com/kb/ht5404
Best of luck,
Mario -
How can I get the ipad to connect to itunes 10.6.3?
How can I get the ipad to connect to itunes 10.6.3?
The iPad mini requires iTunes 10.7 or newer to sync.
(82182) -
How can I write a program that compiles without warnings?
I tried the following with the 1.5 beta-compiler (build 28; I think):
class Y {
public static final class Pair<X,Y> {
private X fst;
private Y snd;
public Pair(X fst, Y snd) {this.fst=fst; this.snd=snd;}
public X getFirst() { return fst; }
public Y getSecond() { return snd; }
public String toString() { return "("+fst+","+snd+")"; }
public static void main(String... args) {
Pair[] pairArr = new Pair[10]; // supposed to be an array of Pair<Integer,Integer>
for (int i=0; i<pairArr.length; i++)
pairArr[i] = new Pair<Integer,Integer>(i,i);
for (int i=0; i<pairArr.length; i++) {
Pair<Integer,Integer> p = pairArr; // unchecked warning
System.out.println(p);
Integer first = p.getFirst();
Integer second = p.getSecond();
// ... more stuff ...
It turns out that I get an unchecked warning when I extract an element from the array of pairs. Okay, that's fine. How can I avoid the warning? I had expected that an explicit cast would help.
Pair<Integer,Integer> p = (Pair<Integer,Integer> )pairArr;
With a cast I'm telling the compiler: "I _know_ what I'm doing; please trust me." But the compiler still issues a warning.
How can I write a warning-free program in this case? The only thing I can think of, is not using the parameterized type Pair in its parameterized form. But it's not the idea of Java Generics that I refrain from using parameterized types. What am I missing?It turns out that I get an unchecked warning when I
extract an element from the array of pairs. Okay,
that's fine. How can I avoid the warning? I had
expected that an explicit cast would help.
Pair<Integer,Integer> p = (Pair<Integer,Integer>
)pairArr;
With a cast I'm telling the compiler: "I _know_ what
I'm doing; please trust me." But the compiler still
issues a warning. Yes, but at least you were able to change the warning from "unchecked assignment" to "unchecked cast" which is a little shorter ;-)
Seriously , since arrays of generic types are disallowed, there is probably no way to get rid of these warnings - which makes a strong point for eliminating "unchecked" warnings altogether (see the other thread "selectively suppressing compiler warnings")
Cheerio,
Gernot -
How can I Write a sine wave in an Access-fil​e?
I measure a sine wave in LabView 6i. How can I write the datas automatically to an Acces-file, at the same time?
In my program, I managed it with Execute SQL.vi, I change a number in a SQL statement(String) -> after this I push start and then it writes the statement in the Access-file.
The problem is, it writes only one data per measurement in the file. How can I write all datas in the Access-file and measure the wave at the same time?
Thanks for help!
Attachments:
getwave.vi 49 KBOn the waveform palette, you will find a "to components" vi that you can break out the array of the waveform. You can then, using a for loop write all of the values from the waveform.
Better yet, there are examples in the database toolkit manual on pages 3-13 to 3-15 that deal with reading arrays (and even has a waveform example).
Good luck! -
How can I tell the device is connected to itunes 12?
how can I tell the device is connected to itunes 12? I have Windows 8. I hear that the device is connected, but don't see the device to manage. Only thing that happens is on the phone it says Trust the computer.. I say Trust and nothing happens.
in ituens at the top where you see the small icons for Music, Movies, TV etc when your device is connected you will see a small icon representing your phone or ipad etc popup click that and it will show you the usual interface for backup and syncing.
if that doesnt happen, like it didint for me initially, you should close itunes fully via task manager if you know how to do this and start it again with the device unplugged then plug it in after itunes has finished loading.
Worst case scenario you nee to resatrt -
I have an airport express extending, through wireless, a network provided by an airport extreme. How can I know which clients are connected to my network through express and which are connected through extreme?
Here you can see both routers:
I would expect to some clients connected to the express, other than the extreme. And that's all I see: only the airport extreme appears as client of the airport express.
Below, one can see the summary of the config for both routers.
Would somebody explain it?
Thanks,
Marcelo
Message was edited by: Marcelãoplease disregard this answer.
Message was edited by: Marcelão -
How can i see which devices are connected to my wireless network?
how can i see which devices are connected to my wireless network?
Login to your router and view the DHCP clients.
-
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu
Maybe you are looking for
-
How to send GROUP email in Mavericks?
Sending email to Contact Groups in Mail doesn't appear to be working in Mavericks anymore. We use to be able to type the Group name, click enter, then all addresses appear. Now it just disappears with no email addresses added.
-
How to Track changes of Detail and header at purchase document
Hi I have one problem while issueing the output type i created new output type created new output routine and i have to track the header changes and issue proper output and prevent to issue wrong output type example : zne1 for header changes and zneu
-
Trying to filter an entire database using a combo box or text box
Hi, I am looking to create a combo box with rows vice columns, then I would like to create a macro or some for form of filter that gives me the option to search within each or all of the selections. I have created a search function (using a textbox
-
help! imovie media browser only has one option, "Mobile". other videos had option for medium and small. mobile option wont import into iDVD. other videos gave me the Medium option, why not this one? need answers ASAP!
-
I think I did wrong question I have installed Parallels on my Macbook Pro, and I'm interested in buying a Time Machine Airport, my concern is whether Time Machine also makes me the automatic backup of my files have Windows in Parallels