Using OID APIs in EJB
hi,
Can i use OID APIs in EJB?How to do it?
That error is unrelated to your use of OracleXMLQuery (XSU) inside your bean. You might post to the JDeveloper forum where EJB folks hang out...
Similar Messages
-
How to create the groups in OID Using Java API.
Hi,
I need to create the group in OID Using Java API's only(i.e., javax.naming.* only).
I need to achieve it without using any oracle specific jars.
Is there any way to achieve it?.If there's a option to achieve it,do let me know.
I also need to create the users in that group ,after creating it.
If you share any useful link or ideas for the same would be great.
Thanks
Balajibobws wrote:
Hi,
I want to find the installed JREs in windows using java. I couldn't fine any java API. So I am using the below code to fetch the JRE list from windows registries & parse the returned collection to know the installed JRE.Why? If you are running java you already have a JRE. So why not just use it?
>
String key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Runtime Environment";
Runtime.getRuntime().exec(
"reg query " + "\"" + key + "\"");
Is it legal to retrieve the installed JREs in this way? Legal? It is OS specific, and to a certain extent dependent on vendor and what the vendor wants to do. Could also be impacted by permissions. Other than that it is ok.
I am feeling like its a type of hacking. So I couldn't decide whether this is legal (recommended) way of using. Does anybody can answer me. I can see the similar posts in google. Somebody suggests this way & somebody suggests to use preference API which is similar to this. Appreciate your help.Preferences won't work. It doesn't allow access to the registry in general, only a part of it. There are discussions in the JNI forum about retrieving VM versions. Prior to actually using the VM though. -
SSL from EJB using Verisign API
I'm trying to make a call from a session bean in WL6.1 SP1 to Verisign's PFProAPI
class.
I have successfully used the API in other setups (in servlets, etc.), but cannot
seem to get it to work from within an EJB.
The verisign test server just keeps returning "-8 SSL Connection Failed". Is there
someting WL is doing to prevent the connection?
Thanks
jawHi,
Can you post your code and exception?
Regards,
Richard Wallace
Senior Developer Relations Engineer
BEA Support.
"jaw" <[email protected]> wrote:
>
I'm trying to make a call from a session bean in WL6.1 SP1 to Verisign's
PFProAPI
class.
I have successfully used the API in other setups (in servlets, etc.),
but cannot
seem to get it to work from within an EJB.
The verisign test server just keeps returning "-8 SSL Connection Failed".
Is there
someting WL is doing to prevent the connection?
Thanks
jaw -
How to install OID connector using OIM API in 11g?
Hi All,
We are using OID connector in OIM 11g environment. It is a simple process to install OID connector by unzipping the connector zip file to ConnectorDefaultDirectory and goto Admin console and load the connector.
However, we are looking for API methods to simulate "load the connector " step in GUI.
Please help.
Thanks
Mahendra.Hey Mahendra,
I am not aware of this API to do the 'Deployment Manager' load task. But III try to help you using another way:
1-You can use ICF API to do this task(creating it specifically to OID). Using ICF: http://www.groenenberg.nu/Oracle_Doc/AS_11.1.1.5/doc.1111/e14309/icf.htm#BABFDJHJ
2- And following this example that my buddy did for Open DS: http://itnaf.org/2011/12/30/developing-icf-connectors/
Another helpful doc: http://docs.oracle.com/cd/E14571_01/doc.1111/e14309.pdf
I hope this helps,
Thiago Leoncio. -
Create User in OID using Java API
I read the documentation, read javadoc for Java API for OID, but still am not clear "how can I create a user in OID using Java API for OID."
It tells us how to create a java object User, but then how do we write this object to OID ?
I searched every where, metalink, forums, google...and am still looking for answere...
Thanks in Advance
Cheers
PuneetI did it using the Novell LDAP java api:
import com.novell.ldap.*;
public class LdapAdmin {
public static final String ldap_base = "dc=your,dc=company,dc=com";
public static final String ldap_user_base = "cn=Users," + ldap_base;
public static final String ldap_portal_base = "cn=PORTAL_GROUPS,cn=Groups," + ldap_base;
public static final String ldap_extended_base = "cn=Extended Properties,cn=OracleContext," + ldap_base;
public static final String ldap_dbdomain_base = "cn=OracleDefaultDomain,cn=OracleDBSecurity,cn=Products,cn=OracleContext," + ldap_base;
public static final String ldap_context_base = "cn=COMMON,cn=OracleDBAppContext," + ldap_dbdomain_base;
private static final String default_ldap_host = "infrastructure.your.company.com";
private static final int default_ldap_port = 4032;
private static final String default_ldap_login = "cn=orcladmin," + ldap_user_base;
private static final String default_ldap_pwd = "welcome1";
private static final String default_user_pwd = "secret";
private static final String[] personclass_values = { "top", "person", "organizationalPerson", "inetOrgPerson", "orcluser", "orcluserv2" };
public static LDAPConnection getConnection (String host, int port, String user, String pwd) {
LDAPConnection lc = new LDAPConnection();
try {
lc.connect(host,port);
lc.bind(user,pwd);
} catch (LDAPException lex) {
System.out.println("LDAP Error in getConnection: "+lex.getResultCode()+"-"+lex.getLDAPErrorMessage());
return lc;
public static LDAPConnection getConnection (String host, int port) {
LDAPConnection lc = new LDAPConnection();
try {
lc.connect(host,port);
} catch (LDAPException lex) {
System.out.println("LDAP Error in getConnection: "+lex.getResultCode()+"-"+lex.getLDAPErrorMessage());
return lc;
public static LDAPConnection getConnection (String user, String pwd) {
LDAPConnection lc = new LDAPConnection();
try {
lc.connect(default_ldap_host,default_ldap_port);
lc.bind(user,pwd);
} catch (LDAPException lex) {
System.out.println("LDAP Error in getConnection: ("+lex.getResultCode()+") - "+lex.getLDAPErrorMessage());
lex.printStackTrace();
return lc;
public static LDAPConnection getConnection () {
return getConnection(default_ldap_host,default_ldap_port);
public static void bind (LDAPConnection conn, String user, String pwd) {
try {
conn.bind(user,pwd);
} catch (LDAPException lex) {
System.out.println("LDAP Error in bind: ("+lex.getResultCode()+") - "+lex.getLDAPErrorMessage());
lex.printStackTrace();
private static void bind (LDAPConnection conn) {
bind(conn,default_ldap_login,default_user_pwd);
public static void modifyAttribute (LDAPConnection conn, String dn, String attr, String val, int mod) {
LDAPAttribute attribute = new LDAPAttribute(attr,val);
LDAPModification[] modification = new LDAPModification[] { new LDAPModification(mod,attribute) };
try {
conn.modify(dn,modification);
} catch (LDAPException lex) {
System.out.println("LDAP Error in modifyAttribute: ("+lex.getResultCode()+") - "+lex.getLDAPErrorMessage());
public static void modifyAttribute (LDAPConnection conn, String dn, String attr, String val) {
modifyAttribute(conn,dn,attr,val,LDAPModification.REPLACE);
public static void addAttribute (LDAPConnection conn, String dn, String attr, String val) {
modifyAttribute(conn,dn,attr,val,LDAPModification.ADD);
public static void deleteAttribute (LDAPConnection conn, String dn, String attr, String val) {
modifyAttribute(conn,dn,attr,val,LDAPModification.DELETE);
public static void deleteEntry (LDAPConnection conn, String dn) {
try {
conn.delete(dn);
} catch (LDAPException lex) {
System.out.println("LDAP Error in deleteEntry: ("+lex.getResultCode()+") - "+lex.getLDAPErrorMessage());
public static boolean isValidDn(LDAPConnection conn, String dn) {
try {
LDAPSearchResults res = conn.search(dn);
} catch (LDAPException lex) {
System.out.println("LDAP Error in deleteEntry: ("+lex.getResultCode()+") - "+lex.getLDAPErrorMessage());
return false;
public static void createPerson (LDAPConnection conn, String net_id, String lname, String fname, String office, String email, String id, String fullname) {
LDAPAttributeSet attributeSet = new LDAPAttributeSet();
attributeSet.add(new LDAPAttribute("cn", net_id));
attributeSet.add(new LDAPAttribute("sn", lname));
attributeSet.add(new LDAPAttribute("objectclass", personclass_values));
attributeSet.add(new LDAPAttribute("l", office));
attributeSet.add(new LDAPAttribute("mail", email));
attributeSet.add(new LDAPAttribute("employeeNumber", id));
attributeSet.add(new LDAPAttribute("givenName", fname));
attributeSet.add(new LDAPAttribute("uid", net_id));
// attributeSet.add(new LDAPAttribute("fullName", fullname));
attributeSet.add(new LDAPAttribute("orclpkcs12hint", default_user_pwd));
attributeSet.add(new LDAPAttribute("orclpassword", VerifyPassword.getHash(net_id,default_user_pwd)));
attributeSet.add(new LDAPAttribute("userpassword", default_user_pwd));
attributeSet.add(new LDAPAttribute("orcldefaultprofilegroup", "cn=DEFAULT,"+ldap_portal_base));
LDAPEntry entry = new LDAPEntry("cn="+net_id+","+ldap_user_base,attributeSet);
try {
conn.add(entry);
} catch (LDAPException lex) {
System.out.println("LDAP Error in createPerson: ("+lex.getResultCode()+") - "+lex.getLDAPErrorMessage());
public static void updatePerson (LDAPConnection conn, String net_id, String lname, String fname, String office, String email, String id, String fullname) {
LDAPModification[] mod = new LDAPModification[8];
mod[0] = new LDAPModification(LDAPModification.REPLACE,new LDAPAttribute("cn", net_id));
mod[1] = new LDAPModification(LDAPModification.REPLACE,new LDAPAttribute("sn", lname));
mod[2] = new LDAPModification(LDAPModification.REPLACE,new LDAPAttribute("l", office));
mod[3] = new LDAPModification(LDAPModification.REPLACE,new LDAPAttribute("mail", email));
mod[4] = new LDAPModification(LDAPModification.REPLACE,new LDAPAttribute("employeeNumber", id));
mod[5] = new LDAPModification(LDAPModification.REPLACE,new LDAPAttribute("givenname", fname));
mod[6] = new LDAPModification(LDAPModification.REPLACE,new LDAPAttribute("fullName", fullname));
mod[7] = new LDAPModification(LDAPModification.REPLACE,new LDAPAttribute("uid", net_id));
try {
conn.modify("cn="+net_id+","+ldap_user_base,mod);
} catch (LDAPException lex) {
System.out.println("LDAP Error in updatePerson: ("+lex.getResultCode()+") - "+lex.getLDAPErrorMessage());
public static void main (String[] args) {
try {
LDAPConnection conn = getConnection(default_ldap_login,default_ldap_pwd);
// updatePerson(conn,"ID1","Somebody","Joe","CLE","[email protected]","1","Joe Somebody 2");
// modifyAttribute(conn,"cn=ID1,"+ldap_user_base,"fullName","Joe Somebody",LDAPModification.REPLACE);
// modifyAttribute(conn,"cn=ID1,"+ldap_user_base,"displayName","Joe Somebody");
createPerson(conn,"ID1","Somebody","Joe","CLE","[email protected]","1","Joe Somebody");
// deleteEntry(conn,"cn=ID1,"+ldap_user_base);
conn.disconnect();
} catch (LDAPException lex) {
System.out.println("LDAP Error in main: ("+lex.getResultCode()+") - "+lex.getLDAPErrorMessage());
} -
Create group in OID using java api
Hi all!
I need to create group in OID using java api. Java api documentation contains examples for creating users but not for groups. I search oracle.com (and google) and didn't find any hint.
Anybody know the way?
thank you.Andrew,
a group is created like any other entry in OID. You need to specify the dn, objectclass(es) and (mandatory) attributes.
e.g.
objectclass=groupOfUniqueNames
with
uniquemember=cn=orcladmin, cn=Users, dc=de,dc=oracle,dc=com
as an example take a look at
cn=iASAdmins, cn=Groups,cn=OracleContext,dc=de,dc=oracle,dc=com
to see the schema (data) for groupofuniquenames you can either use ODM or query the directory server
ldapsearch -p 3060 -b "cn=subschemasubentry" -s base "objectclass=*"
regards,
--Olaf -
IllegalStateException while invoking livecycle formserver using java api
I am new to livecycle formserver.when i am trying to invoke formserver using java api ,it is giving illegal state exception.My servlet application to invoke formserver is deployed in tomcat 5.o in one system and jboss with formserver is in anohter system.
I am using the following properties to connect formserver in another system.
Properties ConnectionProps = new Properties();
ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "jnp://172.21.49.116:JBoss:1099");
ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");
ConnectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");
ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");
And i am confusing in setting the following paths using UrlSpec object.
URLSpec urlspec = new URLSpec();
urlspec.setApplicationWebRoot("http://JBOSS:8080/FormServer");
out.println("after webroot");
urlspec.setContentRootURI("http://localhost:8080/srvapp");
out.println("after contentroot");
urlspec.setTargetURL("http://localhost:8080/srvapp/HandleData");
My .xdp file is in my localsystem where my tomcat is running.and renderToHtml method is like this:
FormsResult formOut = Fsc.renderHTMLForm(formName, TransformTo.AUTO,oInputData,htmlRenderSpec,"",urlspec,null);
i am passing the path of the .xdp file in my local system to formName parameter.
with this code i am facing problem.Is there anything wrong in my code?or is there any settings to change in formserver?
please help me with this problem,i am trying to sort out this problem.
Any help?
Thanks in AdvanceIf you are invoking LiveCycle ES2 on JBoss compile with JDK 1.6 and run against JRE 6.
Steve -
Hello,
I am not able to locate the Jar files for using BRM API's. I have tried searching the forum and did not find the name or location from where I can get them. If they are available on the server I could ask the basis team to give me a copy. Any help would be greatly appreciated.
Regards
PreetamHi Adam,
I have created a New EJB Project for my proxy development. This is the usual way I develop proxies for any given service interface created in ESR. Now i am not sure how to create a dependency with the BRMS facade. If i find the jars i can add it as an external library when compiling.
Can you explain a bit more about what you ment by "developing the java proxy in a development component", how did you accomplish this when creating a proxy for a service interface?
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/e2/3620cef55842cca4632664212f31b1/content.htm?frameset=%2Fen%2F81%2F097529e0e545e58bb2d7a34e4d0a2a%2Fframeset.htm -
Creating self registration request using OIM API
Hi guys,
When we try to create a self regisrtation request using OIM API , we ge the following exception:
We get this error when we set the following in Design console.
Does user have to provide challenge information during registration = FALSE
and passed an blank object in place of challenge question parameter in createSelfRegistrationRequest method in tcUtilityBaseClass.
19:22:17,218 ERROR [REQUESTS] Error: Failed to save REQ_CONSOLIDATED_DATA_VALUE
data for Create Entity.
java.lang.NullPointerException
at org.apache.xml.serializer.TreeWalker.dispatachChars(TreeWalker.java:2
44)
at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:414)
at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:389)
at com.thortech.xl.dataobj.util.RequestDataConsolidator.convertNodeToXML
(Unknown Source)
at com.thortech.xl.dataobj.util.RequestDataConsolidator.addUser(Unknown
Source)
at com.thortech.xl.dataobj.tcDataBase.createRequestForCreateEntity(Unkno
wn Source)
at com.thortech.xl.dataobj.tcDataBase.createRegistrationRequest(Unknown
Source)
at com.thortech.xl.dataobj.tcDataBase.createRegistrationRequest(Unknown
Source)
at com.thortech.xl.ejb.beansimpl.tcUnauthenticatedOperationsBean.createR
egistrationRequest(Unknown Source)
at com.thortech.xl.ejb.beans.tcUnauthenticatedOperationsSession.createRe
gistrationRequest(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
tatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
ke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
elessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
Interceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:121)
How do we create a self registration request , using OIM API , with and without challenge questions?Well try this piece of code. This might be similar to yours but it worked perfectly for me. For you the error might be the attribute names which you are passing, it should be the one dfined in the FormMetaData xml as below.
import Thor.API.tcUtilityFactory;
// define you class below
ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
final Hashtable env = config.getAllSettings();
Hashtable quesAns = new Hashtable();
HashMap user = new HashMap();
user.put("Users.User ID", "SelfTesting");
user.put("Users.First Name", "SelfTesting");
user.put("Users.Last Name", "SelfTesting");
user.put("Users.Email", "[email protected]");
user.put("Users.Password", "SelfTesting");
user.put("ConfirmPassword", "SelfTesting");
tcUtilityFactory.createRegistrationRequest(env, user, quesAns);
And for the query of challenge QnA, these are the following combinations possible:
1) Property Does user have to provide challenge information during registration set to TRUE
- During self-registration from web console, it will show you Challenge Questions section on the right. If you do not select any questions, it will thow you an error there itself.
- Doing it from API will create no difference(even if you pass a blank HashTable). The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
2) Property Does user have to provide challenge information during registration set to FALSE
- During self-registration from web console, it doesn't show you Challenge Questions section on the right. The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
- Doing it from API, you will have to pass a blank HashTable as in above code. The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
Hope it works.
Thanks
Sunny -
Portal application sync using Portal APIs
Hi All,
I am trying automate the EBCC sync process using Portal APIs. I think it's very
common since it avoids the manual sync process & helpful in creating batch process
using Ant. Is anybody did this before??, please let me know if you have any suggestions
etc.
Many thanks
ZulfiMany thanks Deepak, It works now...
Cheers
Zulfi
"Deepak Shetty" <[email protected]> wrote:
>
should not url be
http://localhost:7501/portalAppDataSync/DataSyncServlet ?
also what does the server side log show? are you able to connect to your
datasync
servlet
i am not sure whether this is a weblogic error caused due to some other
reason
i have only done this with 4.0 not 7.0 so im not sure if this works
bye
deepak
"Zulfiqar" <[email protected]> wrote:
I am posting the Ant script since it has been deleted by the system..don't
know
why.
<property name="basedir1" value="C:/bea/user_projects/sourceDomain/beaApps"/>
<property name="deploy.system.username" value="system"/>
<property name="deploy.system.password" value="password"/>
<property name="deploy.syncmode" value="refresh-from-client"/>
<property name="url" value="http://localhost:7501/portalAppDataSync"/>
<property name="basedir" value="C:/bea/user_projects/sourceDomain/beaApps"/>
<property name="ebcc.lib.dir" value="C:/bea/weblogic700/ebcc/lib"/>
<property name="weblogic.lib.dir" value="C:/bea/weblogic700/server/lib"/>
<target name="Sync">
<java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
<arg value="-root"/>
<arg value="${basedir1}/portalApp-project"/>
<arg value="-user"/> <arg value="${deploy.system.username}"/>
<arg value="-password"/> <arg value="${deploy.system.password}"/>
<arg value="-mode"/> <arg value="${deploy.syncmode}"/>
<arg value="-url"/> <arg value="${url}"/>
<classpath>
<pathelement location="${weblogic.lib.dir}/weblogic.jar"/>
<pathelement location="${ebcc.lib.dir}/ext/jdom.jar"/>
<pathelement location="${ebcc.lib.dir}/ext/HTTPClient.jar"/>
<pathelement location="${ebcc.lib.dir}/ext/p13n_system.jar"/>
<pathelement location="${ebcc.lib.dir}/ext/p13n_util.jar"/>
</classpath>
</java>
</target>
Cheers
Syed
"Zulfi" <[email protected]> wrote:
Thanks Deepak, i tried on this in Portal server 7.0 by writing the
Ant
script which
is attached here. It gave some errors related to XMLMarshalling. The
Ant script
is,
<property name="basedir1" value="C:/bea/user_projects/sourceDomain/beaApps"/>
<property name="deploy.system.username" value="system"/>
<property name="deploy.system.password" value="password"/>
<property name="deploy.syncmode" value="refresh-from-client"/>
<property name="url" value="http://localhost:7501/portalAppDataSync"/>
<property name="basedir" value="C:/bea/user_projects/sourceDomain/beaApps"/>
<property name="ebcc.lib.dir" value="C:/bea/weblogic700/ebcc/lib"/>
<property name="weblogic.lib.dir" value="C:/bea/weblogic700/server/lib"/>
<target name="Sync">
<java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
<arg value="-root"/>
<arg value="${basedir1}/portalApp-project"/>
<arg value="-user"/> <arg value="${deploy.system.username}"/>
<arg value="-password"/> <arg value="${deploy.system.password}"/>
<arg value="-mode"/> <arg value="${deploy.syncmode}"/>
<arg value="-url"/> <arg value="${url}"/>
<classpath>
<pathelement location="${weblogic.lib.dir}/weblogic.jar"/>
<pathelement location="${ebcc.lib.dir}/ext/jdom.jar"/>
<pathelement location="${ebcc.lib.dir}/ext/HTTPClient.jar"/>
<pathelement location="${ebcc.lib.dir}/ext/p13n_system.jar"/>
<pathelement location="${ebcc.lib.dir}/ext/p13n_util.jar"/>
</classpath>
</java>
</target>
You can also see the detailed information on the attached doc. Please
let me know
if anybody has any clue.
Thanks
Zulfi
"Deepak Shetty" <[email protected]> wrote:
For portal 4.0 i think
<java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
<arg value="-root"/>
<arg value="${basedir}/ebcc/portal-project/application-sync"/>
<arg value="-user"/>
<arg value="system"/>
<arg value="-password"/>
<arg value="${deploy.system.password}"/>
<arg value="-mode"/>
<arg value="${deploy.syncmode}"/>
<arg value="-url"/>
<arg value="http://${deploy.bindaddress}:${deploy.port}/portalDataSync/DataSyncServlet"/>
<sysproperty key="bea.home" value="${deploy.bea.home}"/>
<classpath>
<pathelement location="${deploy.wls6.home}/lib/weblogic.jar"/>
<pathelement location="${deploy.wlp4.home}/lib/ext/jdom.jar"/>
<pathelement location="${deploy.wlp4.home}/lib/ext/HTTPClient.jar"/>
<pathelement location="${deploy.wlp4.home}/lib/p13n_system.jar"/>
<pathelement location="${deploy.wlp4.home}/lib/p13n/ejb/p13n_util.jar"/>
</classpath>
</java>
inside an ant target should be what you would want to do
HTH
deepak
"Zulfiqar" <[email protected]> wrote:
Hi All,
I am trying automate the EBCC sync process using Portal APIs. I think
it's very
common since it avoids the manual sync process & helpful in creating
batch process
using Ant. Is anybody did this before??, please let me know if you
have
any suggestions
etc.
Many thanks
Zulfi -
E-mail portlet - using OID user info
I am looking to write or re-use a portlet for sending e-mails.
I want the e-mail 'From' to be automatically populated by the Portal
user's definition in OID.
Is this information available through the Portal APIs ? The plsql API
wwsec_api.person_info looks in the Portal user table, which is no longer
populated as we use OID (right?).
ThanksWe have an implementation of Smtp Portlet, part of our Integration Portlets, it works just the way you want.
It also allows users to use OID Server as an AddressBook from where the user can pick and choose the
recipients.
You can get access to this on Portal Center (http://portalstudio.oracle.com).
You need to download the latest PDK.zip (January) from here.
http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO&12678_PDKHOME902_39847486.p_subid=288769&12678_PDKHOME902_39847486.p_sub_siteid=73&12678_PDKHOME902_39847486.p_edit=0
Note: You need to Sign In with your OTN account. -
Accessing OID API from Javascript
Hi,
is there a way to access OID API directly from the client side ? using javascript ? Thanks.
To help you understanding what I intend to do : I need to display a hyperlink but this hyperlink will be dynamic based on the "location" of the current user. This "location" can be found by querying OID.
Thanks.
JeffHi
You don't need client side scripting, neither XMLHTTPRequest. Just write a small PL/SQL procedure on the serveur that will create the link you want based on the current user/location retrieved from OID, then call it for instance with a dynamic page
In a dynamic page, write
begin
portal.my_package..my_proc;
end;
and my_proc on the server would do something like :
declare
lc_url long;
begin
-- retrieve into lc_url the oid info you need for current user, may be using additionnal wwctx_api library
htp.p('<a href="http://my_serveur/' || lc_url || ">link</a>');
end;
Loko -
Hi
can anyone help me in creatig a form and assigning it to a resource object.
please tell what all should i mention in the map which is to be passed to createForm() method.
Thank youHi all
what attributes i need to to map to create a from using OIM API
createForm Method?
I have tried with this but did not work:The form is getting created , i.e I am seeing an entry in DB.
At the same time I am aslo getting an exception which is whown below:
formMap.put("Structure Utility.Table Name", "SAM");
formMap.put("Structure Utility.Description", "TESTING API USAGE FOR FORM");
The Exceptions I get are :
Thor.API.Exceptions.tcInvalidNameException
at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.createForm(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.createForm(Unknown Source)
at com.thortech.xl.ejb.beans.tcFormDefinitionOperationsSession.createForm(Unknown Source)
09:05:13,772 ERROR [DATABASE] Class/Method: tcDataBase/writeStatement encounter
some problems: ORA-02089: COMMIT is not allowed in a subordinate session
java.sql.SQLException: ORA-02089: COMMIT is not allowed in a subordinate session
09:05:13,819 ERROR [ADAPTERS] Event: Adding Columns to SDC. has encountered an error.
09:05:13,819 ERROR [SERVER] Class/Method: tcDataObj/runEvent Error :EVT Fatal Rejection Occured
09:05:13,819 ERROR [APIS] Class/Method: tcFormDefinitionOperationsBean/createForm encounter some problems: maoErrors:Error Adding Column.
How can i resolve this?
When and where can I view the form that I have created?
Thank you -
Calling BRM from UDF using JNDI lookup with @EJB annotation
Hi Experts
I am trying to implement a UDF to invoke my BRM Rules set via JNDI Lookup instead of a SOAP Channel lookup.
I have had a look at the following links/docs:
Calling BRM from UDF using Public API
http://www.gleanster.com/system/resources/W1siZiIsIjIwMTIvMDgvMDcvMjAvNDcvNTAvNDMvVGhpbmdzX1lvdV9TaG91bGRfS25vd19hYm91dF9TQVBfTmV0V2VhdmVyX0JSTS5wZGYiXV0/Things%20You%20Should%20Know%20about%20SAP%20NetWeaver%20BRM.pdf
For item 1 above, the example looks really good, but it doesnt explain how I get access to the following required imports from my UDF:
import com.sap.brms.qrules.ejb.*;
import com.sap.brms.qrules.engine.AbstractProject;
import com.sap.brms.qrules.engine.RuleEngine;
import com.sap.brms.qrules.engine.RulesetContext;
import javax.ejb.EJB;
The second document is really good as well, but I could not figure out how to get it to work from my UDF.
So, can anyone help me to understand specifically what is required to get this to work?
Is is possible to invoke the rule set from my UDF?
How do I give my UDF access to all the required jars/imports?
I have manage to create a new DC (Development Component) with a public part and this enables me to get my code to compile on my local PC but I am not able to activate it due to the server not having access to the same java packages as my local copy.
Any help would be greatly appreciated.You resolve the dependency by importing the required jars with using the dependency tab for the mapping program.
As stipulated before, I have managed to resolve the dependency issue but I have now getting the same error as in the forum: Calling BRM from UDF using Public API
The specific error is:
com.sap.engine.services.cross.PortableRemoteObjectContainer.narrow(PortableRemoteObjectContainer.java:238)
Has anyome manage to get invoke a BRM Ruleset using JNDI? -
Hello.
I want to use OID as a single point for tnsnames saving. So, I has installed OID without WebLogic Domain from Oracle Identity Management 11.1.1.2.0 for Linux x86 64. DB for OID is 11.1.0.7.0.
As it seems, OID works, "bind successfull" and etc. But I can't tnsping any of descriptor, which has already been wrote into LDAP.
This is ldap search for descriptor s1
[oracle@s1db01 ~]$ ldapsearch -s sub "cn=s1" -p 3060 -h 10.128.164.139 -D "cn=orcladmin" -q
Please enter bind password:
cn=s1,cn=OracleContext,dc=fc,dc=uralsibbank,dc=ru
objectclass=top
objectclass=orclNetService
cn=s1
orclnetdescstring=(DESCRIPTION=(SOURCE_ROUTE=OFF)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.128.164.139)(PORT=1521)))(CONNECT_DATA=(SID=s1)(SRVR=DEDICATED)))
This is tnsping trace
nlstdipi: entry
nlstdipi: exit
nnfun2awanm: entry
nnfgiinit: entry
nncpcin_maybe_init: first request sent to name server will have ID 0
nncpcin_maybe_init: initial retry timeout for all name servers is 1500 csecs
nncpcin_maybe_init: max request retries per name server is 1
nngsini_init_streams: initializing stream subsystem, cache size is 10
snsgblini: Max no of descriptors supported is 65536
snsgblini: exit
nngtini_init_msg: initializing PDU subsystem, initial pool size is 2
nncpcin_maybe_init: default name server domain is [root]
nnfgiinit: Installing read path
nnfgsrsp: entry
nnfgsrsp: Obtaining path parameter from names.directory_path or native_names.directory_path
nnfgsrdp: entry
nnfgsrdp: Setting path:
nnfgsrdp: checking element LDAP
nnfgsrdp: Path set
nnfun2a: entry
nlolgobj: entry
nnfgrne: entry
nnfgrne: Going though read path adapters
nnfgrne: Switching to LDAP adapter
nnflboot: entry
nnflcgc: entry
nnflobc: entry
nnflobc: initialized new connection ctx 1e27ad30
nnflgcp: entry
nnfloiddisco: entry
nnflgetnlpactx: entry
nlpaxini: entry
nlpaxini: exit
nnflgetnlpactx: NLPA context successfuly initialized
nnflgetnlpactx: exit
nztysgs_genseed: entry
exit
nzddri_init: entry
nztysgs_genseed: entry
exit
nnfloidinfocache: entry
nnfloidinfocache: Info: Inserted value DIRECTORY_SERVER_TYPE=OID at index 0 into NLPA_CACHE
nnfloidinfocache: entry
nnfloidinfocache: Info: Inserted value DIRECTORY_CONNECT_METHOD=NONE at index 0 into NLPA_CACHE
nnfloidinfocache: entry
nnfloidinfocache: Info: Inserted value DIRECTORY_SERVSSL=s1db01:3131 at index 0 into NLPA_CACHE
nnfloidinfocache: entry
nnfloidinfocache: Info: Inserted value DIRECTORY_SERVERS=s1db01:3060 at index 0 into NLPA_CACHE
nnfloidinfocache: entry
nnfloidinfocache: Info: Inserted value DIRECTORY_SERVER_TYPE=OID at index 0 into NLPA_CACHE
nnfloidinfocache: entry
nnfloidinfocache: Info: Inserted value DEFAULT_ADMIN_CONTEXT=dc=fc,dc=uralsibbank,dc=ru at index 0 into NLPA_CACHE
nnfloidinfocache: entry
nnfloidinfocache: Attempt to discover CONTEXT_MAP from OID API failed with code 0
nnflctxmap: entry
nnflctxmap: cannot get contextMap: 408
nnfloiddisco: exit
nnflgcp: exit
nnflobc: directory server type is 1
nnflgcp: entry
nnflgcp: can't get config parameter PRIMSVR_CONNRETRY_EXPTIME
nnflgcp: exit
nnflgcp: entry
nnflgcp: exit
nnflrlc: entry
nnfldlc: entry
nnfldlc: exit
nnflpsl: entry
nnflgcp: entry
nnflgcp: exit
nnflpsl: No connect method found.
nnflgcp: entry
nnflgcp: exit
nnflpsl: host = 's1db01'
nnflpsl: port = 3060
nnflpsl: exit
nnflilc: entry
nnflilc: Opening sync conn to s1db01:3060
nnflalc: entry
nnflalc: bind <null> returns 0x0
nnflalc: exit
nnflilc: exit
nnflrlc: exit
nnflobc: exit
nnflcgc: exit
nnflboot: exit
nnfln2a: entry
nnflcgc: entry
nnflcgc: exit
nnflrne1: entry
nnfln2x: entry
nnfln2x: exit
nnflrne1: Quering the directory for dn: cn=s1,cn=OracleContext,dc=fc,dc=uralsibbank,dc=ru
nnflqbf: entry
nnflqbf: Search: Attrs[0]: objectclass
nnflqbf: Search: Base: cn=s1,cn=OracleContext,dc=fc,dc=uralsibbank,dc=ru; Scope: 0; filter: (objectclass=*) returns 0x30
nnflqbf: exit
nnflrne1: exit
nnfldlc: entry
nnfldlc: exit
nnfln2a: exit
nnfgrne: Query unsuccessful, skipping to next adapter
nnfgrne: exit
nnfun2a: address for name "s1" not found
nnfun2awanm: Getting the path of sqlnet.ora
nnfun2awanm: Getting the path of local and system tnsnames.ora
nnfun2awanm: exit
What is wrong? Any ideas?
Thanks in advance.So.... If you wanna do something, it would be better do it by yourself.
The problem was in port confguration and anonymous bind flag.
ldapmodify -U 1 -p 3131 -h s1db03 -D "cn=orcladmin" -q -v <<EOF
dn: cn=asinst1_oid1_1_s1db03.fc.uralsibbank.ru,cn=osdldapd,cn=subregistrysubentry
changetype: modify
replace: orclnonsslport
orclnonsslport: 44016
EOF
ldapmodify -U 1 -p 3131 -h s1db03 -D "cn=orcladmin" -qn -v <<EOF
dn: cn=oid1,cn=osdldapd,cn=subconfigsubentry
changetype: modify
replace: orclnonsslport
orclnonsslport: 44016
EOF
ldapmodify -U 1 -p 3131 -h s1db03 -D "cn=orcladmin" -q -v <<EOF
dn: cn=asinst1_oid1_1_s1db03.fc.uralsibbank.ru,cn=osdldapd,cn=subregistrysubentry
changetype: modify
replace: orclsslport
orclsslport: 44017
EOF
ldapmodify -U 1 -p 3131 -h s1db03 -D "cn=orcladmin" -q -v <<EOF
dn: cn=oid1,cn=osdldapd,cn=subconfigsubentry
changetype: modify
replace: orclsslport
orclsslport: 44017
EOF
And...
ldapmodify -p 44016 -h s1db03 -D "cn=orcladmin" -q -v <<EOF
dn: cn=oid1,cn=osdldapd,cn=subconfigsubentry
changetype: modify
replace: orclanonymousbindsflag
orclanonymousbindsflag: 1
EOF
ldapmodify -p 44016 -h s1db03 -D "cn=orcladmin" -q -v <<EOF
dn: cn=asinst1_oid1_1_s1db03.fc.uralsibbank.ru,cn=osdldapd,cn=subregistrysubentry
changetype: modify
replace: orclanonymousbindsflag
orclanonymousbindsflag: 1
EOF
And in addition I have changed /etc/services by adding lines with ssl and non-ssl ports.
Maybe you are looking for
-
There's something about Export Project I obviously don't understand. I have two small JPG-based projects, one (57 images) referenced, the other (77 images) managed in the Aperture library. On Export Project, for either one, I can check or uncheck "Co
-
SXPG_COMMAND_EXECUTE error
Hi All, Jobs in db13 are failing with below error. 04.08.2010 05:00:46 Job started 04.08.2010 05:00:47 Step 001 started (program RSDBAJOB, variant &0000000000059, user ID xxxxx) 04.08.2010 05:00:47 Execute logical command BRCO
-
True detective not available in hd on demand
Why is the new episode of true detective only available in SD on demand?
-
Automatic Windows Update keeps shutting off
I'm running windows 7 64-bit with Windows Defender, Windows firewall and ESET NOD32 anti-virus on a domain network. Automatic updates keep switching from automatic to manual mode several times throughout the day. Updates work fine, they just don't
-
Dear All At present I am using Business Area in ECC 6.0 (EHP4). The requirement is to derive Financial Statements at a Branch/Plant level. I was told that Business Area functionality is out of use and there wont be any further enhancements in the f