Tuesday 18 February 2020

DataSource, JNDI Creation DB & FTP on Weblogic Server

******************* DataSource Creation on Weblogic Server **************************


1. Login into WebLogic Console. The default URL is http://<HOSTNAME>:<PORT>/console


2. Click Data Sources under services,





Click New and select Generic Data Source


3. Input a Name, Scope as Global, JNDI Name for your code to lookup, and Database Type (Oracle, My SQL, etc.,)



4.  Accept the default and click Next



5.
6.


7. Click on test configuration- Then click on next


8. Then click on next, select target, then click on finish.




This way data source has been created.





****************    JNDI Configurations for Database ***************** 



1. JNDI Configurations for DB

----------------------------------------------
1.a. Log into  Console -  http://<HOSTNAME>:<PORT>/console
1.b Lock and Edit

Create  outbound Connection poll in DBAdapter
----------------------------------------------

1.c    Goto Deployments --> DBAdapter --> Configuration --> Outbound Connection Pools ---> New



1.d   Select javax.resource.cci.ConnectionFactory --> Next -> Privde JNDI Name below --> Finish



     JNDI Name: eis/DB/TestDB


1.e  Expand javax.resource.cci.ConnectionFactory--> Click on eis/DB/TESTDB


Enter below details  in Outbound Connection Properties


     PlatformClass: org.eclipse.persistence.platform.database.Oracle10Platform --> Enter to Save



     XADataSourceName: jdbc/TestDB--> Enter to Save





1.f Save and Activate changes


Again take lock & Edit then -
1.g   Goto Deployments --> Select DBAdapter and update DBAdapter.

After successful update , it will show like below.




JNDI           - eis/DB/TESTDB
DataSource -  jdbc/TestDB

JNDI is confifured successfully.
-----------------------------------------

======================================================================

****************    JNDI Configurations for FTP ***************** 


2. JNDI Configurations for FTP
----------------------------------------------

2.a. Log into  Weblogic Console -  http://<HOSTNAME>:<PORT>/console

2.b Lock and Edit
Create FTP outboundpool connection.
 -------------------------------

2.c    Goto Deployments --> FTPAdapter --> Configuration --> Outbound Connection Pools ---> New

Select javax.resource.cci.ConnectionFactory --> Next -> Privde JNDI Name below --> Finish


     JNDI: eis/sftp/testftp


2.d Click on eis/sftp/testftp

Enter below details  in Outbound Connection Properties
     username: username Enter to Save
     password:Password Enter to Save
     Host: ftp.abcftp.com
     UseSftp : true Enter to Save


2.e Save and Activate changes 

First Take lock & Edit then 
2.f   Goto Deployments --> and select FTP Adapter and update FTP Adapter.


Release Configuration.

Keep Learning ! Cheers Guys!!

Kavindra Sahu

No comments:

Post a Comment

String to QR Code Image Generator Using Java

 Hi , Hope You are doing well. I came up with the requirement, where I need to generate QR code Image file for the input String. package dem...