How to define a datasource in Oracle WebLogic WLST Configuration
For a SID:
<attribute name="Url" value="jdbc:oracle:thin:@hostname:1521:SID" />
For a Service:
<attribute name="Url" value="jdbc:oracle:thin:@hostname:1521/Service" />
Welcome to the blog, hope it helps you in resolving your issues.
Bean or Container.NotSupportedNotSupported value, when an entity bean runs in an unspecified transaction, if a transaction exists, the EJB container suspends the transaction; when an entity bean runs in an unspecified transaction, and no transaction exists, the EJB container takes no action.SupportsSupports value, when an entity bean runs in an unspecified transaction, if a transaction exists, the EJB container uses the current transaction; when an entity bean runs in an unspecified transaction, and no transaction exists, the EJB container takes no action.RequiredRequiresNewMandatoryNevertrans-attribute was NotSupported, Supports, and Never. Set entity-always-uses-transaction inweblogic-ejb-jar.xml to True if you want the EJB container to behave as it did in pre-9.0 releasesof WebLogic Server and create a new transaction.trans-attribute of Required.NotSupported for MDBs and Supportsfor other types of EJBs.// method with generic return type public <T> List<T> getMyList(Class<T> elementType, List objList) { List<T> list = new ArrayList<T>(); for(Object obj : objList) list.add(elementType.cast(obj)); return list; } // calling the method getMyList(String.class, objList);