Check out this SlideShare Presentation:
Wednesday, September 08, 2010
The Cassandra Distributed Database
Wednesday, June 16, 2010
Caution while using "and" and "or" operator in standard visual snippet
The "and" & “or” operator from standard visual snippet doesn't execute the way it is getting executed in Java. In visual snippet case it does differently
The translated code
java.lang.String __result__1 = null;
input1 = __result__1;
boolean __result__4 = input1.trim().length() != 0;
boolean __result__3 = input1 != null;
boolean __result__5;
{// and
__result__5 = __result__3 && __result__4;
}
In the above snippet the string is null, when using the "and" & “or” operator. It executes the left and right hand side conditions separately and stores in a variable and then does an 'and' operation on the variable.
While executing you will get a null pointer exception, because the string is null on top of that we are trying to trim().length()
The visual snippet operator will unnecessarily execute both the left and right hand side conditions which we don't want to do
To avoid this use the 'and' logical operator '&&' in the visual snippet.
boolean __result__6 = input1 != null && input1.trim().length() != 0;
In this case it executes as it does it in Java the safer way. :-)
Wednesday, March 31, 2010
Connect windows VOBs from solaris: Clear Case
Not sure whether this is will be a everyday requirement, but this one popped in front us some time back. Like all other things we kept this so called idea on the shelf and kept watching. At last we decided to try this out so that we can implement this setup. Rolled up our sleeves and got it to action
First downloaded the clear case solaris installation passport advantage. Download the clear case as per our requirement check before downloading whether it's for Intel (X86) or for SPARC.
After downloading copy those file to target machine where installation needs to be done.
Make sure you have enough space on the target machine (preferably free space 2GB)
Check whether you have root user access before starting the installation
From the downloaded installation copy you will find cc_ms_install.pdf keep that open you might need that for reference and Google at standby ;-)
We followed this technote which worked
Add the machine name and IP in the hosts file in both the machines (UNIX & windows vice versa) to identify in the network
Installation
Run the site_prep script which will prepare the environment before installation, will ask about the registry server and license server.
Note: The registry & License server should be common one for windows for Linux
Enter the details which you know, skip the other details or confirm it twice before entering.
After that completion of script run install_script file for installing actual clear case
Select standard installation, since you have already entered the necessary data in site_prep it will ask for confirmation. So keep going
Clear Case Setup
Create a UNIX region in solaris machine using the clear case command for creating region
After region creation, make sure the region created is visible on windows machine & solaris machine
Here After follow whatever given in the article which you have opened
Create the UNIX snapshot view (check the article)
Create the VOB tag for the UNIX region (check the article)
Load the VOB
Pitfalls
While creating snapshot view, check the option carefully there is value "-tmode strip_cr" which will make your files loading will be slow and may not load some of the files which are not compatible to UNIX.
Loading the VOB, if you loading ends up only top level folder, follow this
Here is small trick if you follow the article the clear case will be loaded but only the top level folders will be loaded., You are correct this behaviour is not common if you face this. We have a solution. create a snapshot view in windows using that view open the edcs, copy the contents in that and use the same in your UNIX machine. There goes all your files will start loading.
I'm not a SCM guy and many thanks to subbu who ran the show and for PS & naveen for helping and guiding to make this happen.
There was not enough material on this topic, so thought of my 2 cents contributions to the SCM community. ... :-)
Thursday, March 04, 2010
Check ActiveX Controls Enabled through JavaScript
Interenet Explorer has activeX controls, which can be controlled by user. Before allowing user to access the application which uses activeX controls it is good to run a check on the users browser requirements.
Standard set of the browser check is easy and pretty common like
- JavaScript Check
- Cookie check
- Adobe Reader Check
- Windows Media Player Check
But to check whether the user has disabled activeX controls there is no straight forward way (as of i knew...if any body know do let me know).
One more way is to create an AJAX request, and check whether we can create XMLHTTP request. If you disable activeX controls in the Internet Explorer options the XMLHTTP request object created will be empty.
Code snippet
function createRequestObject() {
var xmlhttp;
try {
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
try {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e) {
xmlhttp=null;
}
}
if(!xmlhttp&&typeof XMLHttpRequest!="undefined") {
xmlhttp=new XMLHttpRequest();
}
return xmlhttp;
}
var activex=createRequestObject();
if(activex==null) {
alert('activex Disable XMLXTTP');
} else {
alert('activex Enable XMLXTTP');
}
I have ran tests on this code and looks good. There one more way to do activeX check, thats is via windows Media player check
Here is the code for that
var minVersion = "11";
var WMP = PluginDetect.isMinVersion('WindowsMediaPlayer', minVersion);
if (WMP == -2) {
alert('activex Disable XMLXTTP');
} else {
alert('activex Enable XMLXTTP');
}
This snippet also works fine, but we may land into trouble when the system doesn't have windows Media player. So the latter one is safe bet.
Saturday, February 20, 2010
Experince with Omni E
Some (hmmm...not right) most of the lesson are learned in hard way. This suits for every person. I learned some most important lessons while driving in hardd way. Last Saturday i started my journey from my home town to BLR. Loaded the petrol and start driving checked the spare tire (stepney commonly in india) which is good condition. So started my journey towards the destination. Maintained a speed of 80 to 90 KM/h along the course checked the fuel in between which was ok. After some 2 hours of driving i noticed one of the lights on the dashboard started glowing.. i was curious but it was on the highway so i waited to enter some town to check whats the indication meant kept on driving...Entered a city there is unusual sound coming from the engine so we stopped the vehicle.
checked the dashboard clearly my god the temperature is on highhhhh. we stopped the vehicle were struggling to open the radiator to check at last we succeed. i have seen those kind of heat from the engine in some movies now i experienced the same in my vehicle ..we waited for some time poured some water and waited the temp to come down..it came down bit so our next plan is to take the vehicle to garage and check. We took the vehicle to a local garage and he said the upper horse connecting the radiator and engine got damaged so he said that needs to be replaced we agreed and after replacement we started again we drove some distance and found again the same thing is happening so drove back to same garage guy.He told he needs to open the engine and check further The time was almost 9 PM, i decided to go an authorized service station. So halted the night at Gobi's uncle house .
The very next day went to the authorized guy for check. He said the same thing as the local guy. They opened the engine and found the head had some issues he said it will take easily two or three days to repair that. No going back we accepted for the changes and work is currently going on.
The entire story could be avoided if before traveling radiator water, engine oil and coolant has been checked and my negligence in doing that has caused this. luckily there was no family members traveling with me at that time it was just us so we managed this situation.
So the hardd lesson do check the above said things before starting a trip and keep an eye on the temp if anything seems suspicious stop immediately and call the on road service guys to assist you.
Saturday, November 14, 2009
Search Everything
Windows search the most i hate in windows, its takes hell lot of time. This were my buddy sandesh introduced everything an amazing search tool which is very lite and fast. After installing it just creates an index of your drive within seconds and thats it. From there you have super fast search on your windows.
Wednesday, October 21, 2009
WebSphere Technical Exchange Web cast
There is web cast organised by IBM on Mediation Module Development in WebSphere Integration Developer (WID). The main contents that to be discussed are creating a Mediation flow, re-using Mediation logic in subflow components, XPath builder, transforming messages, invoking external services using CallOut component, and aggregating and broadcasting messages using Fan-out, Fan-in components.
Web conference URL: link
Password/Conference ID: wste27oct
View presentation click here
For more info click here
Timing : October 27, 2009 11 AM EDT
Thursday, July 30, 2009
FireFox 1 Billion Downloads
The day has come and nothing is stopping Firefox to marching ahead of one billion download. Fire Fox is one of the browser that is penetrating deep into IE market share. And its a serious time for Microsoft to go back drawing board and to reinvent in these Era. Keep it going Mozilla, check this site http://www.onebillionplusyou.com/
Spread the word
Sunday, June 14, 2009
War of Browsers
web2.o is almost filled with Ajax, faster response time and eye stunning/catching UI designed with the help of the new languages. I think the time is over of web2.0 and web3.0 has already started. The power of internet is increasing every day everybody is preparing to get their chunk in this time.
Mozilla with FireFox 3.5, Microsoft with IE, Opera with Freedom, Apple with Safari and Google's none other than chrome these are big daddy's in today market place (usage list). No doubt Microsoft holds major chunk of the market. But the others are also catching, with google entering and Apple releasing its browser to other than Mac OS systems had really heated the war.
In way Micorsoft still has upper hand with its OS is being largerly used so the deafult browser stays as IE. No wonder the others OS Mac OS, linux (ubuntu) and upcoming Android will give a tough competition to microsoft. So that there will be slight disturbance to the microsoft market share but that day lies far (not so far :-) ).
Once the other OS starts showing up, it will automatically refelect the browser market share. Retaining number 1 poistion will not be so easy. B'coz the WWW is moving to other dimension the bandwith is getting increased day by day. so companies has to prepare themselves to face the challenge.
Its the innovation, cutting edege technology and larger developer base. so that it can grow at the same time get reinvented every day by their own users will help these companies to sharpen their weapon at the battlefield
Sunday, April 12, 2009
Monday, April 06, 2009
Elections 2009
Google in partnership with HindustanTimes has launched site for Lok Sabha Elections 2009, It contains consitutency map search, data from conitutency, feeds from various source, news, blogs and videos about elections.
Addiional information like earlier contenders from the consitutency and cool one is search for polling booth details but this is for only for selected cities
Yahoo do have a elections special webpage election '09, It does not have the feature of google. It simply had news feed, analysis, opinon.
Google coverage seems interesting it has quite good lots of data, i searched for consitutency coimbatore it gave the details of the person who has selected earlier and gave his history too
Yahoo lacks with these details, Google always has an upper hand,
For more information about this just go through this article inTechCrunch
Saturday, April 04, 2009
Ayan Review
Ayan Much expectations for the movie ......but frankly speaking its not a great movie, normal movie with all kind masala that makes it run all the centers (A,B,C). There are two things in the movie which i liked for sure its surya and the cinematography. The later one is different they have used different tones(textures,colors) for the scene's in africa and songs. Africa is colorful from the camera views. I didn't except the same location and same kind of song from Aamir ghajini "Guzarish". 
The first stunt scene in africa was good, it was a combination of different Hollywood movies still it was good (Bounre, Casino Royale)
The screenplay and plot could have been much better. Songs nothing fits .Surya is the one who can do much better roles, in my point he should try different kind of challeging characters and he has the capability and commitment to perform those characters. Finally still it is surya movie, he stands out from every other with his performance can be watched
Waiting for Aadhavan
Tuesday, March 31, 2009
Google Reader
Before using Google Reader (Aggregator) when ever i want to check the blog i used to open every site which is in my bookmark list. I hate this process its time consuming. Then some where in the net some one pointed about Google Reader. Wonderfull application, subscribe to feeds updates are realtime if the site has feeds. All the updates in one single page lots of shorcuts.
Cute application i personally belive every one should use google reader (or some other app which os similar to Google) kind of application to make u r life simpler
List of feed Aggregator Comparison of feed Aggregator
Saturday, March 14, 2009
Back Home .....its like heaven
One month back to back meetings ............night outs ..........late nights ..........but no exams ????....its a techie life...its project release i (sorry not singular its must be plural) we worked like mad for more than a month.This has become routine in tech industry there will be peak timings of work and the drop of the curve once it goes 2 maintenance face.
After heavy work you need to recharge yourself again for another big peak, taking off from the work is important. It helps to shed off your stress and get back the original identity or your way of lifestyle.
Work hard.......take a little time off ..........and enjoy the other essence of life :-)
Tuesday, February 24, 2009
Error "org.omg.CORBA.portable.UnknownException: vmcid: 0x0 minor code: 0 completed: Maybe]"
I was bugged by this error yesterday. I didn't have any clue. I tried to do clean build on WID (WebSphere Integeration Developer). Its doesn't help. Restarted the server couple of times, removed from the server and published again no way & no improvements not even a single step forward.
Exception stack trace: javax.naming.NamingException: Error during resolve [Root exception is org.omg.CORBA.portable.UnknownException: vmcid: 0x0 minor code: 0 completed: Maybe]
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1939)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1862)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1552)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1354)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:172)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at com.ibm.ws.sca.internal.ejb.util.EJBLocator$JndiLocator.locate(EJBLocator.java:464)
at com.ibm.ws.sca.internal.ejb.util.EJBLocator.locate(EJBLocator.java:442)
at com.ibm.ws.sca.internal.ejb.util.EJBObjectFactory.createStub(EJBObjectFactory.java:72)
at com.ibm.ws.sca.internal.ejb.util.EJBStubAdapter.getStub(EJBStubAdapter.java:87)
at com.ibm.ws.sca.internal.ejb.util.EJBStubHelper.lookup(EJBStubHelper.java:89)
at com.ibm.ws.sca.internal.ejb.util.EJBStubHelper.lookup(EJBStubHelper.java:82)
at com.ibm.ws.sca.internal.binding.handler.SCAImportBindingHandler.getExportEJBStub(SCAImportBindingHandler.java:146)
at com.ibm.ws.sca.internal.binding.handler.SCAImportBindingHandler.processMessage(SCAImportBindingHandler.java:221)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:843)
at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.processUOWMessage(ModuleSessionBean.java:338)
at com.ibm.wsspi.sca.ejb.module.impl.ModuleSessionBean.transactionNotSupportedActivitySessionNotSupported(ModuleSessionBean.java:287)
at com.ibm.wsspi.sca.ejb.module.EJSLocalStatelessModule_43132892.transactionNotSupportedActivitySessionNotSupported(EJSLocalStatelessModule_43132892.java:131)
at com.ibm.ws.sca.internal.uow.handler.UOWStrategyImpl.transactionLocalActivitySessionFalse(UOWStrategyImpl.java:386)
at com.ibm.ws.sca.internal.uow.handler.JoinUOWHandler.processMessage(JoinUOWHandler.java:131)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessageWithPCI(MessageDispatcherImpl.java:725)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1166)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)
at com.ibm.ws.sibx.mediation.flowaction.impl.sca.SCAInvocationAction.invokeSync(SCAInvocationAction.java:531)
at com.ibm.ws.sibx.mediation.flowaction.impl.sca.RetryControl.invokeByStyle(RetryControl.java:327)
at com.ibm.ws.sibx.mediation.flowaction.impl.sca.RetryControl.invokeWithRetry(RetryControl.java:221)
at com.ibm.ws.sibx.mediation.flowaction.impl.sca.ServiceInvocation.complete(ServiceInvocation.java:124)
at com.ibm.ws.sibx.mediation.flowaction.impl.sca.FlowActionFactoryImpl.create(FlowActionFactoryImpl.java:667)
at com.ibm.ws.sibx.mediation.primitives.serviceinvoke.ServiceInvokeMediation.invokeFlowAction(ServiceInvokeMediation.java:469)
at com.ibm.ws.sibx.mediation.primitives.serviceinvoke.ServiceInvokeMediation.mediate(ServiceInvokeMediation.java:390)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.performInvocation(JavaMediationPrimitive.java:323)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.invoke(JavaMediationPrimitive.java:217)
at com.ibm.ws.sibx.scax.mediation.engine.SIBXJavaMediationPrimitive.invoke(SIBXJavaMediationPrimitive.java:93)
at com.ibm.ws.sibx.scax.mediation.engine.MediationPrimitive.invokeConnections(MediationPrimitive.java:311)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.fireOutputTerminals(JavaMediationPrimitive.java:419)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.performInvocation(JavaMediationPrimitive.java:345)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.invoke(JavaMediationPrimitive.java:217)
at com.ibm.ws.sibx.scax.mediation.engine.MediationPrimitive.invokeConnections(MediationPrimitive.java:311)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.fireOutputTerminals(JavaMediationPrimitive.java:419)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.performInvocation(JavaMediationPrimitive.java:345)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.invoke(JavaMediationPrimitive.java:217)
at com.ibm.ws.sibx.scax.mediation.engine.MediationPrimitive.invokeConnections(MediationPrimitive.java:311)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.fireOutputTerminals(JavaMediationPrimitive.java:419)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.performInvocation(JavaMediationPrimitive.java:345)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.invoke(JavaMediationPrimitive.java:217)
at com.ibm.ws.sibx.scax.mediation.engine.SIBXJavaMediationPrimitive.invoke(SIBXJavaMediationPrimitive.java:93)
at com.ibm.ws.sibx.scax.mediation.engine.MediationPrimitive.invokeConnections(MediationPrimitive.java:311)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.fireOutputTerminals(JavaMediationPrimitive.java:419)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.performInvocation(JavaMediationPrimitive.java:345)
at com.ibm.ws.sibx.scax.mediation.engine.JavaMediationPrimitive.invoke(JavaMediationPrimitive.java:217)
at com.ibm.ws.sibx.scax.mediation.engine.MediationPrimitive.invokeConnections(MediationPrimitive.java:311)
at com.ibm.ws.sibx.scax.mediation.engine.Input.invoke(Input.java:137)
at com.ibm.ws.sibx.scax.mediation.engine.RequestFlow.invokeFlow(RequestFlow.java:132)
at com.ibm.ws.sibx.scax.mediation.engine.MediationFlow.invokeRequestFlow(MediationFlow.java:135)
at com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean.invokeRequestFlow(MediationFlowBean.java:230)
at com.ibm.wsspi.sibx.mediation.flow.ejb.EJSLocalStatelessMediationFlow_f5ad87fe.invokeRequestFlow(EJSLocalStatelessMediationFlow_f5ad87fe.java:127)
I got tensed thinking of the whole day, will go in vain in debugging this issue. Search didn't give us much information. Then got some clue from devworks forum. Oops there were lot of unanswered questions, few of them got some suggestions same as clean+build and deploy.
I tried a different combination, removed the project from server. (checked in the admin console). Delete all the projects which are generated by WID (App,EJB and WEB Projects). Then do a clean build and deploy application. Mostly this works b'coz it worked for me.
Note : Even after the below steps your facing the problem check in devworks or open a PMR with IBM.
Thursday, February 19, 2009
BO Map Failure at runtime with null pointer Exception
The issue is the BO Map was failing at runtime giving null ponter exception at a custom map, i got really confused looked every thing in the custom map. All the value was checked to null or it is intialized to default. After doing all this again the same error kept on throwing.
Wait i remember something, i checked the right hand side BO (to BO) to which value needs to be assigned. That particular BO was null. Why this ? :-(
There is a file named map.config.properties which is located in runtimes/properties/ folder of your WID/WPS installation location. That file has an important property set which is
createChildBOsbyDefault=false
if this is set to false if there is custom mapping where the value needs to set to a particular field of the BO, at first we need to create the BO otherwise there should be move option to that particular. unless the above two occurs the BO will be always null. If you try to assign a value to field in the BO. It will throw null pointer exception (check the above screenshot)
In order to overcome the issue, before doing a custom assign to variable to the BO, first create that BO or make a move. The move should be always before the custom assign (exceution order) check the below screen shot

Wednesday, February 11, 2009
TKDL Traditional Knowledge Digital Library
TKDL, Traditional Knowledge Digital Library is a mammoth effort by indian goverment to save the bio-piracy battle. India home of ayurvedic, unani and siddha medicines and has history that traces back to more than 5,000 years ago.
These This knowledge has generally been passed down by word of mouth from generation to generation. A part of this knowledge has been described in ancient classical and other literature, often inaccessible to the common man and even when accessible rarely understood. Documentation of this existing knowledge, available in public domain, on various traditional systems of medicine has become imperative to safeguard the sovereignty of this traditional knowledge and to protect it from being misappropriated in the form of patents on non-original innovations, and which has been a matter of national concern.
India fought successfully for the revocation of turmeric and basmati patents granted by United States Patent and Trademark Office (USPTO) and neem patent granted by European Patent Office (EPO). As a sequel to this, in 1999, the Department of Ayurveda, Yoga & Naturopathy, Unani, Siddha and Homoeopathy-(AYUSH),erstwhile Department of Indian System of Medicine and Homoeopathy(ISM&H) constituted an inter-disciplinary Task Force, for creating an approach paper on establishing a Traditional Knowledge Digital Library (TKDL).
The project TKDL involves documentation of the knowledge available in public domain on traditional knowledge from the existing literature related to Ayurveda, Unani,Siddha and Yoga, in digitized format in five international languages which are English, German, French, Japanese and Spanish.
Under normal circumstances, a patent application should always be rejected if there is prior existing knowledge about the product.But in most of the developed nations like United States, "prior existing knowledge" is only recognized if it is published in a journal or is available on a database - not if it has been passed down through generations of oral and folk traditions.
But now we have TKDL
Tuesday, February 10, 2009
Review Naan Kadavul

Naan Kadavul is from bala, as his previous movies this has also become a master piece. Almost all the departments of the movie are superb.Ilaiyaraaja has once again given a wonderful music and background score (he is the only man who can do this). Arya was unimaginable with his previous chocolate boy characters this movie brings the acting part, pooja was also equally good. But in my point arya did a amazing job.
These kind of movies bring lots of fresh blood in to the tamil movie industry.Bala has sculpterd this movie with arya and has taken almost three years to complete it.I think the time he took is worth.Arthur Wilson did his own way of magic and brought lot of richness to the film.
The movie plays around arya and has captured the life of Aghori, who are a sect of sadhus. Wonder full piece of movie from bala. must watch.
In my point of view its superb movie.
Thursday, February 05, 2009
using promoted properties websphere enterprise service bus aka ESB
The concept of the promoted property is dynamic change without restarting or reinstalling the application again. ESB is used mostly in integeration space. Each and every down time of app change counts. This is very good feature. The implemenatation example goes like this.
For example there is two type of implementations which will be used in the mediation flow, only one of the implementation will be used which one to use will can be configured using the promoted property.
Use "MessageFilter" primitive. In the details select the distribution as "First" . And in the filters tab using xpath create two terminals "match1" and "match2".Click on the promoted properties you can see the filter property is promoted field. select the two field and give alias name different.
Wire the "match1" terminal to one application and "match2" to other application.
Deploy the application. Log in to the admin console. Go the sca modules. This will display all the applications deployed in the server.Select the application and then select mdoule properties there you can see your two properties

Give the value such that it passes one condition (it will use one application at a time). If you gave both the conditions as true. since you have given distribution as first. The first condtion matched terminal will be fired.
If you want all the terminals to be fired then set the distribution property as "All". It will the check all the conditions and fires which ever matching
Tuesday, January 27, 2009
Calling Stand alone reference from an EJB
It is as simple as mentioned, calling stand alone reference from an EJB. Create an EJB project let us use stateless session bean here as an example. In the EJB bean add the method which you want to call and use the piece of below code.
ServiceManager serviceManager = new ServiceManager();
(interface) service= (interface)serviceManager.locateService("");
After the lookup, with the help of service call the interface
and the operation with the parameters
service.operationname(parameters);
Add the newly created EJB project to your BEPL/Mediation Module App or project.
While creating the EJB project itself you will see option for
specifying App project,At the place use the ModuleApp Project Name.
For testing the EJB, use universalTestClient http://localhost:9080/UTC/
