Asigning a name to a host without using hosts file
Hi, we have developed a rich client application that connects to a websphere Appserver in order of using ejb. This app is intended to work in different places, connecting to a different Appserver in each place. When the service locator of our client app connects to the appserver to obtain the references to the ejbs, the server returns some kind of URL that contains the name of the machine defined
in the hosts file of the server. The problem is that if this name is not in the host file of the client machine the application crashes because it cannot communicate with the appserver. We have a large number of client machines and we would like to avoid having to modify the host file of every one of them.
Is there a way to tell the application to assign an IP to a hostname at runtime?
I think that you can directly use IP addresses instead of the host names.
If your are in a lan you will be able to use the compulter name of the hosts too.
Also if you get proper DNS setup in your network you will be able to allocate domain names to your hosts and reffer them by their domain name. And the clients will be able to find the hosts through DNS lookup
Similar Messages
-
DIM: how to load metadata to Essbase without using rule files
Hi,
The Essbase adapter has been installed in the informatica PowerCenter (v8.1.1). We want to create a Essbase target definition to load metadata. In the Table Creation Wizard, we select Table Type: Dynamic dimension building (Type 3), but it needs to specify Rules file in the Column Creation Wizard.
Any method to load metadata into Essbase without using Rules file?
Thank you in advance.You could load the data into Essbase without Rule file by means of free form loading which the Datasource would be a file.
-
Without using ID file to idoc scenario
Hi People
I am trying one scenario(file to IDoc) that is without using configuration only using IR only is it possible to create? and how
Thanks & regards
shekarHi,
some scenarios could be done without IR:
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
But I guess it's not possible to realize a scenario without ID.
For example where do you want to configure you File Adapter?
Regards
Patrick
Edited by: Patrick Koehnen on May 21, 2008 1:31 PM -
Jaas Authorization in jboss without using policy file
HI,
i am working on j2ee application in which i am using jaas for authentication and authorization.
authentication is done but in authorization i dont want to use
policy file because roles can be added it is not predefined so jaas should refer database for roles names and permissin i.e action class(URL permission) that are accesible to the user.
how to implement this using jaas?
pl can u help me to solve this problem.Has anyone ever implemented a simple web page authorization with Jaas?
Please do help me by posting a sample code
or suggest me a better security tool to use -
Help! web.xml security without using WAR files
I'm currently using the RDBMSRealm and URL ACL security for my app. I would like to use the web.xml descriptor for security so that I can specify login pages and such. We currently are not using WAR files. I've been having alot of trouble setting this up. Is there a way to use the RDBMS realm along with the web.xml security? It looks like it should work, but I can't seem to get it to function. How do I specify the regular document root as a webapp? I'm currently running WLS 5.1 with SP4. Thanks.
The RDBMSRealm is just the authentication mechanism underneath WLS versus the
web.xml of the WebApplication which describes all the access control for that WebApp.
the later being scoped only to that WebApp.
you don't need to deploy in a war file, you can expand the archive into an identical
directory structure and then just point us towards the top level of that structure.
see: http://www.weblogic.com/docs51/classdocs/webappguide.html
.paul
chris wrote:
I'm currently using the RDBMSRealm and URL ACL security for my app. I would like to use the web.xml descriptor for security so that I can specify login pages and such. We currently are not using WAR files. I've been having alot of trouble setting this up. Is there a way to use the RDBMS realm along with the web.xml security? It looks like it should work, but I can't seem to get it to function. How do I specify the regular document root as a webapp? I'm currently running WLS 5.1 with SP4. Thanks. -
How to create a inputstream without using the file operation
Hi friends
In my application, I have to create a Streamsource object using the below constructor:
public StreamSource(InputStream inputStream)
Construct a StreamSource from a byte stream. Normally, a stream should be used rather than a reader, so the XML parser can resolve character encoding specified by the XML declaration.
If this constructor is used to process a stylesheet, normally setSystemId should also be called, so that relative URI references can be resolved.
Parameters:
inputStream - A valid InputStream reference to an XML stream.*[http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) |http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) ]*
But for creating the inputstream, i am creating a tempory file, ie I am using fileinputstream.
import java.io.File;
import java.io.FileInputStream;
import java.io.StringReader;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
public class SourceConvertor
private static Source convertStaxToStream(Source request)
// here the argument to this method is StaxSource and the return type is StreamSource
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = null;
File fp = null;
FileInputStream fInp = null;
try
transformer = factory.newTransformer();
fp = new File("tempFile.txt");
transformer.transform(request, new StreamResult(fp));
fInp = new FileInputStream(fp);
} catch (Exception e)
e.printStackTrace();
return new StreamSource(fInp);
public static void main(String args[])
try
String message ="<author><name>Rai</name><book>GodOfSmallThings</book></author>";
Source original = new StreamSource(new StringReader(message));
Source converted = convertStaxToStream(original);
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
transformer.transform(converted, new StreamResult(System.out));
catch (Exception e)
// TODO Auto-generated catch block
e.printStackTrace();
This is not at all a good aproach because evey time it is creating a new file.
So can anyone suggest a better aproach or idea or a simple code snippet so that i can create the inputstream without creating a temporary file.
Thanks in advance:
*[http://www.javamilestone.blogspot.com/ |http://www.javamilestone.blogspot.com/ ] *Err, a StreamSource is a Source. Check the Javadoc. You can pass it directly to the transform.
-
I followed the instructions at http://support.apple.com/kb/PH14745 to copy an event to one library to another. The added library was accessed through a network share. A new folder was created in the iMovie Library package, but the media files were all aliases to the media on the original computer. Is there any way to actually copy the files and not have iMovie just create aliases?
I think the trick is to 'Considate source media' on the new library. See:
http://help.apple.com/imovie/mac/10.0/#mov882dee351
Geoff. -
Publishing a site through UAG without using the Portal login
Good Day -
I'd like to ask if there is a way to publish access to an internal site through UAG without users having to use the Portal login - say by providing a link -Hello,
The portal app is mandatory even if you not use it, indeed if you delete this app UAG stop to work as expected.
In order to publish your internal site without going through the portal, in select application select the following options:
Type: Web
Web: Other Web Application (application specific hostname)
With this you could bind a direct DNS name to your publication without using the portal in order to access to it.
Regards,
Follow me on Twitter http://www.twitter.com/liontux | My Blog (French/English) :
http://security.sakuranohana.fr/ -
Export table data in a flat file without using FL
Hi,
I am looking for options where I can export table data into a flat file without using FL(File Layout) i.e., by using App Engine only.
Please share your experience if you did anything as this
ThanksA simple way to export any record (table/view) to an csv fiel, is to create a rowset and loop through all record fields, like below example code
Local Rowset &RS;
Local Record &Rec;
Local File &MYFILE;
Local string &FileName, &strRecName, &Line, &Seperator, &Value;
Local number &numRow, &numField;
&FileName = "c:\temp\test.csv";
&strRecName = "PSOPRDEFN";
&Seperator = ";";
&RS = CreateRowset(@("Record." | &strRecName));
&RS.Fill();
&MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
If &MYFILE.IsOpen Then
For &numRow = 1 To &RS.ActiveRowCount
&Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
For &numField = 1 To &Rec.FieldCount
&Value = String(&Rec.GetField(&numField).Value);
If &numField = 1 Then
&Line = &Value;
Else
&Line = &Line | &Seperator | &Value;
End-If;
End-For;
&MYFILE.WriteLine(&Line);
End-For;
End-If;
&MYFILE.Close(); You can of course create an application class for generic calling this piece of code.
Hope it helps.
Note:
Do not come complaining to me on performance issues ;) -
Clustered application without using EAR in WebLogic 6.0
Hi,
Is it possible to set-up a clustered application without using EAR files in WebLogic
6.0.
Please point me to instructions for the same.
Thanks
B.Srini
Yep. Possible.
refer bea docs
"Srinivasan Bhoopathy" <[email protected]> wrote in message
news:3c5e5815$[email protected]..
>
> Hi,
>
> Is it possible to set-up a clustered application without using EAR files
in WebLogic
> 6.0.
>
> Please point me to instructions for the same.
>
> Thanks
> B.Srini
-
Invoking Web Services Without Using the WSDL File - RPC
I would apprecite if someone can provide sample code
for RPC client for WeatherEJB sample code without using wsdl file.
Thanks ,
agHi,
Attached is a small program that calls a service CurrencyExchangeRate
registered at www.xmethods.com.
The program uses pure java to call the service.
Hope that helps
Thanks
Amit Chauhan
ag <[email protected]> wrote in message
news:3c59734d$[email protected]..
>
I would apprecite if someone can provide sample code
for RPC client for WeatherEJB sample code without using wsdl file.
Thanks ,
ag[webservice.java] -
Make nslookup read /etc/hosts file
Dear,
OS: OUL5x64
my nslookup resolve the name thru dns server.
question :
how to make nslookup resolves name through /etc/hosts file.
i do have /etc/resolv.conf and /etc/nsswitch.conf file
here is my nsswitch.conf
/etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files
but it never uses the file to resolve the name.
how can i force it to read /etc/hosts file first
Thanks in advance!Perhaps it would help to elaborate on WHY you want nslookup to use the /etc/hosts file?
If you look at the the name of the nslookup utility, it quite probably is an abbreviation of "nameserver lookup". That strongly suggests it is a tool for querying nameservers.
NOT a tool to debug the name lookups of your operating system.
On the platforms I use (I don't use HPUX), you can query and set the nameserver nslookup uses. I would consider it a bug if the nslookup tool uses /etc/hosts if set in nsswitch.conf.
this is how I lookup what server is set for the utility:
$ nslookup
serverDefault server: 10.0.1.1
Address: 10.0.1.1#53this is how nslookup responds to a query:
nu.nlServer: 10.0.1.1
Address: 10.0.1.1#53
Non-authoritative answer:
Name: nu.nl
Address: 62.69.184.53
Name: nu.nl
Address: 62.69.179.198(I don't know how the "jive quote" comes in, it is supposed to be a "bigger than" sign) -
Using Name-based Virtual Hosts on Apache
Hi!
We have Novell SBS 6.5, a tree with 3 servers:
1. Border Manager sp1
2. GroupWise (NAT) sp1
3. WEB (NAT) sp6 - Apache 2, MySQL, PHP.
My site is at http://www.kalmanovitz.co.il.
I want to try to add a new sub domain and\ or a Domain using Name-based Virtual Hosts (2 or more domains on same IP number).
1. My BM server use SSL. Will it influence SSL? How?
2. What I need to change on my servers?
3. What my ISP need to update\change on his system?
4. Can i try to experience the changes without my ISP intervention?
Please help.
TIA
NanuNanu Kalmanovitz,
> 1. My BM server use SSL. Will it influence SSL? How?
Not protocol wise, but you will get asecurity warning that certificate
and host names do not match.
> 2. What I need to change on my servers?
Httpd.conf
> 3. What my ISP need to update\change on his system?
DNS, pointers to the domains
> 4. Can i try to experience the changes without my ISP intervention?
>
Yes. Add the names to the workstation's hosts-file
- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)
Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement
Using VA 5.51 build 315 on Windows 2000 build 2600 -
How do I add video to be hosted directly on my MUSE site without using a third party like Vimeo / You tube etc ?
Hi,
You can consider html video tag to do this. You will need to add it in Muse using, Object-insert as html. Detailed instructions can be viewed here
HTML video Tag -
When I upgraded to ios 5, it asked me a for a new game center name. How do I use my old game center name, since it makes me start some games over without it?
Carefully follow steps 1-9 outlined by wjosten in this post: https://discussions.apple.com/message/13356770#13356770. This will not, however, avoid wiping any non-purchased media from your phone (ripped CDs, etc.) as this is only synced one way: from your computer to your phone. You will have to either rebuild your iTunes library with this content and sync again to restore it to your phone, or purchase 3rd party software to copy it from your phone to iTunes prior to syncing (such as Touch Copy).
Maybe you are looking for
-
IPod not recognized on USB hub
What would cause an iPod Nano to charge while connected to a 1.1 USB hub, but not be recognized by Windows or iTunes? My brother connected his Nano to a USB keyboard port, and has lost it's charge. I've been able to get it to charge on my 1.1 USB hub
-
PO output issue. Create request is missing .
Hi SRM gurus, We are using SRM 4.0 with extended classic with EBP SUS scanario. There are some failures in XI for change PO request. The error is as below : An error occured within an XI interface: Exception occurredA:BBP_PD:007 -No data found
-
Hi After cofirming account in IC webclient when I click on Sales Order I'm getting below mentioned error, The business transaction does not support Sales Customizing of dependent transactions does not fit to requested object Default flag is missi
-
Satellite C50-A-157 Sandisk USB won't work in Recovery Media Centre
I can't get Sandisk Cruzer USB to work in Recovery Media Centre. Have tried formatting but no luck. I read on another Toshiba forum that Sandisk USBs don't work and that you have to use a different brand. Anyone know if that's true? Thanks
-
Adobe Reader XI Document Restrictions Summary
I am attempting to configure Adobe Reader XI for Enterprise Deployment. Our current version of Reader (9.5.1) has the following Document Restriction settings for every document that is opened with Reader: In version XI, those three options are all s