Force.com IDE MavensMate for the serious Apex developer

You are frustrated with coding Apex in Eclipse because it is slow or you are coding in the browser 😦 not the best thing when you close the window and loose all your code…to the rescue MavensMate. MavensMate is an Force.com IDE is an add-on project running on Sublime Text 2. I have been using MavensMate for a while now and have seen a great benefit in time, auto completion (less time typing) and just easier all in one experience from coding, testing to deployment.

The following functionality is awesome:
1. Code completion
2. Quick code search
3. When code is saved, validation takes a few seconds (compared to Eclipse it is faster)
4. Testing code inside MavensMate is a breeze and you can play games while waiting for it to complete.
5. Direct integration to your Git repository.
6. Create new files (Apex or Visualforce) from inside a Project
7. Easy to run Anonymous Apex code.
8. Easy to deploy code to different SFDC environments.
9. Manage your metadata between environments.
10. Great documentation to explain how to use MavensMate.

I recommend MavensMate to all serious Apex developers. Follow these steps below to get started:
https://github.com/joeferraro/MavensMate-SublimeText

Creating your first stateless session bean using RAD 7.5 running on WAS 7

Creating my first stateless session bean using Rational Application Developer 7.5 and deployed to Websphere Application Server V7.0.0.7 that shows the current system time.
Step 1: Create a new Enterprise Application Project.
Step 2: Create a new EJB Project by right clicking on the newly created Enterprise Application Project.
Make sure that to add the Enterprise Application Project as a EAR member.
Step 3: Right click on your newly created EJB project and select -> Session Bean
Enter the package name as: com.ibm.ejb.time
Enter the class name as: time
Make sure that business interface is set to Local
Step 4: Open the newly created Session Bean called time and add the following method.
Make sure that to add the Enterprise Application Project as a EAR member.
public String getTimeInfo(String timeinput) {
Calendar cal = Calendar.getInstance();
Date now = cal.getTime();
DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM);
if timeinput != null && timeinput.length() > 0) {
timeinput = timeinput.toUpperCase();
}
return DateFormat.getTimeInstance().format(now) + ” on ” + df.format(now);
Make sure to add all the neccessary Imports using Quick Fix.
Step 5: Right click anywhere in the editor and Navigate to Java EE Tool -> Promote Method
Select ‘getTimeInfo’ method and click ‘OK’
Step 6: Go back to your Enterprise Exlorer and right click on the Enterprise Application Project created in Step 1.
Select New -> Dynamic Web Project
Make sure that to add the Enterprise Application Project as a EAR member.
Step 7: Right click on your newly created Dynamic Web Project and select ‘Properties’
Step 8: Select ‘Java EE Module Dependencies’
Select ‘Allow Both’ under reference to EJB JARs with EJB client JARs.
Select both JARs and click ‘OK’
Step 9: Create a new Servlet by right clicking on the Dynamic Web Project and selecting New->Servlet.
Enter the package name as: com.ibm.ejb.time
Enter the class name as: timeServlet
Accept the superclass javax.servlet.http.HTTPServlet
Click Finish.
Step 10: Open the new timeServlet.java file.
Add the following two commands under TimeServlet class:
@EJB
TimeLocal time;
Using quick fix import the neccessary packages.
Add the following commands under doGet class:
PrintWriter out = response.getWriter();
String time = clock.getClockInfo(“medium”);
out.println(“<html><body>”);
out.println(“<h3>The current time is:</h3>”);
out.println(“<p>” + time + “</p>”);
out.println(“</body></html>”);
Using quick fix import the neccessary packages.
Add the following commands under doPost class:
String format = request.getParameter(“timeinput”);
request.setAttribute(“time”, clock.getTimeInfo(timeinput));
RequestDispatcher rd = getServletContext().
getRequestDispatcher(“/index.jsp”);
rd.forward(request, response);
return;
Step 11: Import the index.jsp file into your Dynamic Web Project.
Step 12: Start an instance of Websphere Application Server inside RAD 7.5
After the instance has started right click on the Server and click on ‘Add and Remove Projects’
Step 13: Run the Dynamic Web Project by right clicking on it and selecting ‘Run As’->’Run on Server’Creating my first stateless session bean using Rational Application Developer 7.5 and deployed to Websphere Application Server V7.0.0.7 that shows the current system time.