U.S. Senate Democrats gathered in Annapolis for their retreat next week will hear from President Obama and another chief executive who just might have his eye on Obama’s job.

Obama will speak to Senate Democrats on Wednesday, the White House announced, maintaining the tradition of a presidential appearance at the annual gathering. Obama will also appear Thursday at the House Democratic retreat at the Lansdowne Resort near Leesburg.

Gov. Martin O’Malley, who is widely believed to be considering a presidential run, will get his own chance to mingle with Senate Democrats when they visit the capital. O’Malley plans to host the lawmakers for dinner at the governor’s mansion Tuesday night.

Congressional Democrats typically use their annual retreats to plot strategy for the upcoming year away from the frenetic pace of Capitol Hill, with a mix of political and legislative briefings and social events.

Senate Democrats have not released the full agenda for their two-day stay at the Westin Annapolis. Gun laws, immigration reform and looming budget cuts are all likely to be prominent topics of discussion. O’Malley has been especially aggressive on the first topic, pushing an ambitious package of firearm restrictions in response to the December shootings in Newtown, Conn.