SOA 10g: Dynamic Host Name and Port in FTP Adapter
Hello All,
I am using GET operation in FTP Adapter. I wanted to make Hostname,portName,Username and Password Dynamic.
Pls suggest how to achieve this in SOA 10g.
thanks,
Ab
or http://blogs.oracle.com/adapters/2010/04/changing_the_connection_factory_jndi_dynamically_in_ftp_adapter.html
the make the jndi dynamic, but you still have to setup all the jndi lookups before you can dynamically can change them
Similar Messages
-
Replacing Host Name and Port number throughout Environments
So I am currently working on a project that have several classes using simple JDBC code. I'm switching all of it to use JNDI instead of what is currently being used. I'm using Weblogic and the plan is to have the code run in a cluster.
Here is a code Snippet of some of the code.
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,
"t3://hostname:port");
My problem lies in the the "t3://hostname:port" String. I don't want to hardcode that since I know its bad code practice but my question is what is the best way to replace that with the Host Name and Port number as I move environments. Should I have a Class with a Static Variable and just reference that through the other classes or should I put it in some Property file and read the value from there? Any insight into this would be greatly appreciated.
Thank you.would it be something like this?
Properties properties = new Properties();
try {
properties.load(new FileInputStream("src/jndi.properties"));
String url = properties.getProperty("url");
System.out.println(url );
} catch (IOException e) {
} -
How to get the Host name and port number
Hi all,
I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
Regards,
VinothHi Kanagaraja,
My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
Thanks for your reply.
-Vinoth -
Getting host name and port number from application
Does anyone know how I would be able to get the host name
and port number from an application launched by java webstart ?
This is the host and port of the URL that this application is launched from.A couple of suggestions:
-The note is about 6.40. Doesn't fit for your server
-Don't!
-Reinstall!
Regards,
Benny -
Getting host name and port number from an application
Does anyone know how I would be able to get the host name
and port number from an application launched by java webstart ?
This is the host and port of the URL that this application is launched from.A couple of suggestions:
-The note is about 6.40. Doesn't fit for your server
-Don't!
-Reinstall!
Regards,
Benny -
How to get Host name and port inside UDF
Hi,
I want to access the Host and port in UDF to pass it to a link http://host:port/AdapterFramework/ChannelAdminServlet?party=&service=&channel=*&action=status dynamically.
How can I acieve it?
ManishaHi
With this code. I am getting error:
try
java.net.InetAddress addr = java.net.InetAddress.getLocalHost();
String host = addr.getCanonicalHostName();
catch (UnknownHostException e){}
if (ProcessMode.equals("P"))
try{
String xyz="/AdapterFramework/ChannelAdminServlet?party=&service=&channel="Name"&action=stop";
URL server = new URL("http", host, 8XXX, xyz);
tring userPassword =Userid + ":" + Password;
String encoding = new sun.misc.BASE64Encoder().encode (userPassword.getBytes());
URLConnection uc=server.openConnection();
uc.setRequestProperty ("Authorization", "Basic " + encoding);
BufferedReader br = new BufferedReader(new InputStreamReader(uc.getInputStream()));
while ((inputLine = br.readLine()) != null)
output+=inputLine;
br.close();
catch (Exception e){}
ERROR:
cannot resolve symbol
symbol : variable host location: class com.sap.xi.tf._MM_CommunicationChannel_Stop
_ URL server = new URL("http", host, 8xxx, xyz);
^ 1 error
Any other way to get host and port?
Manisha -
Find host name and port number using query
Hi,
How do find the system_name, host_name and port no
using sql query or data dictionary.
plzSELECT i.instance_name, i.host_name, f.release_name RELEASE, i.version, k.patch_level FROM
v$instance i, fnd_product_groups f, fnd_product_installations k WHERE
UPPER(SUBSTR(i.instance_name, 1, 4)) = UPPER(SUBSTR(f.applications_system_name, 1, 4)) AND
k.application_id = '200'; -
Dynamic File Name and Directory File Sender Adapter
Hello gurus,
I have a question: Is there any way to make the File Name, and Directory Dynamic of a File Sender Communication Channel ?
For example, taking it as a parameter from a Web Service Request.. (I mean, the only way with this would be a ccBPM). I don't exactly know if there is a way, I just thought about this.
Please tell me if someone could make Dynamic these 2 parameters while picking a file.
Regards,
Juanoops,thought i was replying to the PgP question:)
I think you should be able to achieve this via adapter module but i m not really sure how exactly it will be done .
Thanks
Aamir
Edited by: Aamir Suhail on Jul 28, 2009 1:42 PM -
How to give a dynamic File Name for Receiver File/FTP Adapter.
Hi Experts,
I have one scenario in which we are creating a flat file of IDOC which is coming from R/3 & sending it to FTP location. For this we have configured Receiver FTP adapter with File Name Scheme as "NT.out" & in File Consturction mode i have given as "Add Time Stamp".
therfore while creating a file it is creating as NTyyyyMMdd-HHmmss-SSS.out
where as my requirement is only to to add Time & not the Date. (NThhmmss.out)
How to do this ?
for your info we are using ABAP Mapping.
Pl help me
Regards,
UmeshHi Umesh,
Add one more field to your target structure for your file name and populate that field as per your requirement like NTyyyyMMdd.out. In receiver communication channel use Variable subtiution option and give the refrence of Payload and file construction mode set as create.
And refer the below weblogs for Variable Subtiutuion File Name Scheme
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
Hope this way would be solve u r problem.
Cheers
Veera
>>>Reward points, if it is needful -
Hi,
is there like session/repository variable that holds the server/host name and port? i would like to get these values programmatically.
thanks.In my humble opinion do not see any use in setting up these details on variables. The fact that these could be used only after logging on, which will obviously need these details manually. If you require it for tracking purpose, You could do it manually, as they are going to be static at least for that session.
-
Getting WLS host url and port number
Hello Experts,
I need to forward an authenticated request to JAAS LoginModule. How can I get wls host name and port numbe in the LoginModule?
Thank you in advance,
Thanks for reading my postHi friends.
I have used the last post, but it is not working.
Mat be the API had changed.
What class or interface could give me this data in web dynpro component?
Too, I'm using the SAP NetWeaver Developer Studio
Version: 2.0.16
Build id: 200602130353
Thank you.
Manuel Loayza
Living La Vida JAVA
Edited by: Manuel Loayza Gahona on Jul 23, 2008 6:54 PM -
Configuring server name and port number through action links - obiee11g
Is it possible to configure host name and port when using action links ?
Say some session variables hold these values. Is there any way to use these values ?
Thanks
SMAny pointers ?
-
Getting web host name, web-port, oral-report server name and virtual path
Hi.
I have been using oralce forms 6i on oracle application server 10g. I have three servers installed on remote locations.I just want that when i am hosting an application on a server, the web host name, web port , oracle report server name and the path of directory should be selected in a dynaminc variable at application level at run time. In this manner, I will be able to make a single application for all three servers. Any other solution to this problem is also welcomed. Please help anyone and oblige me.Hi Rajesh,
Actually Web AS Host name is <Servername>.<domain name>:<Port no>
Web AS Path for R/3 is </sap/bc/bsp/sapd>
Refer the following link.
<a href="https://forums.sdn.sap.com/thread.jspa?threadID=402561">https://forums.sdn.sap.com/thread.jspa?threadID=402561</a>
<a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=265076">https://www.sdn.sap.com/irj/sdn/thread?threadID=265076</a>
Regards
Hemalatha
/Assign points if helpful/ -
What is MS SQL DB host name and DB port number ?
i just installed HP quality center and ms sql 2008.Now hp quality center need to connect to my my ms sql database its asking me for database host name and data base port number.please help me out how can i find that.
ThanksClick Start >> Run
For SQL Server 2005 Type "SQLServerManager.msc" and click OK
For SQL Server 2008 Type "SQLServerManager10.msc" and click OK
This will Open the SQL Server Configuration Manager for you.
Now in the Left Pane, expand "SQL Server Network Configuration" and click on "Protocols for <InstanceName>"
Now In the right pane, right-click on the "TCP/IP" protocol and go to properties - In the bottom there is TCP port - 1433(This is default) if your sql instance is other than default it will be dynamic port.
For host name RUN>>CMD>hostname>> this will provide host name of the server. -
I am not able to use the ftp export in Muse. When I enter my host, name and password, I get a long interlude of rainbow wheel and finally the message that my ftp host cannot be found. I have verified the name and that it is port 21. I can export to html and use another ftp client to upload (to the same server) but this is tedious and making minor changes is painful. Have you encountered this and found a solution?
Hi Susan,
In that case I will recommend that you consult a local technician/IT team and see if there is some network connectivity issue with your machine.
- Abhishek Maurya
Maybe you are looking for
-
Hi, I noticed that the DIMM slot cover on the underside of my T420 doesn't sit completely flush: one side is just slightly raised, and there is a tiny bit of play when I press with my finger. I don't think this affects anything, but just wanted to kn
-
HT5704 how can i use this new software
hi apple company my name is Ibrahim who have Iphone 4 and i saw attention to uptodate software so i don't have any idea about this software is iOS 6.1.3 could you help me how can i use this software
-
Synchronous JDBC Receiver Adapter
Hi, My requirement is JDBC--- XI --- JDBC (Sync) JDBC. Let me be more precise about the above scenario. JDBC sender picks up a record from DB1 and sends to DB2 and gets a response from DB2 and send the response to DB3. I am sure this can be handled
-
TS2446 How can I get my account to be enable
How can I get my account enable?
-
Emailing and synching over GSM network (i.e. without wifi)
My new iPhone emails no problem with WiFi but does not seem to without the Wifi. Do I need to change the settings? I also want to synch my contacts and calendar and iTunes (podcasts) the same way.... Is that the same issue or should I adjust somethin