The B major 7 arpeggio (Bmaj7) is the Bmaj7 chord played one note at a time: B, D♯, F♯ and A♯. Smooth and lush, common in jazz, soul and R&B ballads. Below is every Bmaj7 chord tone on the neck, then the five positions, each sitting inside one box of B major pentatonic.

Every Bmaj7 chord tone from the open strings to the 15th fret.
Each position uses only the notes of one pentatonic box, so if you know the boxes you already know where the arpeggio lives. The dashed line shows the order to play it, low to high.
The Bmaj7 arpeggio shares its notes with B Ionian, B Lydian, and with the major pentatonic plus the 7th. Use the arpeggio to land on chord tones and the scale to fill the space between them.
Other arpeggios in B: Bm7 arpeggio · B7 arpeggio. The three-note version: B triads. All nine arpeggio types: guitar arpeggios guide.
Major 7 arpeggio in other keys: Cmaj7 · C#maj7 · Dmaj7 · Ebmaj7 · Emaj7 · Fmaj7 · F#maj7 · Gmaj7 · Abmaj7 · Amaj7 · Bbmaj7.
Guides: pentatonic boxes guide · connecting the 5 boxes · breaking out of the box · learning the fretboard notes · mixing major and minor pentatonic · left-handed scale charts · guitar modes explained.
B, D♯, F♯ and A♯ — the root, 3, 5 and 7 of Bmaj7.
B Ionian, B Lydian, and the B major pentatonic plus the 7th.
One note: lower the 7th one fret to a ♭7 and Bmaj7 becomes B7 (dominant 7).
Five, one inside each of the five pentatonic boxes, repeating every 12 frets.