How to migrate WAS 7.5 to Liberty Profile 8.5? - websphere-liberty

I am looking to migrate my application to run on Liberty profile 8.5 instead of Websphere Application server 7.5. In this process, I need to do server configuration by setting up LDAP, Database source and JMS. As I am new to Liberty profile, I am looking for help in setting up these. May I get some suggestions from you to complete these settings?

This is a bit broad question, so I'll give you some pointers to documentation to get you started (There is no WAS 7.5, so you probably mean 7.0).
WebSphere Application Server Liberty Profile Guide for Developers - this will give you some basic general information to get you started with Liberty
Data source configuration - basic configuration is quite simple, you define it in server.xml file (you didn't mention which DB you are using, so here is sample with Derby)
<library id="derby">
<fileset dir="${shared.resource.dir}/derby"/>
</library>
<jdbcDriver id="derbyDriver" libraryRef="derby"/>
<dataSource jdbcDriverRef="derbyDriver" jndiName="jdbc/DataSourceJNDI" type="javax.sql.ConnectionPoolDataSource">
<properties.derby.embedded createDatabase="false" databaseName="D:\path\DB"/>
</dataSource>
For more specific information regarding migrating DB2 data sources see
Migrating a DB2 data source to the Liberty profile
LDAP configuration - basic configuration for MS Active Directory
<ldapRegistry id="ldap" realm="SampleLdapADRealm"
host="ldapserver.mycity.mycompany.com" port="389" ignoreCase="true"
baseDN="cn=users,dc=adtest,dc=mycity,dc=mycompany,dc=com"
bindDN="cn=testuser,cn=users,dc=adtest,dc=mycity,dc=mycompany,dc=com"
bindPassword="testuserpwd"
ldapType="Microsoft Active Directory">
<activedFilters
userFilter="(&(sAMAccountName=%v)(objectcategory=user))"&(sAMAccountName=%v)(objectcategory=user))"
groupFilter="(&(cn=%v)(objectcategory=group))"
userIdMap="user:sAMAccountName"
groupIdMap="*:cn"
groupMemberIdMap="memberOf:member">
</activedFilters>
</ldapRegistry>
For more details and other LDAP see Configuring LDAP user registries with the Liberty profile
JMS - as you didn't provide details, if you are acting as JMS server or client and which JMS provider are you using (default or MQ), check this page as starting point for JMS related configuration - Liberty profile: JMS messaging
Application migration - if you want to check, if there are any issues with your application code regarding migration, you can install plugin for Eclipse/RAD -
WebSphere Application Server Migration Toolkit – Liberty Tech Preview which will scan your code for incompatibilities.

Related

Websphere Application Server Liberty 17.0.0.2 - profiles

Is it possible to have both profiles on Liberty 17.0.0.2.
By both, I mean WAS traditional full profile and Liberty profile on WAS Liberty 17.0.0.2.
Technically, no. The only thing that uses that versioning is Liberty based products and the liberty runtime (profile) itself. These do not include anything with the full profile / traditional WAS.
In more practical terms, products like "WebSphere Application Server Base" or "WebSphere Application Server ND" 9.0.0.4 includes the 17.0.0.2 liberty profile as well as the 9.0.0.4 "full profile".

is there a equivalent tomcat valves concept in websphere liberty profile?

I have a webapplication which was deployed on tomcat and uses tomcat values, now the application is moving to websphere liberty and am not sure similar concept exists in liberty.
Is there an equivalent tomcat valves concept in websphere libery profile? If yes, how can we achieve ?
You can white/blacklist hostnames and ip addresses on a per-endpoint basis in server.xml. Blocked ones will get a connection reset message.
<httpEndpoint httpPort="19080" httpsPort="19443"
id="defaultHttpEndpoint" tcpOptionsRef="myTcpOptions" host="*"/>
<tcpOptions id="myTcpOptions" hostNameExcludeList="*.foo.com,*.ibm.com" />
There's more info on that here:
https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/urun_chain_typetcp.html
If you need different exclusions per app, you can use configure multiple endpoints and map them to applications using virtual hosts.
https://www.ibm.com/support/knowledgecenter/en/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/cwlp_virtual_hosts.html

How do we configure MobileFirst Analytics queue sizes in WAS ND?

We are working with MobileFirst Platform 7.0 on WebSphere ND (not Liberty). With Liberty, it is possible to configure analytics queue sizes like this.
However, on WAS ND, we don't see the properties wl.analytics.queues or wl.analytics.queue.size available for either our MobileFirst project WAR, or the MobileFirst administration WAR.
How can we set these JNDI properties?
As of MobileFirst Platform v7.0, this JNDI is no longer available.
The process of forwarding logs to the MFP Analytics server has been optimized in such a way that setting this property is unnecessary. Your logs should be visible in your MFP Operational Analytics console in close to real time.

An attempt was made to retrieve an initial context for [ClassName] but no JNDI feature is configured

I am using the IBM WebSphere Application server v8.5 Liberty Profile. I have enabled the feature jndi-1.0 in server.xml by adding
<feature>jndi-1.0</feature>
But still I get the error "An attempt was made to retrieve an initial context for [ClassName] but no JNDI feature is configured."
Any idea what I may be doing wrong?

Copy profile configuration in websphere server 6.1

I have a was6.1 server profile "AppSrv01" in which database and queue configuration is done and some applications are deployed.
I want to create one more profile in my system having the same configurations as AppSrv01 instead of doing it manually again.
Is this possible?
Thanks,
Sasank.
Best solution is to create administration scripts in order to configure your environment.
Samples for WebSphere Application Server

Resources