raj joe

Ranch Hand
+ Follow
since Mar 17, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by raj joe

public MAPIService getBPMService()
{


BPMServiceHome BPMServiceHome = (BPMServiceHome) getBPMServiceHome();
BPMAPIService BPMService = null;


try
{
BPMService = BPMServiceHome.create();
}
catch (Exception e)
{
Logger.log(Logger.SEVERITY_ERROR, LoggerId.DEFAULT_ID,
"Util - getBPMService()");

e.printStackTrace();
}

Logger.log(Logger.SEVERITY_DETAIL, LoggerId.DEFAULT_ID,
"Util - getBPMService() - end");
return BPMService;
}

/**
* For getting service Home
*
* @return object
*/
private Object getBPMServiceHome()
{
Logger.log(Logger.SEVERITY_DETAIL, LoggerId.DEFAULT_ID,
"Util - getBPMServiceHome() - start");

String propertyFile = Constant.propertiesFile;

String factory = ReadConfiguration.getConfig(propertyFile, Constant.WF_FACTORY);
String url = ReadConfiguration.getConfig(propertyFile,Constant.WF_URL);
String credential = ReadConfiguration.getConfig(propertyFile,Constant.WF_CREDETIAL);
String principal = ReadConfiguration.getConfig(propertyFile,Constant.WF_PRINCIPAL);
String jndi = ReadConfiguration.getConfig(propertyFile,Constant.WF_JNDI);



Properties props = new Properties();

props.put("java.naming.factory.initial", factory);
props.put("java.naming.provider.url", url);
props.put("javax.naming.Context.SECURITY_CREDENTIALS", credential);
props.put("javax.naming.Context.SECURITY_PRINCIPAL", principal);

InitialContext initialContext;
Object obj = null;

try
{
initialContext = new InitialContext(props);
if (props != null)
{
obj = initialContext.lookup(jndi);
}
}
catch (NamingException e)
{
Logger.log(Logger.SEVERITY_ERROR, LoggerId.DEFAULT_ID,
"Util - getBPMServiceHome()");

e.printStackTrace();
}

Logger.log(Logger.SEVERITY_DETAIL, LoggerId.DEFAULT_ID,
"Util - getBPMServiceHome() - end");
return obj;

}


Config entries

WF_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory
WF_URL=corbaloc:iiop:ctsblrsun27:2815
WF_CREDETIAL=wps
WF_PRINCIPAL=wps
WF_JNDI=ejb/com/nyt/workflow/bpc/api/ejb/NYTBPMServiceHome
I am trying to call a EJB from a POJO class , it is throwing the following error (below stack trace) I am using IBM RAD.

Exception in thread "P=37236 =0:CT" java.lang.NoClassDefFoundError: org/omg/CSI/EstablishContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1747)
at java.lang.Class.getConstructor1(Class.java:2063)
at java.lang.Class.newInstance3(Class.java:331)
at java.lang.Class.newInstance(Class.java:305)
at com.ibm.rmi.pi.InterceptorManager.runPreInit(InterceptorManager.java:155)
at com.ibm.rmi.corba.ORB.initializeInterceptors(ORB.java:487)
at com.ibm.CORBA.iiop.ORB.initializeInterceptors(ORB.java:986)
at com.ibm.rmi.corba.ORB.orbParameters(ORB.java:1362)
at com.ibm.CORBA.iiop.ORB.orbParameters(ORB.java:1251)
at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1276)
at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1839)
at org.omg.CORBA.ORB.init(ORB.java:368)
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:82)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:174)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:97)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:73)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:386)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:285)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:373)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
----------------------------------------------------------

note I have included the jars :

<classpathentry kind="lib" path="lib/iwsorb.jar"/>
<classpathentry kind="lib" path="lib/sas.jar"/>
<classpathentry kind="lib" path="lib/wssec.jar"/>
<classpathentry kind="lib" path="lib/bootstrap.jar"/>
<classpathentry kind="lib" path="lib/ebus405.jar"/>
<classpathentry kind="lib" path="lib/ecutils.jar"/>
<classpathentry kind="lib" path="lib/emf.jar"/>
<classpathentry kind="lib" path="lib/ibmorb.jar"/>
<classpathentry kind="lib" path="lib/ibmorbapi.jar"/>
<classpathentry kind="lib" path="lib/lmproxy.jar"/>
<classpathentry kind="lib" path="lib/naming.jar"/>
<classpathentry kind="lib" path="lib/namingclient.jar"/>
<classpathentry kind="lib" path="lib/ras.jar"/>
<classpathentry kind="lib" path="lib/wsexception.jar"/>
One of my action classes is using lots of if else checking to call 6 private methods based on some request paramater (just selection in screen)

What is the best pratice to avoid such if else code in my action class?
Does struts provide any option?is reflection recomdnded for this scenerio?
18 years ago
What are the advnatages and disadvantages of using DynaForms in struts.
Please can you give me an example
18 years ago
I have a Datamodel, i need to design hiberbnate java classes and xml files.
What is best way to do this?are there any tools to do it?
I am new to hiberbnate.
I am trying to arrive at classes that map my database tables.

I have a class which consists of data from 3 tables and also keys of all the 3 tables in the same classes as my view needs data in that fashion.Is this right? , can I map this class to tables in hibernate?

Please let me know some design patterns that we can use with hibernate?

Originally posted by Roger Nelson:
Here are some articles that discusses JSP , XSL and XML.
JSP_XML_XSL
JSP OR XSL

Personally I am not comfortable with xsl solely as a view ( in mvc architecture).
Find it to be difficult to do things with xsl compared to what a jsp can do, but if the view is pretty dumb and does not require mainipulating the data xsl should satisfy as view.




My client is stuck with XML/XSL and JSP.I just want to know how do I use both Jsp and XML\XSL.Can a jsp page with some static html content , jstl/struts tags and XSL tags be displayed on a mobile device without any issues.

How do I handle pagination in the above case?
18 years ago
JSP

Originally posted by Merrill Higginson:
If I were starting a project that required support for multiple devices, I'd use JSF. JSF has good separation between the content being displayed and the way it's being displayed. By using different rendering kits, you can display the same control on two different devices. The only down side of JSF is that it's still a relatively new technology and you may not be able to find a rendering kit for the specific device you need to use. You may end up having to write some of this low level code yourself.

If your client has already made up their mind about using XML/XSL, then I guess there's not much you can do about it, but I'd really push for JSF if their minds are still open.

If you do go with XML/XSL, You can certainly handle the page navigation with Struts. You won't be able to use the Struts custom tags, though, or make much use of the ActionForm.



Merrill

My client is stuck XML/XSL.I just want to know how do I use both Jsp and XML\XSL.Can a jsp page with some static html content,JSTL tags,struts tags and XSL tags be displayed on a mobile device without any issues.

Is it better to have seperate jsp for diffrent devices/clients.

How do i handle pagination in the above case with XML/XSL and JSP?
[ June 05, 2006: Message edited by: raj joe ]
18 years ago
What are the benefits of JSP + XSL + XML approach?

What actually gets into JSP,xsl and xml?Can we still use jsp tags,struts tags,Tiles frameowrk etc.
18 years ago
JSP
Requirement from the customer : Multiple Device Support provision in the presentation layer.They suggest the following approach using xml/xsl
Controller servlet > Action class > DAO
when an xml string is returned from the DAO,action class uses xml/xsl tranfomer to html.

1.Can struts still be used here and what features of struts and JSP will in loose out here.
2.Will there be .JSP pages in the approach as I see html is generated by the transformer
3.Can struts alone as the presnetaion layer framework ,still catering to multiple device support,without xml/xsl.
18 years ago
Can anyone suggest me a good book on software archiecture in genral and also talking about J2EE application archiecture(JMS,SOA, EJB ,Patterns etc), in specific (covers 4+1 views etc)

It should help me making a decision on choice of technologies/tools available in J2EE and on best patterns and pratices is all layers of the archiecture.
[ May 11, 2006: Message edited by: raj joe ]
Can anyone guide to to a book that covers in All java packages and API details.
I have a oracle DB with some data .I have exported the data to an XML file.
Now I want to compare the data in the XML and the database.

do you know of any tools that can help me ?
What is the mechanism generally adapted to meet the following
1.Hardware failover
2.Software failover
3.Application failover
4.Disaster Recovery