Eclipse: An IDE of Java/J2EE and for many more

October 31, 2010 Leave a comment

Eclipse is among the most commonly used IDE for Java and java related development. For the beginners, who only want to do “Javac” and “Java” it seems to them bit confusing.

For now; I will summarize couple of hot keys of Eclipse which sometime are very handy for developers to get the job done smartly!

# 1: CONTROL + SPACE (Ctrl + space)

You will get the list of options available for you

 

#2: F3:

Open Declaration: Class/Method/Variable etc

 

#3: Ctrl-Shift-T

I really like this short key, atleast alot in enterprise project. Type the name which you are looking for.

 

#4: Ctrl+Shift+O

For organizing imports

 

#5: Ctrl+ (Hold the Ctrl and press he plus button)

For commenting the selection of lines; Ctrl and minus uncomment the selection.

 

#6: Ctrl+Shift+M:

“Import” will added automatically.

 

#7: ALT + down arrow key

Duplicate the line where cursor is.

 

#8: F4

Show the hierarchy

 

 

Reference:

http://www.allapplabs.com/eclipse/eclipse_shortcuts.htm

 

 

Categories: J2EE - Frameworks

Web Services Invocation Framework (WSIF) — How to use in Jdev

Sometime we need to execute java code within BPEL Process, One possibility is to write java code within BPEL Process by using tag. WSIF is another way to do same thing. In this document, I will not compare these two ways to access the Java Code but the way to use the WSIF.

In this document we will do the following things:

• Create the Java Classes, and exposed as J2EE Web Services (details are in later part of document).
• Invoke the Web Services (Java Class as Web Services) from BPEL Process.
• Place classes somewhere such that classes available at runtime

Java Code as Web Service:

Create java classes which you want to expose as Web Service. In my case, I have created two classes “Greeting.java” and “Person.java”. To create the web service, right click on class and click on “create J2EE Web Service”.

The new dialogue box open as shown in figure below, select the “SOAP 1.1 Binding” and “WSIF Binding”.
step 1

After selecting the options mentioned above, click “Weiter(Next)”, then new dialogue box opens, where you can select the type of Message Format as shown in figure below.
step 2
After selecting the Message format type, click on “Weiter” and keep pressing next (All defaults options) until finish.

BPEL Process:

Create the empty BPEL Process as shown in figure.
step 3

Create Partner Link
Create the partner link and give the reference of WSDL created from Java Code. Select the Role Type as shown in figure.
step 4
While creating the Partner link, BPEL process ask for creating the local copy of WSDL, Click Yes (Ja) as shown in figure.
step 5
After clicking on Yes (Ja), it will ask for Creating partner link as shown in figure. Click on Yes (Ja).
step 6
Now you are ready with the Partner Link. The next step is to invoke the service

Invoking WSIF
Select the Invoke component and then select the desired operation and input/output variables as shown in figure. In my case, “testInit” is operation.
step 7
Now you are ready to use the WSIF, the final BPEL Process looks a like
step 8

Deployment of Java Classes:
Firstly we have to deploy the BPEL Process along with the WSDL which describes the Java class as web service. BPEL Process requires classes which are referenced by WSIF at runtime, so one way is to place the class files at ORACLE_HOME/bpel/system/classes directory.

Hope it helps…

Handmade things for decoration

Hi,

Being a art lover and during my visit to home, i came across  such a beautiful handmade items that i can not imagine. I bought some pieces for home and i hope you also like it.  Here are some picture of pieces which i liked  most.

Note: If you are interested to buy any of these items at reasonable price, let me know.  I will guide you rest of the things. These are no doubt worthless things.

 

Happy Birthday! dude

February 14, 2009 Leave a comment

Today, my Blog has first birthday. I remembered correctly that last year i was free and i came up the idea to have a small blog.

I did, what i thought and today is the reality. Its a year now.

This is link for my first blog ever.

http://noorws.wordpress.com/2008/02/14/hello-world/

Things are dramatically changed from last year. Now we are passing through the economic crisis.  Sometime i have seen people hopeless and sometime vice versa.

but

I will say only 1 thing.

“This world is not end of World” and seasons change!

Message for peace.

Categories: Uncategorized

Working with Rules – Drools

September 12, 2008 Leave a comment

Drools, formally called JBoss Rule(http://www.jboss.org/drools/). Its a best Rule Engine in open source community. So what  it is about.

Very simple

1. You have rules like if then (.drl file)
2. You have Java Object
3. Submit java object to rule engine

For example

Employee emp = new Employee(1, ‘Waqas Noor’)
ruleengine.submit(emp) ;

ruleengine is like

rule
     when 
            emp : Employee (name=’Waqas Noor’) 
    Then
            System.out.println(“Its so simple”)
end

The .drl translated into like

—– Code —-
if(emp.getName().equals(“Waqas Noor”))
        System.out.println(“Its so simple”); 

 its just a start; there is much to do; its really a fun to work with drools, visit for more detail (http://www.jboss.org/drools/)

Categories: Drools Tags: , ,

Wicket! A new web framework

May 11, 2008 2 comments

Perhaps its too early to say about Wicket web Framework but one thing is sure that Wicket contributes towards J2EE community.

Wicket is new Object Oriented web Framework, provides seperation of Presentation layer with Busniess layer. Wicket basically wrap the HTML Tags and provides full control in your Java Code.

The nice thing about Wicket is, there is no rocket science in it and provides the platform for Rapid Application Development.

In short;

Your Application = WICKET HTML TAGS + Pure Java Code (No XML Files, etc)

For starting point, have a look at

http://www.netbeans.org/kb/55/quickstart-wicket-in-netbeans.html

Presentation layer JSF ?

May 5, 2008 1 comment

Hi,

Starting project with right technologies is really big investment. If you are intended to use JSF as your presentation layer then must have a look at JBoss Seams.

In short,

  1. No managed bean handling.
  2. Lots of other features for JSF.
  3. Ajax for JSF
  4. Entity beans as Managed Beans and Domain Model Classes.
  5. No XML configuration for settings, Annotation based.

If you have some more points to share; don’t hesitate to write comments.

Messenger Nicks – PhD Topics

April 27, 2008 1 comment

Hi,

I have an idea to list my all nicks here; which can your PhD research topic.

Here goes …

  • Only Change is Constant.
  • Knowledge is Power and Power is Money.
  • A Life is true sense of Death.
  • A DAY will come soon!
  • With faith, discipline and selfless devotion to duty, there is nothing worthwhile that you cannot achieve.
Categories: Uncategorized

so you want to Play with Spring — J2EE Framework

April 21, 2008 Leave a comment

Hi,

If you are intended to work with Spring Framework then have a look at this site.

http://www.javapassion.com/j2ee/index.html#Spring_Framework

Follow

Get every new post delivered to your Inbox.